Tool/software: TI C/C++ Compiler
I have a bootloader in sector0 at bank1 ,the application in sector3 at bank0,use function pointor jump to 0x10000,then goto usage_fault handler.
How to jump to application without any fault.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI C/C++ Compiler
I have a bootloader in sector0 at bank1 ,the application in sector3 at bank0,use function pointor jump to 0x10000,then goto usage_fault handler.
How to jump to application without any fault.
Sorry, I forgot. The M3 runs in Thumb2 mode so the address must be odd. Try:
((void (*)(void))0x10001)();
I have two bad mcu, one is jump to 0x10008 with old experiment, one is jump to 0x10001 with new experiment. several times program can normal running.but the ten times or more program mcu come out can not erase.
I am sorry, but I still am unclear. Do you mean that the boards cannot be erased by JTAG, or that the bootloader is not working? Do you mean that two boards cannot be erased sometimes, or that 10 boards are now no longer usable because they cannot be erased at all?
Thank you very much, bootloader can correct jump application program,and interrupt can correct jump,the few bad mcu have changed.