2018-05-15 10:21 AM
I'm working with a NUCLEO-F411RE and am starting to look at writing a custom bootloader. Is the default bootloader source available somewhere that I could use as a reference?
#stm32-bootloaderSolved! Go to Solution.
2018-05-15 10:33 AM
It is not, but you could disassemble it if you really wanted too. Created my own annotated listings here.
There are many better examples you could draw from. ST also has a handful of IAP examples using assorted interfaces and methods.
I would generally suggest creating something that can work with standard tools (ie a terminal app) rather than something that needs a custom app or drivers on each of the host operating systems you will be expected to support.
2018-05-15 10:23 AM
I don't think so.
JW
2018-05-15 10:33 AM
It is not, but you could disassemble it if you really wanted too. Created my own annotated listings here.
There are many better examples you could draw from. ST also has a handful of IAP examples using assorted interfaces and methods.
I would generally suggest creating something that can work with standard tools (ie a terminal app) rather than something that needs a custom app or drivers on each of the host operating systems you will be expected to support.
2018-05-15 11:47 AM
Also, is the image at least available so I can restore the default bootloader?
2018-05-15 12:40 PM
Thanks guys, that's unfortunate. I'm trying to use the USB DFU feature, but the issue I'm having is that the STM32 controls the power for the host device that would need to perform the DFU so whenever I enter the bootloader it kills my host.
I would like to continue to use the USB interface and just add a few GPIO initializations. What's the best path for this?
2018-05-15 02:52 PM
You can read it out. I believe you can't destroy it thus you don't need to restore it.
JW
2018-05-15 03:01 PM
Yes I see now that it's in ROM not in FLASH, thanks