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

SMT32 bootloader / application

Hi,

using a SMT32F103 processor, I want to install an bootloader as well as an application. Two different projects, so that the bootloader (usb) is able to erase / update the application on this processor.

Is it possible to debug the application when the bootloader is starting first?

Is this a proper way to jump from the bootloader app to the application?

// switch to supervisor mode so that stacks in the next startup file can be set (once is
// user mode, only an exception can bring the processor out of it. SWI is such an exception.)
void __swi(0) jump_to_application_code(void);
void __SWI_0  (void)
{
    void   (*lp_application_start)(void);

    // interrupt vectors are mapped using the RAM_INTVEC REMAP RAM_MODE macros in the ASM tab of uv3
    lp_application_start = (void (*)(void))APPLICATION_FLASH_START;
    lp_application_start();

}

int main(void)
{
        jump_to_application_code() ;
}

Do I have to do additional things for the normal application? for example: that all interrupts will work in the application?

best regards
Harald

Parents Reply Children
No data