These are chat archives for marvell-iot/aws_starter_sdk

Nov 2015
Rahul Masurkar
Nov 26 2015 07:52
Hi, you could launch command line gdb from aws_starter_sdk root folder.
The command for this is:
arm-none-eabi-gdb -x wmsdk/tools/OpenOCD/gdbinit /path/to/axf
Rahul Masurkar
Nov 26 2015 07:57
Note that this will launch your application from reset and halt at main().
BTW, we are going to add support for Eclipse very soon, so debugging would be greatly simplified. In mean-time, you can use the above mentioned command line.
Kealan McCusker
Nov 26 2015 12:02
Hi Rahul Thanks for your help that worked for me.
Kealan McCusker
Nov 26 2015 20:50
Hi All I am running my application which run well on x86. It uses only the stack - it needs 8K. I changed the linker script to _main_stack_size = 0x4000; just to be on the safe side. My program goes into a loop and when I hit ctrl-c this is what I see;

(gdb) bt

#0 0x00107144 in critical_error ()

#1 0x001056ce in HardFault_IRQHandler_C ()

#2 <signal handler called>

#3 0x001080d4 in vTaskSwitchContext ()

at wmsdk/external/freertos/Source/tasks.c:1840

#4 0x00108772 in PendSV_IRQHandler ()

at wmsdk/external/freertos/Source/portable/GCC/ARM_CM3/port.c:226
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Would any of you have any idea what the problem might be? I am confident the code is sound.