2026-04-10 12:26 AM
I am working with STM32N6570-DK. My code is building fine , suddenly a hard fault has started coming. I have tried updating firmware, resetting the board, unplugging and reconnecting it, But debugger is getting stopped after sometime.
2026-04-10 12:48 AM
@chanchal94 wrote:debugger is getting stopped after sometime.
Is your code going into a low-power mode, and/or reconfiguring the debug pins?
2026-04-10 1:39 AM
Hello @chanchal94
Let me thank you for posting.
I recommend that you take a look at this Knowledge Article and this Application Note.
They describe how to get started with projects based on STM32N6 microcontrollers in the STMicroelectronics
STM32CubeIDE integrated development environment.
Thanks.
Mahmoud
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.
2026-04-10 4:57 AM - last edited on 2026-04-10 5:14 AM by Andrew Neil
No my code does not have any low power mode.
Below is my project structure. I have FSBL included in it but my whole project is in application main.c . Do I have to take care of any extra settings of debugger while debugging the application code?
While in this case if I try to debug FSBL first that is also not working. Which parameters should I recheck again.
From Example - GPIO toggle was working fine.
2026-04-10 5:43 AM
In this knowledge article at ST community, I tried loading this Template file, If I am working on my FSBL+Application project .
1) In debug configuration settings , What bin file should I use, the same which has been used in template example or from our project and how to find its address?
2) Debug as in my case should halt at main only (as I am working in main of application only)
3) Should I start debugging from FSBL or application directly ( My whole program is in application main ())
I have attached the screenshot of template page and other is my application debug configuration settings , Can you tell these two queries?
2026-04-14 11:46 PM
@Andrew Neil @Mahmoud Ben Romdhane Good day!
This is a reminder message, My project is still stuck in this application. Kindly help.
Regards
Chanchal
2026-04-15 11:10 PM - edited 2026-04-15 11:10 PM
@Mahmoud Ben Romdhane I followed the article https://community.st.com/t5/stm32-mcus/how-to-build-an-ai-application-from-scratch-on-the-stm32n6570-dk/ta-p/825591 as you told, It helped in removing the Target unknown error 32, But I am still stuck as when I debug application it jumps to somewhere outside the code. I know less about memory mappings of STM32N6, Can you help? I am attaching fours steps that is happening while debugging of application.
Thanks & Regards
Chanchal
2026-04-17 7:01 AM
Hello @@chanchal94
Further to your comment, I recommend that you connect the board with STM32CubeProgrammer and erase the flash memory before launching the debug session.
I will be waiting for your feedback.
Thanks.
Mahmoud
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.
2026-04-18 3:15 AM
Hello @Mahmoud Ben Romdhane
I tried connecting board with STM32CubeProgrammer and complete mass erase. It removed this last 0x0 breakpoint. But still the problem is same.
Regards
Chanchal
2026-04-21 1:37 AM
Hello @chanchal94
Could you provide your STM32CubeIDE project.
Thanks.
Mahmoud
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.