cancel
Showing results for 
Search instead for 
Did you mean: 

[F407vtg] jump to bootloader

info239955
Associate
Posted on January 14, 2014 at 22:40

STM32F407VTG

CooCox IDE

Hello,

how can i jump to inbuild bootloader?

This code is not working:

void BootLoader(void) {

    void (*SysMemBootJump)(void) = (void (*)(void)) (*((uint32_t *) 0x1FFF0004));

    __set_PRIMASK(1);

    RCC_DeInit();

    SysTick->CTRL = 0;

    SysTick->LOAD = 0;

    SysTick->VAL = 0;

    RCC_SYSCLKConfig(RCC_SYSCLKSource_HSI);

    __set_MSP(0x20002000);

    SysMemBootJump();

}

Thanks,

Markus
1 REPLY 1
chen
Associate II
Posted on January 15, 2014 at 10:09

Hi

Why are you doing it this way?

All you have to do is pull the Boot0 pin low and reset - The STM32 will automatically run the build in bootloader.

If you must do it this way, search the forum. There is another thread discussing this.