Posted on May 17, 2011 at 13:40Its working. Using the code above. I suspect that it got an exception when I didn't change the stack before jumping. # So many thanks, sorry i can't get you a pint and for anyone else, the solution is in AN2557 sample ...
Posted on May 17, 2011 at 13:40No Need, its in the header. Will let you know if this works... void __set_MSP(UINT32 topOfMainStack) { __ASM volatile (''MSR msp, %0\n\t'' ''BX lr \n\t'' : : ''r'' (topOfMainStack) ); }
Posted on May 17, 2011 at 13:40The sample code looks like this: JumpAddress = *(__IO uint32_t*) (ApplicationAddress + 4); Jump_To_Application = (pFunction) JumpAddress; __set_MSP(*(__IO uint32_t*) ApplicationAddress); Jump_To_Application(); I am not...
Posted on May 17, 2011 at 13:40I will study the sample app, this is useful. I notice they run app_address+4 when running the application, tried it quickly, bur I still crash. I will left you know if I get success from the app note. Thanks