2026-01-12 3:04 AM
Hi,
I made a custom bootloader to upload my application using the virtual com port by the USB interface.
This works nicely, but my application also has a part in flash to store its configuration. When I flash my user program, I do not want to overwrite the configuration. Therefore, this is a special part in the flash memory.
Is it possible in the STM32CubeIDE to generate a bin-file for this configuration to have a default configuration?
Is it also possible to generate a bin-file using my bootloader, by reading the flash memory where the configuration starts? Because it would be great to backup a configuration.
Greetings,
ErX
2026-01-12 6:02 AM
You could post-process the build to break up the application from the config. That's probably easiest.
It won't be easy to create a new build to populate only the config area.
You have control over the bootloader, of course it is possible to read data and send it back to the PC for backup. If you're using the system bootloader, this can be done with STM32CubeProgrammer.