AnsweredAssumed Answered

Jumping to a memory location..bootloader C code

Question asked by carter.bob on Mar 30, 2013
Latest reply on Mar 30, 2013 by Clive One
Hi,

In our system, I have to be able to update the application code. Therefore I believe I need to copy the application to memory location 0x8000000 and then jump to this location...basically a small bootloader of sorts. I've  tried the following method to jump to the required address, but with no success. First of all, can I do this on the stm32 family and if so, Has anyone got any code snippet that will do the job or has the stm32f051 require some additional requirements in order to reboot?

void (*fptr)(void) = (void (*)(void))0x8000000;
fptr();

Man Thanks
Bob


Outcomes