Error: No STM32 target found! (SMT32N657X0-Q)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-20 2:00 PM - last edited on ‎2025-01-21 7:36 AM by Andrew Neil
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
Solved! Go to Solution.
- Labels:
-
STM32CubeProgrammer
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-21 8:25 AM - edited ‎2025-01-21 8:35 AM
Hello @Congtran90
I understand you are trying to etablish a SWD connection between NUCLEO-N657X0-Q and STM32CubeProgrammer.
Make sure that you are using the last STM32CubeProgrammer v2.18.0 version.
You need to change BOOT1 = 1 (JP2) jumper configuration to put the STM32N6570 in DevBOOT mode.This mode allow Debug port access by the bootROM.
You can refer to my post below and refer to the attached document (NUCLEO-N6570X0Q_Dev_BOOT.pdf)
Let me known if it solve your issue?
Best regards,
Romain,
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-21 7:39 AM
You didn't say what board you're using:
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-21 8:25 AM - edited ‎2025-01-21 8:35 AM
Hello @Congtran90
I understand you are trying to etablish a SWD connection between NUCLEO-N657X0-Q and STM32CubeProgrammer.
Make sure that you are using the last STM32CubeProgrammer v2.18.0 version.
You need to change BOOT1 = 1 (JP2) jumper configuration to put the STM32N6570 in DevBOOT mode.This mode allow Debug port access by the bootROM.
You can refer to my post below and refer to the attached document (NUCLEO-N6570X0Q_Dev_BOOT.pdf)
Let me known if it solve your issue?
Best regards,
Romain,
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-21 8:42 AM
Dear RomainR,
I would like to thank a lot for your great advice and your suggestion,
Your solution is really helpful for me and my work, and that help me to solve the issues.
Yes, I am developing mode so I need to change connection in the JumpJ2 as your guide documents and then it works well,
Thank you a lot for your great solution and quick!
Have a good day to You!
Best regards
Tran Quoc Cong,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-21 8:45 AM
Dear Andrew Neil,
Thank a lot for your advice, I will take experience and take note it.
I will follow your guides and template on the next time.
My board used as STM32N657X0-Q.
Thank a lot for your support!
Have a good day to You!
Best regards
Tran Quoc Cong,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-21 8:53 AM
@Congtran90 wrote:My board used as STM32N657X0-Q.
That tells us nothing about the rest of the board!
When it's a custom board, you need to post the schematics, details of how you're connecting to it, etc.
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-11 8:34 AM
Hello Romain,
Thank you for your solution. It was very useful and it solved our problem !
Best regards,
Student of INFO4 Polytech Grenoble
