commit | dcb88bc6135b3d482d1bc9407940a246914fbfa9 | [log] [tgz] |
---|---|---|
author | Antonio Borneo <[email protected]> | Thu Oct 26 11:24:28 2017 +0200 |
committer | Antonio Borneo <[email protected]> | Thu Oct 26 15:34:41 2017 +0200 |
tree | dece0ca3a27682295e0e34d847fec9336568f0a0 | |
parent | a8d1f4f523cf20a0317233cdd752ba90442a8487 [diff] |
stm32_flash: fix initialization Accordingly to ST AN2606, chapter "Bootloader timing" http://www.st.com/resource/en/application_note/cd00167594.pdf for STM32F401/F411/F412 at least 159.5 or 180.6 ms are required from reset to bootloader ready to receive commands. Increase the delay after reset from 5 ms to 200 ms. Moreover, print an error message if the initial communication fails. Change-Id: I852b069ef73df6e0442b1ee3d5209219f52547f0 Signed-off-by: Antonio Borneo <[email protected]>