Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

WiFi connection fails with client compiled by IAR IDE #355

@SamiLappalainenArm

Description

@SamiLappalainenArm

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

  1. compile using GCC_ARM from CLI using wifi_esp8266_v4.json configuration

  2. upload .bin to K64F

  3. 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.142

    SOCKET_MODE : TCP
    Connecting to coap://api.connector.mbed.com:5684

    Registered object successfully!

  4. 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

  5. open workspace in IAR

  6. 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

  7. 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...

  8. 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.142

    SOCKET_MODE : TCP
    Connecting to coap://api.connector.mbed.com:5684

    Registered object successfully!


Enhancement

Reason to enhance/problem with existing solution

Suggested enhancement

Pros

Cons


Question

How to?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions