1 year, 2 months ago.

application constantly crashing after updating from mbed 5.13.1 to 5.14.2

I have an application on the UBLOX-ODIN-W262 WiFi/BT module. It uses the open mbed framework to give access to HTTPS web APIs as well as BLE for configuration.

When I had the application running on mbed release 5.13.1, it was fully functional. I had some crashes which I was planning to investigate but I was able to test the basic functionality. I have recently updated mbed os to release 5.14.2 and now it always crashing when doing a variety of network called using the WiFi network interface.

It has been particularly tricky to debug because I am unable to create a debug build with either iAR or or Mbed studio.

As a start I would need some help to be able to debug the application and understand where the crash is coming from.

Below are some of the crash dumps (which I am sure do not help much):

++ MbedOS Fault Handler ++ FaultType: HardFault Context: R0 : 2002FFA7 R1 : 00487C55 R2 : 2002FFA7 R3 : 000067BE R4 : 20016358 R5 : 20014E90 R6 : 20014DF0 R7 : 00000000 R8 : 00000000 R9 : 00000000 R10 : 00000000 R11 : 00000000 R12 : 0808554B SP : 20015ED0 LR : 080283D5 PC : 08011CD6 xPSR : 01000000 PSP : 20015EB0 MSP : 2002FFD8 CPUID: 410FC241 HFSR : 40000000 MMFSR: 00000000 BFSR : 00000082 UFSR : 00000000 DFSR : 00000008 AFSR : 00000000 BFAR : 00487C71 Mode : Thread Priv : Privileged Stack: PSP MbedOS Fault Handler ++ MbedOS Error Info ++ Error Status: 0x80FF013D Code: 317 Module: 255 Error Message: Fault exception Location: 0x805AF37 Error Value: 0x8011CD6 Current Thread: application_unnamed_thread Id: 0x2000EE78 Entry: 0x8028A61 StackSize: 0x1000 StackMem: 0x20014F38 SP: 0x2002FF7C For more info, visit: https://mbed.com/s/error?error=0x80FF013D&tgt=MTB_UBLOX_ODIN_W2 MbedOS Error Info

++ MbedOS Error Info ++ Error Status: 0x80020125 Code: 293 Module: 2 Error Message: CMSIS-RTOS error: Stack overflow Location: 0x80797EB Error Value: 0x1 Current Thread: application_unnamed_thread Id: 0x2000EDB4 Entry: 0x8028A19 StackSize: 0x400 StackMem: 0x200158C0 SP: 0x2002FF54 For more info, visit: https://mbed.com/s/error?error=0x80020125&tgt=MTB_UBLOX_ODIN_W2 MbedOS Error Info .þü

The error says stack overflow. System is out of memory. Do you allocate enough memory to your thread?

posted by Kentaro Okuda 24 Nov 2019

Thanks Kentaro, that correct for the second crash which is usually as a result of the first and so it gets into a crash loop which I guess iswhy it runs out of memory.

posted by Okundu Omeni 24 Nov 2019

I believe Mbed Studio is able to debug project on ublox-EVK-ODIN-W2, please see the system requirement.


It seems happend at location 0x805AF37, could you look at map file and see what the code snippet at this line?

posted by Desmond Chen 05 Dec 2019
Be the first to answer this question.