6 years, 4 months ago.

MQTT STM32L475 IoT Node Compilation ERROR

Hi I am trying to compile Mbed-to-AWS-IoT project which is imported from https://os.mbed.com/users/coisme/notebook/aws-iot-from-mbed-os-device/

I am getting an compilation ERROR,

Can someone help please ************* mbed/apps/mbed_to_aws_iot/Mbed-to-AWS-IoT$ mbed compile -t GCC_ARM -m DISCO_L475VG_IOT01A Building project Mbed-to-AWS-IoT (DISCO_L475VG_IOT01A, GCC_ARM) Scan: . Scan: env Scan: mbed Compile [ 86.0%]: easy-connect.cpp [Error] NetworkInterface.h@248,13: 'EthInterface' does not name a type [Error] NetworkInterface.h@268,13: 'EMACInterface' does not name a type [Warning] MbedCRC.h@34,32: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] [ERROR] In file included from ./mbed-os/features/netsocket/NetworkStack.h:23:0, from ./mbed-os/features/netsocket/nsapi.h:31, from ./mbed-os/mbed.h:41, from ./easy-connect/easy-connect.cpp:19: ./mbed-os/features/netsocket/NetworkInterface.h:248:13: error: 'EthInterface' does not name a type virtual EthInterface *ethInterface() { ^ ./mbed-os/features/netsocket/NetworkInterface.h:268:13: error: 'EMACInterface' does not name a type virtual EMACInterface *emacInterface() { ^ In file included from ./mbed-os/mbed.h:90:0, from ./easy-connect/easy-connect.cpp:19: ./mbed-os/drivers/MbedCRC.h:34:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas]

  1. pragma GCC diagnostic ignored "-Wshift-count-negative" ^

[mbed] ERROR: "/usr/bin/python" returned error code 1. [mbed] ERROR: Command "/usr/bin/python -u ./mbed/apps/mbed_to_aws_iot/Mbed-to-AWS-IoT/mbed-os/tools/make.py -t GCC_ARM -m DISCO_L475VG_IOT01A source . build ./BUILD/DISCO_L475VG_IOT01A/GCC_ARM" in "/home/epsragh/mbed/apps/mbed_to_aws_iot/Mbed-to-AWS-IoT"

The IoT that where going to work in the succeeded to com[pile where this is going to manage the https://epsonsupports.net/blog/fix-epson-error-code-0x69/ that will exceed it with the most of it.

posted by Steve Brat 16 Nov 2018

1 Answer

6 years, 4 months ago.

Hi, I did these and succeeded to compile. (Not tested on the board.)
1) Change LED definitions in main.cpp L.74-76
2) Change network-interface value to WIFI_ISM43362 in mbed_json.app
3) Change wifi-ssid and wifi-password value in mbed_json.app

Accepted Answer

Thanks for the help, eventhough not one of the options (WIFI_ISM43362). It worked I have to test now

posted by raghavan p 28 Jun 2018