Page 1 of 1

STM32F407 Discovery not boot to main.py

Posted: Sat Mar 28, 2020 10:45 am
by billykai
Hello
After I flash STM32F407 Discovery by DFU
and write program in main.py
with complete ( such as blinky program)
after I disconnect and connect it again via usb
but why program didn't start up to main.py ?
( no blinky as start up )
then I must re start by running program via thonny ide again.
What will I must do to running main.py as start up for this STM32F407 Discovery

( I have experience to run micropython via esp32 that main.py will run on startup as I want , but for this STM32F407 , it's not the same as I want)

Re: STM32F407 Discovery not boot to main.py

Posted: Mon Mar 30, 2020 1:06 am
by jimmo
Hi,

I haven't used Thonny but from other questions on the forum it sounds like it's default behavior is to just run the code from RAM rather than copying the file to the device. You either need to find a way to tell Thonny to actually copy the file, or use another tool such as pyboard.py or rshell to do it.