tinito/Bootloader ? reverse-engineered prompt

Reverse engineered prompt

Build me a small STM32 bootloader project that can start up, decide whether to jump into an app, and also load or flash a new app image when needed.

I want it to work with the existing bootloader, app loader, and flash related pieces, and I want the code relocation part to be handled cleanly so the app can run from the right address after the bootloader hands off control. Please make sure it builds, the startup flow is clear, and the OpenOCD launch setup works for flashing and running on an STM32F103 board.

If anything is unclear from the existing code, inspect the project and fill in the missing pieces in the simplest working way. Keep it focused on a practical proof of concept, not a big framework. If you need to check current STM32 or OpenOCD details online, go ahead and do that.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab