Debug session very slow to start (~4 minutes)

By Joseph F. : Feb 18, 2025 at 08:13 AM (08:13 hours)
Staff: Takao Y. : 3 comments

Hello,

I have been able to successfully Build and Debug a project pulled out of our archives with NXP's MCUXpresso_24.12.148 and the PE Micro USB-ML-UNIVERSAL on the NXP FRDM-K22F development board, BUT when I click on the Debug option, it consistently and literally takes 3 minutes and 48 seconds to load and be ready for debugging. When I build this project, I get 0 warnings and 0 errors, and I get no error messages launching the Debug session. It is just VERY slow to load. After the Debug session is loaded, debugging seems to proceed at the normal, responsive speed.


If I build and debug an NXP Example project, then the Debug session comes up almost immediately - just a couple of seconds.

I am building on Ubuntu 22.04.


Any ideas how I can speed this up, please?

Thank you!

Greetings,

That is super slow. I have seen it myself however I have never been able to pinpoint why that happens. The compiling that is done by the IDE is separate from the PEmicro implementation of debugging. I am glad the flash programming and debugging portion is going fast and properly.

Does it also take awhile for compilation to finish? Does the behavior change if you compile first, then hit the debug button, versus just hitting debug without saving changes or without compiling a new ELF file? I hope this helps narrow down the possible issue and determine what should be looked at.


Takao

Compilation/building goes fine and at "normal" speed. That 3 min. and 48 sec. stopwatch was just the Debug part, after already compiling/building.

Thanks for trying to help me.