Error: No STM32 target found! (SMT32N657X0-Q)
Dear Community Teams,
My name is Cong, and who currently perform projects with smt32. However, there is one error that I need advice from you if possible.
The description of the error as below:
- Environment used: Windows 10
- Board: SMT32N657X0-Q
- Tool: SMT32CubeProgrammer
- Description:
This is the first setup for my board SMT32N657X0-Q.
I used the SMT32CubeProgrammer to connect the board.
From my laptop: I saw it can connect to my laptop via ST-LINKS
After that, I used the smt32cubeprogrammer tool and configuration for ST-Link as the second photo (Reset mode: Software reset), I received the error:
04:10:41 : Error: Unable to get core ID
04:10:41 : Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
When I changed the reset mode to: Hardware reset, I received an error as Third photos:
04:20:12 : Error: Data read failed
In this case, I saw the tools can read the board stm32N657X0-Q, but it cannot access the memory.
- Find root causes:
I read documents "stm32_debug authentication (DA)", stm32cubeprogrammer-user_manual, STM32N647xx STM32N657xx datasheet.
After that, I suppose the error can be relevant by Debug Authentication for the board on the first time to use.
- Solution fix:
I tried to see some video guides and documents below:
https://wiki.st.com/stm32mcu/wiki/Security:Debug_Authentication
https://wiki.st.com/stm32mcu/wiki/Security:How_to_install_a_trusted_application_on_STM32N6_MCUs
STM32H5 Secure Manager - 07 Debug authentication
STM32Trust Secure Manager: Part 5, Hands-on Debug Authentication
The available guides are related to the STM32H5, H7 series, and STM32N657-DK, but I could not find any documents or guides for debug authentication on the STM32N657X0-Q.
Additionally, as shown in the fourth photo, I searched my local PC for the STM32CUBE initialization. For the "STM32N6570-DK" board, I found a folder named "ROT_Provisioning" that allows key generation. However, this folder is not available for the "NUCLEO-N657X0-Q" board.
- My questions are that:
- If you notice any errors in the above content, please provide hints or suggestions on how to fix them. Your advice would be greatly appreciated.
- I reviewed the datasheet and noticed that the STM32H5 and STM32H7 series have a different core compared to the STM32N6 series. Can I generate a passcode using the STM32H series and apply it to the STM32N657X0-Q board?
- I referred to the document available at this link: https://wiki.st.com/stm32mcu/wiki/Security:How_to_install_a_trusted_application_on_STM32N6_MCUs . It provides detailed guidelines for debug authentication on the STM32N6-DK, but it does not apply to the STM32N657X0-Q. How can I adapt the guide for the STM32N6-DK to generate a passcode for the STM32N657X0-Q board?
- While reviewing the Secure Programming section, I noticed it requires provisioning. Where can we input the passcode mentioned in the fifth photo?
Thank you a lot for your great advice and suggestions. I appreciate your help!
Have a good day to all our teams
Best regards
Cong Tran
