cancel
Showing results for 
Search instead for 
Did you mean: 

Target unknown error 32 in STM32N6

chanchal94
Senior

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.

chanchal94_0-1775805954446.png

 

10 REPLIES 10
Andrew Neil
Super User

@chanchal94 wrote:

debugger is getting stopped after sometime.


Is your code going into a low-power mode, and/or reconfiguring the debug pins?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
Mahmoud Ben Romdhane
ST Employee

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.

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. 

chanchal94_0-1775820740429.png

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?

chanchal94_0-1775824806844.png

chanchal94_1-1775824838861.png

 

 

@Andrew Neil @Mahmoud Ben Romdhane  Good day!
This is a reminder message, My project is still stuck in this application. Kindly help.

 

Regards

Chanchal

@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 

chanchal94_0-1776319617640.png

chanchal94_1-1776319713154.png

chanchal94_2-1776319733785.png

chanchal94_3-1776319761642.png

 

 

 

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.

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

chanchal94_0-1776507251081.png

chanchal94_1-1776507264916.png

 

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.