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?
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.
I don't think so.
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?
Also, is the image at least available so I can restore the default bootloader?
You can read it out. I believe you can't destroy it thus you don't need to restore it.
Yes I see now that it's in ROM not in FLASH, thanks
Retrieving data ...