[STM32F407VGT6] Board HELP!

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.
Le fond du garage
Posts: 3
Joined: Mon Dec 21, 2020 6:38 pm

Re: [STM32F407VGT6] Board HELP!

Post by Le fond du garage » Wed Dec 30, 2020 3:26 pm

hello pythonner.
i have this board, i compile mycropython and work ok in repl, but i have a trouble.
this board only boot on main.py if i push the user button.
any idea why and how i can mode this to allways boot.

if i do not press button i have this flash sequence: flash-flash flash-flash flash flash- and this 3 time.
any idea?

thanck for all.

Le fond du garage
Posts: 3
Joined: Mon Dec 21, 2020 6:38 pm

Re: [STM32F407VGT6] Board HELP!

Post by Le fond du garage » Wed Dec 30, 2020 3:48 pm

i reply,
i found the solution.
the board alway go in safe boot mode so,

board need to mod the switch config with pullup.
and add SW def in csv.
in mpconfigboard.h

Code: Select all

// KEY0 has no pullup or pulldown; Pressing the button makes the input go low.
#define MICROPY_HW_USRSW_PIN        (pin_A0)
#define MICROPY_HW_USRSW_PULL       (GPIO_PULLUP)
#define MICROPY_HW_USRSW_EXTI_MODE  (GPIO_MODE_IT_FALLING)
#define MICROPY_HW_USRSW_PRESSED    (0)
and add in pin.csv

Code: Select all

SW,PA0
mcauser, can i push the mod in your github?

Post Reply