STM32F407 Discovery not boot to main.py

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
billykai
Posts: 1
Joined: Sat Mar 28, 2020 10:38 am

STM32F407 Discovery not boot to main.py

Post by billykai » Sat Mar 28, 2020 10:45 am

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)

User avatar
jimmo
Posts: 1848
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: STM32F407 Discovery not boot to main.py

Post by jimmo » Mon Mar 30, 2020 1:06 am

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.

Post Reply