Calling __mainCRTStartup from Reset_Handler ISR causes hardfault
Asked by
Nitin
Using MSP432(Cortex M4) running freeRTOS blinky demo( simple program toggling on board LED).
Toolchains version tried : 5_3-2016q1-20160330 and 6-2017-q1-update.
Start up and linker files are provided by TI. they can be found at http://
Definition of Reset_Handler that causes hardfault:
void Reset_Handler(void)
{
SystemInit();
_mainCRTSt
}
if we replace _mainCRTStartup() by adding code for
1. Zero filling the bss segment
2. Call main() directly.
It works fine.
crt0 file used(obtained from linker map file): arm-none-
Could you explain why this happens? Cant we use c run time code for start up instead of manually zero filling the bss?
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
To post a message you must log in.