How to load micropython onto official stm32f407vgt6 Discovery board #18230
Unanswered
stuarte83
asked this question in
STM32 / Pyboard
Replies: 2 comments 2 replies
-
Debian oldstable.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi Norbert,
Thank you for your follow-up posting. Please see below the results of its
use. Note that I had to prepend /Downloads onto the filename.
```sh
$ st-flash --format ihex write Downloads/STM32F4DISC-20250911-v1.26.1.hex
st-flash 1.7.0
2025-10-09T17:59:34 INFO common.c: F4xx: 192 KiB SRAM, 1024 KiB flash in at
least 16 KiB pages.
2025-10-09T17:59:34 INFO common.c: Attempting to write 442916 (0x6c224)
bytes to stm32 address: 134217728 (0x8000000)
EraseFlash - Sector:0x0 Size:0x4000 2025-10-09T17:59:34 INFO common.c:
Flash page at addr: 0x08000000 erased
EraseFlash - Sector:0x1 Size:0x4000 2025-10-09T17:59:34 INFO common.c:
Flash page at addr: 0x08004000 erased
EraseFlash - Sector:0x2 Size:0x4000 2025-10-09T17:59:35 INFO common.c:
Flash page at addr: 0x08008000 erased
EraseFlash - Sector:0x3 Size:0x4000 2025-10-09T17:59:35 INFO common.c:
Flash page at addr: 0x0800c000 erased
EraseFlash - Sector:0x4 Size:0x10000 2025-10-09T17:59:35 INFO common.c:
Flash page at addr: 0x08010000 erased
EraseFlash - Sector:0x5 Size:0x20000 2025-10-09T17:59:37 INFO common.c:
Flash page at addr: 0x08020000 erased
EraseFlash - Sector:0x6 Size:0x20000 2025-10-09T17:59:39 INFO common.c:
Flash page at addr: 0x08040000 erased
EraseFlash - Sector:0x7 Size:0x20000 2025-10-09T17:59:41 INFO common.c:
Flash page at addr: 0x08060000 erased
2025-10-09T17:59:41 INFO common.c: Finished erasing 8 pages of 131072
(0x20000) bytes
2025-10-09T17:59:41 INFO common.c: Starting Flash write for F2/F4/F7/L4
2025-10-09T17:59:41 INFO flash_loader.c: Successfully loaded flash loader
in sram
2025-10-09T17:59:41 INFO flash_loader.c: Clear DFSR
2025-10-09T17:59:41 INFO common.c: enabling 32-bit flash writes
2025-10-09T17:59:47 INFO common.c: Starting verification of write complete
2025-10-09T17:59:51 INFO common.c
```
Flash written and verified! jolly good!
…On Thu, 9 Oct 2025 at 13:41, Norbert ***@***.***> wrote:
Debian oldstable.
$ st-flash --format ihex write STM32F4DISC-20250911-v1.26.1.hex
st-flash 1.6.1
2025-10-09T14:34:24 INFO common.c: F4xx: 192 KiB SRAM, 1024 KiB flash in at least 16 KiB pages.
2025-10-09T14:34:24 INFO common.c: Attempting to write 442916 (0x6c224) bytes to stm32 address: 134217728 (0x8000000)
EraseFlash - Sector:0x0 Size:0x4000 2025-10-09T14:34:25 INFO common.c: Flash page at addr: 0x08000000 erased
EraseFlash - Sector:0x1 Size:0x4000 2025-10-09T14:34:25 INFO common.c: Flash page at addr: 0x08004000 erased
EraseFlash - Sector:0x2 Size:0x4000 2025-10-09T14:34:25 INFO common.c: Flash page at addr: 0x08008000 erased
EraseFlash - Sector:0x3 Size:0x4000 2025-10-09T14:34:26 INFO common.c: Flash page at addr: 0x0800c000 erased
EraseFlash - Sector:0x4 Size:0x10000 2025-10-09T14:34:27 INFO common.c: Flash page at addr: 0x08010000 erased
EraseFlash - Sector:0x5 Size:0x20000 2025-10-09T14:34:29 INFO common.c: Flash page at addr: 0x08020000 erased
EraseFlash - Sector:0x6 Size:0x20000 2025-10-09T14:34:31 INFO common.c: Flash page at addr: 0x08040000 erased
EraseFlash - Sector:0x7 Size:0x20000 2025-10-09T14:34:33 INFO common.c: Flash page at addr: 0x08060000 erased
2025-10-09T14:34:33 INFO common.c: Finished erasing 8 pages of 131072 (0x20000) bytes
2025-10-09T14:34:33 INFO common.c: Starting Flash write for F2/F4/L4
2025-10-09T14:34:33 INFO flash_loader.c: Successfully loaded flash loader in sram
enabling 32-bit flash writes
size: 32768
size: 32768
size: 32768
size: 32768
size: 32768
size: 32768
size: 32768
size: 32768
size: 32768
size: 32768
size: 32768
size: 32768
size: 32768
size: 16932
2025-10-09T14:34:44 INFO common.c: Starting verification of write complete
2025-10-09T14:34:53 INFO common.c: Flash written and verified! jolly good!
~/tmp$ picoterm
--- Miniterm on /dev/ttyACM0 4000000,8,N,1 ---
--- Quit: Ctrl+W | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
MicroPython v1.26.1 on 2025-09-11; F4DISC with STM32F407
Type "help()" for more information.
>>>
i stlink-tools 1.6.1+ds-3 1.6.1+ds-3
OpenSource ST-Link tools replacement.
Flashing tools for STMicroelectronics STM32VL and STM32L. The
transport layers STLINKv1 and STLINKv2 are supported.
This package contains commandline utilities for stlink, and
modprobe and udev rules.
Homepage: https://github.com/stlink-org/stlink
—
Reply to this email directly, view it on GitHub
<#18230 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARPH3RQGEIGJED5TNRIYLID3WZJWHAVCNFSM6AAAAACIW3ZQQOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTINRTGY4DCMQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
o.s.: Debian 12 Bookworm (fully updated)
board: (official) STM32f4-discovery
micropython: STM32F4DISC-20250911-v1.26.1.dfu
STM32CubeProgrammer v2.19.0
I'm trying to load Micropython onto the board listed above using ...Programmer but am having some problems doing so. I have connected both of the board's USB ports to the laptop.
When I set ...Programmer connection mode to ST-LINK the board is connected and is erroneously(!) identified in ...Programmer's "Target Information" list as a device of type STM32F2xx. In this connection mode, the board has both ST-LINK jumpers in place and ...Programmer does display a "File download complete" message after downloading the .dfu file even though it is displaying "No DFU detected".
When I set ...Programmer connection mode to USB, which I thought was necessary to flash/download a .dfu file to the board, ...Programmer does not connect to the board. In this connection mode, both ST-LINK jumpers are removed and one of them is used to jump BOOT0 to VDD. In this mode, ...Programmer shows "Not connected" in its top right corner. When I click on the (green) Connect button, the board remains "Not connected" and ...Programmer's "Target Information" list remains completely blank.
Could someone please point out what I am doing wrong and help me to correct my mistakes.
Stuart
Beta Was this translation helpful? Give feedback.
All reactions