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.
[STM32F407VGT6] Board HELP!
-
- Posts: 9
- Joined: Mon Dec 21, 2020 6:38 pm
Re: [STM32F407VGT6] Board HELP!
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
and add in pin.csv
mcauser, can i push the mod in your github?
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)
Code: Select all
SW,PA0