2026-02-04 5:51 AM
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
2026-02-04 6:15 AM - edited 2026-02-04 6:15 AM
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
2026-02-04 6:25 AM
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
2026-02-04 6:34 AM - edited 2026-02-04 6:35 AM
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