STM32F0x0 custom bootloader
This is not a question, but a solution to a problem that took me forever to solve. This may be evident to many, but it was not to me, soI hope this will save others (and my future self) a lot of time...I was trying to implement a custom bootloader, where I could not even get the minimal implementation working: a slowly blinking LED when doing nothing and staying in the bootloader, or a quickly blinking LED when jumping to a different application.The issue is that this is tricky for the STM32F030/070 on which I am developing, because it does not have a VTOR register and the few code examples I found did not work, or did jump, but interrupts stopped working.The bootloader only needs to jump to the new reset vector:#define APP_ADDRESS 0x08004000Uvoid JumpToApplication(void) { __disable_irq(); if (*(uint32_t*)(APP_ADDRESS + 4) == 0xFFFFFFFF) { return; // invalid reset handler } uint32