2014-01-14 01:40 PM
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, Markus2014-01-15 01:09 AM
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.