In my project, the code has 2 portion:
1) Bootloader code, which resides in ROM 0x0000 - 0x7FFF, with Vector table starting on 0x0000
2) Application code, which resides from ROM 0x8000 to 0xFFFFF, with Vector table starting on 0x8000
Environment:
IAR, TM4C129x development kit, Connected by USB Debugger, FreeRTOS
Issue:
The Bootloader code runs OK. At the end of bootloader code, it can to Application address at 0x8000.
The Application code will stuck in some place after a run with debugger. Application code stucks after vTaskStartScheduler() was called.
I think could missed out some setting or implementation about the Vector table.
Question:
May i know how to troubleshoot for this issue?
More info:
.map file Placement Summary:
*******************************************************************************
*** PLACEMENT SUMMARY
***
"A1": place at 0x00000000 { section .bootloader };
"A2": place at 0x00008000 { ro section .intvec };
"P1": place in [from 0x00008000 to 0x000fffff] { ro };
"P2": place in [from 0x20000000 to 0x2003ffff] { rw, block CSTACK, block HEAP };