This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SD120: Switching from bootloader to application

I have built an application using SD120 v2.1.0. The app runs fines from 0x1d000. When I run an own bootloader (RS485, no need of interrupts or SD120, no pstorage functions, etc) from 0x1d000, it runs fine too. It erases and flashes the app code from startaddress 0x22000 (verified by reading back the flash through SEGGER J-Flash). Unfortunately jumping from the bootloader to Flash does not work. I put the MSP to 0x22000 and the PC to 0x22004. In general the jumpToApp-function should work since the bootloader is running again if I enter 0x1d000 for jumptoApplication-address. What do I additionally have to take care for if I want to jump from bootloader at 0x1d000 to application flashed above the bootloader (i.e. compiler settings, redirection of vectors, MSP, region settings, etc.)?

Related