cancel
Showing results for 
Search instead for 
Did you mean: 

How to program STM32H563ZI with TZ disabled using CLI?

WCarey
Associate III

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.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Maryem
ST Employee

Hello @WCarey ,

 

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

 

Maryem.


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
Maryem
ST Employee

Hello @WCarey ,

 

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

 

Maryem.


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.