summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/parser.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-06-22 21:26:03 +1000
committerDamien George <damien.p.george@gmail.com>2019-06-25 14:15:49 +1000
commit04c7cdb668cc7ee391ef5fe000f825389197f7e2 (patch)
tree01ccece0e92dae44d469e31fea8013ff36270995 /tests/basics/parser.py
parent205c6d0dc94ef1ca11d7bcef2090ef49c2015e48 (diff)
downloadmicropython-04c7cdb668cc7ee391ef5fe000f825389197f7e2.tar.gz
micropython-04c7cdb668cc7ee391ef5fe000f825389197f7e2.zip
stm32: Enter bootloader via a system reset.
Entering a bootloader (ST system bootloader, or custom mboot) from software by directly branching to it is not reliable, and the reliability of it working can depend on the peripherals that were enabled by the application code. It's also not possible to branch to a bootloader if the WDT is enabled (unless the bootloader has specific provisions to feed the WDT). This patch changes the way a bootloader is entered from software by first doing a complete system reset, then branching to the desired bootloader early on in the start-up process. The top two words of RAM (of the stack) are reserved to store flags indicating that the bootloader should be entered after a reset.
Diffstat (limited to 'tests/basics/parser.py')
0 files changed, 0 insertions, 0 deletions