Skip to content

implement stm32h5 series, erase, read and write#1492

Open
jameswalmsley wants to merge 1 commit intostlink-org:testingfrom
jameswalmsley:jw/h5-support
Open

implement stm32h5 series, erase, read and write#1492
jameswalmsley wants to merge 1 commit intostlink-org:testingfrom
jameswalmsley:jw/h5-support

Conversation

@jameswalmsley
Copy link
Copy Markdown

@jameswalmsley jameswalmsley commented Apr 1, 2026

This patch gives a working stlink for the h5 series nucleo boards.

I'd like to get some early feedback - because I really don't know what I'm doing in this code-base -- and some direction on getting this into shape would be appreciated.

Hope it helps.

@jameswalmsley
Copy link
Copy Markdown
Author

Ok - I've cleaned up a little bit. And I found the OSX issue (it works reliably when using a USB-2.0 -> USB-C cable) - but if I use a usb-c cable plugged directly into the MacBook, then I get lots of libusb errors.

Leaving the note here in the hope of helping people in the future.

@jameswalmsley jameswalmsley force-pushed the jw/h5-support branch 4 times, most recently from eb5038e to e2ec565 Compare April 2, 2026 20:17
@jameswalmsley jameswalmsley marked this pull request as ready for review April 3, 2026 18:14
@lbthomsen
Copy link
Copy Markdown

lbthomsen commented Apr 5, 2026

Won't flash my H562

lth@ncpws04:~/src/stlink$ st-info --probe
Found 1 stlink programmers
  version:    V2J47S34
  serial:     066DFF3632504E3043064427
  flash:      0 (pagesize: 0)
  sram:       0
  chipid:     0x484
  dev-type:   STM32H562x

STM32CubeProgrammer connect:

  09:30:39 : STM32CubeProgrammer API v2.18.0 | Linux-64Bits 
  09:30:50 : UR connection mode is defined with the HWrst reset mode
  09:30:50 : ST-LINK SN  : 066DFF3632504E3043064427
  09:30:50 : ST-LINK FW  : V2J47M34
  09:30:50 : Board       : --
  09:30:50 : Voltage     : 3.23V
  09:30:50 : Warning:  Connection to AP 0 requested and failed, Connection established with AP 1
  09:30:50 : SWD freq    : 4000 KHz
  09:30:50 : Connect mode: Normal
  09:30:50 : Reset mode  : Hardware reset
  09:30:50 : Device ID   : 0x484
  09:30:50 : Revision ID : Rev X
  09:30:50 : Debug in Low Power mode enabled.
  09:30:50 : SFSP Version: v2.6.0
  09:30:51 : UPLOADING OPTION BYTES DATA ...
  09:30:51 :   Bank          : 0x00
  09:30:51 :   Address       : 0x40022050
  09:30:51 :   Size          : 112 Bytes
  09:30:51 :   Bank          : 0x01
  09:30:51 :   Address       : 0x40022070
  09:30:51 :   Size          : 16 Bytes
  09:30:51 :   Bank          : 0x02
  09:30:51 :   Address       : 0x40022080
  09:30:51 :   Size          : 16 Bytes
  09:30:51 :   Bank          : 0x03
  09:30:51 :   Address       : 0x400220e0
  09:30:51 :   Size          : 16 Bytes
  09:30:51 :   Bank          : 0x04
  09:30:51 :   Address       : 0x400221e0
  09:30:51 :   Size          : 16 Bytes
  09:30:51 :   Bank          : 0x05
  09:30:51 :   Address       : 0x40022090
  09:30:51 :   Size          : 8 Bytes
  09:30:51 :   Bank          : 0x06
  09:30:51 :   Address       : 0x400220f0
  09:30:51 :   Size          : 8 Bytes
  09:30:51 :   Bank          : 0x07
  09:30:51 :   Address       : 0x400221f0
  09:30:51 :   Size          : 8 Bytes
  09:30:51 :   Bank          : 0x08
  09:30:51 :   Address       : 0x400220f8
  09:30:51 :   Size          : 8 Bytes
  09:30:51 :   Bank          : 0x09
  09:30:51 :   Address       : 0x400221f8
  09:30:51 :   Size          : 8 Bytes
  09:30:51 : UPLOADING ...
  09:30:51 :   Size          : 1024 Bytes
  09:30:51 :   Address       : 0x8000000
  09:30:51 : Read progress:
  09:30:51 : Data read successfully
  09:30:51 : Time elapsed during the read operation is: 00:00:00.031

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants