7 years, 6 months ago.

Adapting mbed os 5 to "ublox C027" results to stack overflow.

Stack overflow will occur if the following steps are executed.

1st. Import the following program.

Import programC027_SupportTest

C027_Support library test

2nd "C027_support" update and "mbed" -> "mbed-os" replace(= Adapting mbed os 5).

3rd compile and run.

RTX error code: 0x00000001, task ID: 0x10000458
                                               RTX error code: 0x00000001, task ID: 0x10000458

The result when "mbed" is not replaced is as follows.

Why?

Modem::init
Modem::devStatus
  Device:       LISA-U2
  Power Save:   Disabled
  CCID:         8981100023561854336
  IMEI:         352648069548865
  IMSI:         440103148290527
  Manufacturer: u-blox
  Model:        LISA-U200
  Version:      22.90,A01.01
Modem::register
Modem::netStatus
  CSD Registration:   Home
  PSD Registration:   Home
  Access Technology:  3G
  Signal Strength:    -69 dBm
  Bit Error Rate:     37
  Operator:           NTT DOCOMO
  Location Area Code: 00EC
  Cell ID:            044AC04C
Modem::join
Modem:IP 100.99.211.224
Modem::disconnect

1 Answer

7 years, 6 months ago.

Hey there,

I am looking into this issue. I was able to replicate it with a binary compiled online. However, I have determined that this error does NOT occur when using a binary that was compiled with debug symbols. I am assuming there is something being optimized out that shouldn't be. Do you use any offline IDE? I've exported to both uvision and make_arm_c5, and I do not see the error. This is because the projects exported by the online compiler will automatically compile with debugging symbols.

I will continue to investigate this, but I hope that provides you with a temporary workaround.

For reference, I am using this application - https://developer.mbed.org/users/sarahmarshy/code/C027_SupportTest/ which is the linked example updated with latest libraries.

Here is the full documentation for mbed CLI : https://docs.mbed.com/docs/mbed-os-handbook/en/5.1/dev_tools/cli/

Here is a video about exporting with mbed CLI: https://www.youtube.com/watch?v=sN1wC0NckjY

Here is the relevant export documentation for mbed CLI: https://docs.mbed.com/docs/mbed-os-handbook/en/5.1/dev_tools/cli/#exporting-to-desktop-ides

Cheers, Sarah

Accepted Answer

Thanks Chees.

I tried Eclipse environment. Errors are no longer output.

Below is the log. This answer was very helpful.

--------------------------------------------------------
Modem::init
Modem::devStatus
  Device:       LISA-U2
  Power Save:   Disabled
  CCID:         8981100023561854336
  IMEI:         352648069548865
  IMSI:         440103148290527
  Manufacturer: u-blox
  Model:        LISA-U200
  Version:      22.90,A01.01
Modem::register
Modem::netStatus
  CSD Registration:   Home
  PSD Registration:   Home
  Access Technology:  3G
  Signal Strength:    -67 dBm
  Bit Error Rate:     37
  Operator:           NTT DOCOMO
  Location Area Code: 00EC
  Cell ID:            044AC04C
Modem::join
Modem:IP 100.102.37.184
Modem::disconnect
Modem::powerOff
--------------------------------------------------------
posted by Hiroaki Okoshi 09 May 2017

Awesome! I will update this thread when I find the underlying cause of the original error.

posted by Sarah Marsh 09 May 2017