Can't debug after breakpoint

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

Can't debug after breakpoint

1,411 Views
biafra
Senior Contributor I

Hi everyone,

I'm using MCUXpresso 10.2.1 and a custom board based on MK66FN2M0.

Sometimes I have a strange problem: the program can run fine until it stops because of a breakpoint or because I hit the suspend button, but if I then hit the resume button or if I step to the next line, the program seems to hang. If I stop the program and then I re-run it again with the attach to running target flag set and I suspend it again, it is at the same location as the preceeding debug session.

I can correctly debug the project (run, stop, break, step) before the OS (FreeRTOS) starts, but no way if the first task is started.

When I suspend the program, the FreeRTOS aware data seem correct.

This problem came unexpectedly and went away unuxpectedly.

I've tried to restart MCUXpresso, the PC, clean the project, but without success.

Maybe when this problem disappeared I made some operations, buy I cannot describe them.

What can I do to correctly debug again?

Many thanks

Biafra

5 Replies

1,043 Views
BlackNight
NXP Employee
NXP Employee

Hi Biafra,

what  is your debug connection method (LinkServer, P&E or SEGGER)?

I think your problem might be related to the FreeRTOS debug awareness.

Check if things change if you disable the thread awareness.

See Troubleshooting Tips for FreeRTOS Thread Aware Debugging in Eclipse | MCU on Eclipse .

I hope this helps,

Erich

1,043 Views
biafra
Senior Contributor I

Hi BlackNight‌,

I'm using P&E probe.

I've read the article, but all the steps are ok and I can't still debug!

How can I disable the thread awareness using P&E probe?

Many thanks

Biafra

1,043 Views
biafra
Senior Contributor I

Hi BlackNight‌,

Many thanks for your answer.

If I disable the FreeRTOS awareness plugin I can work with no problem (run, suspend, breakpoint, resume...), but obviously I can debug only the current task.

Now the question is: why this problem suddenly appeared and how can I come back to debug all the tasks?

Many thanks

Biafra

1,043 Views
BlackNight
NXP Employee
NXP Employee

Hi Biafra,

I think this is an issue in the P&E plugin.

you could

a) try the V10.3, see New NXP MCUXpresso IDE V10.3.0 Release | MCU on Eclipse . You don't need to uninstall 10.2, simply install 10.3 into a different folder.

b) update the P&E plugins (they released a new version with 10.3, but you can update them as well with Help > Install new software, select the P&E update site and then update

c) share your project here or send it to P&E so they can have a look.

I hope this helps,

Erich

1,043 Views
biafra
Senior Contributor I

Hi BlackNight‌,

I think the plugin is already updated:

pastedImage_1.png

I cannot share the project, I will try if I'm able to reproduce the problem on another project.

I will also take a look to MCUXpresso 10.3.

Many thanks

Biafra