USB HOST bootloader, start application
Starting from this video (https://www.youtube.com/watch?v=CGUC1wqSLCE) I'm trying to write my bootloader for DFU from an USB stick. The code works but I would like to tweak it such that:
- if at boot an USB stick is detected, than start the update, otherwise jump to application (done and it works)
- at the end of the update, jump to the application (this does not work)
I got it work the second point by adding a delay to let me remove the USB stick. But if the USB stick is still plugged in, then the "jump to application part does not work.
I suspect that this is related some kind of USB peripheral initialization.
Here is the zip of the project.
