<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RT1170 USB CDC stuck in kStatus_USB_Busy even when breakpoint is placed in non-executing code in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/RT1170-USB-CDC-stuck-in-kStatus-USB-Busy-even-when-breakpoint-is/m-p/2322326#M4894</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on i.MX RT1170 (M7 core) with:&lt;/P&gt;&lt;P&gt;SDK version 25.09&lt;/P&gt;&lt;P&gt;FreeRTOS&lt;/P&gt;&lt;P&gt;USB CDC (Virtual COM)&lt;/P&gt;&lt;P&gt;CAN-FD running in parallel&lt;/P&gt;&lt;P&gt;Initialization is correct.&lt;BR /&gt;USB enumeration completes successfully.&lt;BR /&gt;CAN-FD and USB communication both work properly during normal execution.&lt;/P&gt;&lt;P&gt;System behavior under normal conditions:&lt;/P&gt;&lt;P&gt;CAN-FD receives data correctly&lt;/P&gt;&lt;P&gt;USB CDC sends data to PC (Tera Term) successfully&lt;/P&gt;&lt;P&gt;USB_DeviceCdcAcmSend() works as expected&lt;/P&gt;&lt;P&gt;USB callback executes and busy flag clears properly&lt;/P&gt;&lt;P&gt;Issue:&lt;/P&gt;&lt;P&gt;If I place a breakpoint anywhere in the project — even in code that is not currently executing (for example in main() after initialization or in some unrelated function) — the system continues running, but USB CDC eventually gets stuck.&lt;/P&gt;&lt;P&gt;Important observations:&lt;/P&gt;&lt;P&gt;The breakpoint is NOT being hit.&lt;/P&gt;&lt;P&gt;Code continues running normally.&lt;/P&gt;&lt;P&gt;FreeRTOS tasks continue executing.&lt;/P&gt;&lt;P&gt;CAN-FD continues working correctly.&lt;/P&gt;&lt;P&gt;Only USB CDC stops functioning.&lt;/P&gt;&lt;P&gt;After this happens:&lt;/P&gt;&lt;P&gt;USB_DeviceCdcAcmSend() returns kStatus_USB_Busy&lt;/P&gt;&lt;P&gt;USB transfer callback is not called&lt;/P&gt;&lt;P&gt;Busy flag never clears&lt;/P&gt;&lt;P&gt;USB communication stops permanently until board reset&lt;/P&gt;&lt;P&gt;Even using printf() during runtime can sometimes trigger similar behavior.&lt;/P&gt;&lt;P&gt;Configuration:&lt;/P&gt;&lt;P&gt;#define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 2&lt;BR /&gt;#define USB_DEVICE_INTERRUPT_PRIORITY (6U)&lt;/P&gt;&lt;P&gt;USB task stack size:&lt;/P&gt;&lt;P&gt;#define APP_TASK_STACK_SIZE 8000L&lt;/P&gt;&lt;P&gt;Stack overflow is not observed.&lt;BR /&gt;System does not crash.&lt;BR /&gt;Only USB CDC communication becomes stuck.&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;Why does USB CDC get stuck even when the breakpoint is placed in non-executing code?&lt;/P&gt;&lt;P&gt;Does the debugger momentarily halt the M7 core in a way that affects USB HS timing?&lt;/P&gt;&lt;P&gt;Can delayed servicing of USB interrupts cause the CDC driver to remain in kStatus_USB_Busy permanently?&lt;/P&gt;&lt;P&gt;Is this expected behavior of the USB HS controller (EHCI) when the CPU is halted?&lt;/P&gt;&lt;P&gt;What is the recommended way to debug USB CDC on RT1170 without causing transfer corruption?&lt;/P&gt;&lt;P&gt;Any guidance would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Feb 2026 07:10:52 GMT</pubDate>
    <dc:creator>Harisha</dc:creator>
    <dc:date>2026-02-25T07:10:52Z</dc:date>
    <item>
      <title>RT1170 USB CDC stuck in kStatus_USB_Busy even when breakpoint is placed in non-executing code</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/RT1170-USB-CDC-stuck-in-kStatus-USB-Busy-even-when-breakpoint-is/m-p/2322326#M4894</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on i.MX RT1170 (M7 core) with:&lt;/P&gt;&lt;P&gt;SDK version 25.09&lt;/P&gt;&lt;P&gt;FreeRTOS&lt;/P&gt;&lt;P&gt;USB CDC (Virtual COM)&lt;/P&gt;&lt;P&gt;CAN-FD running in parallel&lt;/P&gt;&lt;P&gt;Initialization is correct.&lt;BR /&gt;USB enumeration completes successfully.&lt;BR /&gt;CAN-FD and USB communication both work properly during normal execution.&lt;/P&gt;&lt;P&gt;System behavior under normal conditions:&lt;/P&gt;&lt;P&gt;CAN-FD receives data correctly&lt;/P&gt;&lt;P&gt;USB CDC sends data to PC (Tera Term) successfully&lt;/P&gt;&lt;P&gt;USB_DeviceCdcAcmSend() works as expected&lt;/P&gt;&lt;P&gt;USB callback executes and busy flag clears properly&lt;/P&gt;&lt;P&gt;Issue:&lt;/P&gt;&lt;P&gt;If I place a breakpoint anywhere in the project — even in code that is not currently executing (for example in main() after initialization or in some unrelated function) — the system continues running, but USB CDC eventually gets stuck.&lt;/P&gt;&lt;P&gt;Important observations:&lt;/P&gt;&lt;P&gt;The breakpoint is NOT being hit.&lt;/P&gt;&lt;P&gt;Code continues running normally.&lt;/P&gt;&lt;P&gt;FreeRTOS tasks continue executing.&lt;/P&gt;&lt;P&gt;CAN-FD continues working correctly.&lt;/P&gt;&lt;P&gt;Only USB CDC stops functioning.&lt;/P&gt;&lt;P&gt;After this happens:&lt;/P&gt;&lt;P&gt;USB_DeviceCdcAcmSend() returns kStatus_USB_Busy&lt;/P&gt;&lt;P&gt;USB transfer callback is not called&lt;/P&gt;&lt;P&gt;Busy flag never clears&lt;/P&gt;&lt;P&gt;USB communication stops permanently until board reset&lt;/P&gt;&lt;P&gt;Even using printf() during runtime can sometimes trigger similar behavior.&lt;/P&gt;&lt;P&gt;Configuration:&lt;/P&gt;&lt;P&gt;#define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 2&lt;BR /&gt;#define USB_DEVICE_INTERRUPT_PRIORITY (6U)&lt;/P&gt;&lt;P&gt;USB task stack size:&lt;/P&gt;&lt;P&gt;#define APP_TASK_STACK_SIZE 8000L&lt;/P&gt;&lt;P&gt;Stack overflow is not observed.&lt;BR /&gt;System does not crash.&lt;BR /&gt;Only USB CDC communication becomes stuck.&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;Why does USB CDC get stuck even when the breakpoint is placed in non-executing code?&lt;/P&gt;&lt;P&gt;Does the debugger momentarily halt the M7 core in a way that affects USB HS timing?&lt;/P&gt;&lt;P&gt;Can delayed servicing of USB interrupts cause the CDC driver to remain in kStatus_USB_Busy permanently?&lt;/P&gt;&lt;P&gt;Is this expected behavior of the USB HS controller (EHCI) when the CPU is halted?&lt;/P&gt;&lt;P&gt;What is the recommended way to debug USB CDC on RT1170 without causing transfer corruption?&lt;/P&gt;&lt;P&gt;Any guidance would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 07:10:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/RT1170-USB-CDC-stuck-in-kStatus-USB-Busy-even-when-breakpoint-is/m-p/2322326#M4894</guid>
      <dc:creator>Harisha</dc:creator>
      <dc:date>2026-02-25T07:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: RT1170 USB CDC stuck in kStatus_USB_Busy even when breakpoint is placed in non-executing code</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/RT1170-USB-CDC-stuck-in-kStatus-USB-Busy-even-when-breakpoint-is/m-p/2326706#M4955</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/253824"&gt;@Harisha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for your interest in our products and for using our community.&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;P&gt;Regarding your issue, I recommend trying the following adjustments:&lt;/P&gt;
&lt;P&gt;1：Set the USB interrupt priority to the highest priority that FreeRTOS can manage to ensure that USB receives timely interrupt service.&lt;/P&gt;
&lt;P&gt;2：Lower the interrupt priorities of other modules (such as CAN-FD in your application) so they do not stop USB processing.&lt;/P&gt;
&lt;P&gt;Please try these changes and test again.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Best Regards&lt;/DIV&gt;
&lt;DIV&gt;mayLiu&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Mar 2026 03:37:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/RT1170-USB-CDC-stuck-in-kStatus-USB-Busy-even-when-breakpoint-is/m-p/2326706#M4955</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2026-03-05T03:37:25Z</dc:date>
    </item>
  </channel>
</rss>

