Debugging with breakpoint without stopping all interrupt

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

Debugging with breakpoint without stopping all interrupt

Jump to solution
1,311 Views
Davidino
Contributor IV

Hello everyone,

I have developed an application on the iMXRT-1064 without an operating system. Among its various features, the application includes an EtherCAT master, with communication maintained through a timer interrupt.

I would like to use breakpoints to pause the code execution in order to inspect variable values or verify the logical flow. However, when a breakpoint is hit, all interrupts and code execution are halted as well, causing the EtherCAT connection to drop.

Is there a way to set breakpoints that halt the main execution but still allow certain interrupts, such as the one handling the EtherCAT communication, to continue running?

Thank you for your help!

 

Tags (2)
0 Kudos
Reply
1 Solution
1,257 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @Davidino,

I'm afraid this isn't possible either. As mentioned on the MCUXpresso IDE FreeRTOS Debug Guide: "If the execution of a user task is halted either through a user action (halt) or a debug event (breakpoint, watchpoint, fault, and so on), the stopped thread is current and no application thread executes in the background."

BR,
Edwin.

View solution in original post

0 Kudos
Reply
3 Replies
1,267 Views
Davidino
Contributor IV

Hello @EdwinHz,

Thank you for your answer. One last question: if I start adopting FreeRTOS and enable the use of multiple threads, is it possible to pause one thread using the debugger while leaving the others running?

Thank you.

0 Kudos
Reply
1,258 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @Davidino,

I'm afraid this isn't possible either. As mentioned on the MCUXpresso IDE FreeRTOS Debug Guide: "If the execution of a user task is halted either through a user action (halt) or a debug event (breakpoint, watchpoint, fault, and so on), the stopped thread is current and no application thread executes in the background."

BR,
Edwin.

0 Kudos
Reply
1,288 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @Davidino,

I'm afraid there isn't an option to have breakpoints that halt execution of the MCU while allowing specific interrupts.

The most there is, is Debug Mode on your ENET module as described on section "41.3.9.3 Debug mode" of the RM.

BR,
Edwin.

0 Kudos
Reply