-
Notifications
You must be signed in to change notification settings - Fork 56
WiFi connection fails with client compiled by IAR IDE #355
Description
Description
mbed-os-5.7.0-oob client build by IAR does not register succecfully. Succesfull registering works when GCC_ARM is used to build.
Bug
Used git repo = mbed-os-example-client => branch mbed-os-5.7.0-oob
Used environment:
- Windows10 laptop
- K64F + ESP8266
- mbed version 1.2.0
- IAR version 7.80.1.11973
Expected Behavior
client shows "Registered object successfully!"
Actual Behavior
client shows "onnection to Network Failed - exiting application..."
Steps to Reproduce
-
compile using GCC_ARM from CLI using wifi_esp8266_v4.json configuration
-
upload .bin to K64F
-
restart K64F
Starting mbed Client example
[EasyConnect] IPv4 mode
[EasyConnect] Using WiFi (ESP8266)
[EasyConnect] Connecting to WiFi Anfield-tower
[EasyConnect] Connected to Network successfully
[EasyConnect] MAC address 5c:cf:7f:04:6a:f2
[EasyConnect] IP address 192.168.43.142SOCKET_MODE : TCP
Connecting to coap://api.connector.mbed.com:5684Registered object successfully!
-
mbed export -i IAR
C:\siilo\git\OOB\mbed-os-example-client>mbed export -i IAR
[mbed] Detected "K64F" connected to "E:" and using com port "COM6"
Scan: .
Scan: FEATURE_LWIP
Scan: FEATURE_COMMON_PAL
Scan: FEATURE_STORAGE -
open workspace in IAR
-
rebuild all
Building configuration: mbed-os-example-client - mbed-os-example-client
Updating build tree...2 file(s) deleted.
Updating build tree...
...
Total number of errors: 0
Total number of warnings: 27 -
Download and debug => Go
Starting mbed Client example
[EasyConnect] IPv4 mode
[EasyConnect] Using WiFi (ESP8266)
[EasyConnect] Connecting to WiFi Anfield-tower
[EasyConnect] MAC address 5c:cf:7f:04:6a:f2
[EasyConnect] Connection to Network Failed -3012!Connection to Network Failed - exiting application...
-
upload .bin made with GCC_ARM => restart K64F
Starting mbed Client example
[EasyConnect] IPv4 mode
[EasyConnect] Using WiFi (ESP8266)
[EasyConnect] Connecting to WiFi Anfield-tower
[EasyConnect] Connected to Network successfully
[EasyConnect] MAC address 5c:cf:7f:04:6a:f2
[EasyConnect] IP address 192.168.43.142SOCKET_MODE : TCP
Connecting to coap://api.connector.mbed.com:5684Registered object successfully!
Enhancement
Reason to enhance/problem with existing solution
Suggested enhancement
Pros
Cons
Question
How to?