cancel
Showing results for 
Search instead for 
Did you mean: 

Can't flash the board (tried 3 different programmers)

Mondo
Visitor

Hello,

 

I bought STM32H743XIH6 board and first tried to program it with FTDI programmer and STM32CubeProgrammer. It looks like the serial interface detects the board correctly as I can see it in the STM32CubeProgrammer but fails at a read attempt of 0x080000000 address with error message like "error occured during read at address 0x08000". 

Next, I read that I need ST-LINK to over come UART problem so I did. I purchased ST-Link V2 and gave it a try:

22:33:27 : UR connection mode is defined with the HWrst reset mode
22:33:27 : UR connection mode is defined with the HWrst reset mode
22:33:27 : ST-LINK SN : 37FF71064E57343691A31343
22:33:27 : ST-LINK FW : V2J46S7
22:33:27 : Board : --
22:33:27 : Voltage : 3.26V
22:33:27 : SWD freq : 4000 KHz
22:33:27 : Connect mode: Normal
22:33:27 : Reset mode : Hardware reset
22:33:27 : Device ID : 0x450
22:33:27 : Revision ID : Rev V
22:33:27 : UPLOADING OPTION BYTES DATA ...
22:33:27 : Bank : 0x00
22:33:27 : Address : 0x5200201c
22:33:27 : Size : 308 Bytes
22:33:27 : UPLOADING ...
22:33:27 : Size : 1024 Bytes
22:33:27 : Address : 0x8000000
22:33:27 : Read progress:
22:33:27 : Error: Data read failed
22:33:32 : Disconnected from device.
22:33:35 : Start STLinkUpgrade...
22:34:02 : UR connection mode is defined with the HWrst reset mode
22:34:02 : UR connection mode is defined with the HWrst reset mode
22:34:02 : ST-LINK SN : 37FF71064E57343691A31343
22:34:02 : ST-LINK FW : V2J46S7
22:34:02 : Board : --
22:34:02 : Voltage : 3.26V
22:34:02 : SWD freq : 4000 KHz
22:34:02 : Connect mode: Normal
22:34:02 : Reset mode : Hardware reset
22:34:02 : Device ID : 0x450
22:34:02 : Revision ID : Rev V
22:34:02 : UPLOADING OPTION BYTES DATA ...
22:34:02 : Bank : 0x00
22:34:02 : Address : 0x5200201c
22:34:02 : Size : 308 Bytes
22:34:02 : UPLOADING ...
22:34:02 : Size : 1024 Bytes
22:34:02 : Address : 0x8000000
22:34:02 : Read progress:
22:34:02 : Error: Data read failed
22:34:18 : Disconnected from device.

 

I have no idea why it happens but then I read that if my flasher is not original/STM32 blessed then it won't work. So I I bough STM32 official programmer: STLINK-V3MINIE,STLINK-V3. Here I simply get "cannot connect to target".

So to summarize, my experience with STM32 so far is full of frustration. For comparison, ESP32 works out of the box with simple FTDI serial device.

 

Does anyone have any idea what is wrong here?

 

2 REPLIES 2
MM..1
Chief III

Primary try change mode Connect mode: Normal to Connect under reset.

Secondary MCU flash can be read protect = first step to use then is remove read protect = erase mcu flash.

gbm
Principal

In  ST-Link settings, reduce the SWD clock frequency to about 1 MHz and see if it helps.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice