2010-07-20 07:24 AM
Hard fault after loading application with IAP
2011-05-17 04:59 AM
some code would be useful! Please provide the code you use to do the jump.
Are you sure interrupts are disabled before the jump?.2011-05-17 04:59 AM
Yes, interrupts are disabled before jump. Anyway, I found the source of the problem - changing some settings in NVIC which are different from reset state.
2011-05-17 04:59 AM
Hello,
I have a similar problem (I try to run freeRTOS after an other OS). What is the problem with changing some NVIC settings? PS: also if you know can you teach me about the SVC instruction (I know this is equivalent to SWI but I don't understand where it jumps and why). Thank you.2011-05-17 04:59 AM
Hello,
I was getting the hard fault after enabling USART2 IRQ in NVIC - I am not sure if this or combination of this with other setting caused the hard fault. The point is that jumping from the bootloader to application should be done with register settings as close as possible to register settings after reset. Upon calling SVC instruction, CPU enters supervisor mode and jumps to the SVC handler which should have a reference in the vector table.