cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U585 communication error DEV_TARGET_CMD_ERROR

PJose.4
Senior

Hi All,

Greetings

We are using STM32U585 on custom board with Trust zone enabled and now facing a connection issue with stm cube programmer in hotplug mode, now unable to connect to the microcontroller and getting ST-LINK error  as : DEV_TARGET_CMD_ERROR.

When NRST is low continuously(pressing the Reset Switch) the connection to the controller through Cube Programmer is happening, but we are unable to change any option bytes, to revert back to Non Trust Zone Code. Once the reset switch(NRST) is high, it is going back to the same error. 

Any suggestions for this issue and how can we resolve this?

Thanks and Regards
Philip

 

 

3 REPLIES 3
Aziz BRIGUI
ST Employee

Hi @PJose.4,

Have you changed the RDP (Readout protection) option byte?

Try connecting BOOT0 to 1 and re-connect (Also please refer to section 9 of Introduction to Arm® TrustZone® features on STM32L5, STM32U5, and STM32U3 MCUs - Application note).

Aziz


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.

Hi @Aziz BRIGUI 

Thanks for the quick reply, 

RDP was in AA. We checked the Boot 0 pin from high and checked still the same issue.

Thanks

Philip

Hi @PJose.4,

I assume you were able to connect previously; can you describe if you changed any setting?

PS: Forgot to mention on my previous comment that to apply the new boot configuration you need to reset or better power off/on your device. So the steps are:

1- Boot0 high

2- Power off/on

3- Try to connect

Aziz


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.