Question
Bootloader Jump failing going to Usage Handler Fault
Posted on May 05, 2015 at 14:48
Dear All,
I am writing STM32F105 based bootloader. I am able to write the Application File contents to the Flash Application Area. But the Jump to Application is failing; I am getting following Errors: 1. Usage Fault Handler/ Hard Fault 2. Unknown Handler 3. CSTACK going outside Range @ => _set_MSP(....) my CSTACK is going haywired.... Before Jumping to application I am doing following things: 1. Disable Interrupts 2. Set the Jump Address 3. Setting MSP 4. Going to Privilege Mode(asm instruction)
5. Changing MSP to PSP for Application jump (asm instruction) 6. Jump My Jump Address is 0x08008000. CSTACK is 1800 HEAP is 1400 I am using IAR Workbench/JTAG Debugging Kindly suggest where things are going wrong. Regards, hgaurav