cancel
Showing results for 
Search instead for 
Did you mean: 

How to install micropython onto stm32f407 discovery board using Stm32CubeProgrammer

SElli.11
Senior

Hi,
o.s.: Debian 12 Bookworm (fully updated)
board: (official) STM32f4-discovery
micropython: STM32F4DISC-20250911-v1.26.1.dfu
STM32CubeProgrammer v2.19.0

Checking my previous posts shows that I have tried this before but obviously got nowhere as I seem to have abandoned that attempt. So I am trying again...

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.

EDIT: I have looked at System Settings/Network/Network Connections which does not(!) show an entry for the Discovery board. Likewise, System Settings/Hardware/Removable Storage/Removable Devices also shows no entry for the board. Finally, Program Launcher/System/Info Centre/Devices/USB Devices does(!) show an entry for STM32 STLink.

Could someone please point out what I am doing wrong and help me to correct my mistakes.

Stuart

4 REPLIES 4
Aziz BRIGUI
ST Employee

Hello @SElli.11,

The fact that your board is wrongly recognized is pretty odd. Could you photograph it? also the marking on the STM32 Chip?

Also, have you modified the CubeProgrammer installation in any way? 

Aziz


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi @Aziz BRIGUI,

 

Thank you for your reply. As requested, the photograph.

STM32F407 Discovery BoardSTM32F407 Discovery Board

The marking on the chip is :-

STM32F407

VGT6

STM32CubeProgrammer v 2.19.0 has not(!) been modified in any way. I hope this is of use.

Stuart

 

Please post a good, clear, in-focus photo!

As @Aziz BRIGUI said, the markings on the chip need to be clear.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Hi,

With respect and apologies, this is as clear as I can get the markings on the chip.

Stuart