Skip to main content
Associate III
April 1, 2024
Solved

How to program STM32H563ZI with TZ disabled using CLI?

  • April 1, 2024
  • 1 reply
  • 1363 views

Hi,

I'm trying to program a hex file generated with 'TrustZone disabled' software model targeting STM32H563ZIT6 (NUCLEO-h563ZI) as:

"C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" -c port=SWD freq=4000 sn=040917021e8903bf00000000000000000000000097969906 -d C:/Users/WCarey/repositories/projects/keil/stm32h563zi/Release/Objects/ucomm_example.hex -g

This results in the error:

WCarey_0-1711945173625.png

So, I changed the access port to 1:

"C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" -c port=SWD freq=4000 ap=1 sn=040917021e8903bf00000000000000000000000097969906 -d C:/Users/WCarey/repositories/projects/keil/stm32h563zi/Release/Objects/ucomm_example.hex -g

WCarey_1-1711945550252.png

Though the serial number is correct, there's a DEV_CONNECT_ERR. The hex has NOT been loaded properly because when I try to open up a serial monitor like Teraterm, I am unable to receive any data.

Can anyone point out how to load the hex file?

Thanks in advance.

NOTE: I am able to load from Keil and send/receive data from Teraterm.

 

 

This topic has been closed for replies.
Best answer by Maryem

Hello @WCarey ,

 

Could you please try using the latest version of STM32CubeProgrammer, v2.16.0?

 

Maryem.

1 reply

Maryem
MaryemBest answer
Technical Moderator
April 1, 2024

Hello @WCarey ,

 

Could you please try using the latest version of STM32CubeProgrammer, v2.16.0?

 

Maryem.