Skip to main content
Associate
August 14, 2025
Question

STM3Hh523 reading peripheral registers using STM32_Programmer_CLI

  • August 14, 2025
  • 2 replies
  • 230 views

Hi,

I am trying to read peripheral registers on the H523 using STM32_Programmer_CLI.

CLI parameters : -c port=SWD -r32 0x42020800 52

Result:

0x42020800 : FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
0x42020810 : FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
0x42020820 : FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
0x42020830 : FFFFFFFF

 

It looks like it only reads the value from 0x42020800 (the first word).

It works fine on the F103 so i am guessing it has to do with the protection on the H523.

The option byte is ED (open).

 

What can I do to make it work?

 

KetilO

2 replies

Maryem
Technical Moderator
August 14, 2025

Hello @KetilO and welcome to the Community,

 

I have submitted an internal ticket to the concerned team regarding this behavior.

Internal ticket number: 215792 (This is an internal tracking number and is not accessible or usable by customers)

I will let you know once I have an update.

 

Maryem.

KetilOAuthor
Associate
August 15, 2025

Hi,

Thanks Maryem

Found a solution. Adding HOTPLUG to the CLI parameters made it works.

CLI parameters : -c port=SWD mode=HOTPLUG -r32 0x42020800 52

Result:

0x42020800 : F7FFFFFF 00000000 08000000 00000000
0x42020810 : 00000000 00000000 00000000 00000000
0x42020820 : 00000000 00000000 00000000 00000000
0x42020830 : 0000FFFF

 

Unfortunatly this revealed another problem. Interrupts are disabled and a reset is needed to enable them again.

This does not happend on the F103 board.

 

KetilO