A problem occurred during debugging

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

A problem occurred during debugging

Jump to solution
2,184 Views
zenging
Contributor I

After I enter debug, there will be some prompts about the debugger, and then the program seems to be stuck in a certain place, and can not run down.I want to know how to solve it.

bb108f33297523d3e7d3c213e7549c5.png8211755b67a90c2cdebbdfcacaf7c00.png0374612f2a65df943b5252acb82f00d.png

0 Kudos
Reply
1 Solution
1,988 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

I can see in your project that 16MHz is configured. This needs to be updated:

lukaszadrapa_0-1725365353794.png

 

View solution in original post

0 Kudos
Reply
7 Replies
2,134 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @zenging 

isn't that caused by startup files? What does happen if you uncheck "Run on reset" in Debug configurations like this?

lukaszadrapa_0-1724847349377.png

Then it will stop at entry point once the project is loaded and you can debug also the startup files. Can you reach this state or does it crash already during the loading?

Regards,

Lukas

 

0 Kudos
Reply
2,125 Views
zenging
Contributor I

HI,@lukaszadrapa 

I uncheck the reset and run options according to your suggestion, but when I click debug, I will jump directly to this error message.

4b4e72cc8454364c59b7bb9963c4d18.png

Then when I hit resume multiple times it's stuck inside the DevAssert function. I would like to ask how this situation should be resolved.

30e1946d4166860cc17bf079b030d8a.png

0 Kudos
Reply
2,116 Views
zenging
Contributor I

This is my creation of the project, you can see if there is any problem.

0 Kudos
Reply
2,052 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

I loaded the project to my board and it seems it works as expected. Are your clock settings correct? Does crystal frequency on your board correspond to the value set in the configurator?

0 Kudos
Reply
2,040 Views
zenging
Contributor I

HI,@lukaszadrapa 

I'm not sure if my clock is configured correctly because it seems to me that your tutorial didn't teach me how to configure the clock. I just configured the initialization of the serial port. So how do you configure the clock correctly?

3cbb4d5102b7e1bc1acb9ea297f8c8e.png

This is the crystal oscillator on my board, should I modify the clock initialization according to this crystal oscillator? How should I configure it?

0 Kudos
Reply
2,002 Views
zenging
Contributor I
This crystal oscillator is a passive crystal oscillator, do you need any additional configuration
0 Kudos
Reply
1,989 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

I can see in your project that 16MHz is configured. This needs to be updated:

lukaszadrapa_0-1725365353794.png

 

0 Kudos
Reply