2025-08-14 12:27 AM
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
2025-08-14 8:55 AM
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.
2025-08-15 3:57 AM
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