<?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 Re: Stuck on Enable USB Interrupts in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Stuck-on-Enable-USB-Interrupts/m-p/932860#M3840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The interrupt vector table is point by SCB-&amp;gt;VTOR register. When check if the pointer is correct, you should read this register and then read the memory content there.&lt;/P&gt;&lt;P&gt;You can read MCUXpresso_IDE_ConfigTools_User_Manual.pdf. It is in MCUXpresso install directory. When you finish configuring a peripheral, IDE will put the initialize code in peripherals.c, update pin_mux.c and clock_config.c. You should call the initialize code by yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Aug 2019 10:12:43 GMT</pubDate>
    <dc:creator>jingpan</dc:creator>
    <dc:date>2019-08-23T10:12:43Z</dc:date>
    <item>
      <title>Stuck on Enable USB Interrupts</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Stuck-on-Enable-USB-Interrupts/m-p/932857#M3837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the IMXRT1050 eval board with MIMXRT1052DVL6B and I wanted to set up a new project using the USB connector to create a virtual COM port, just like in the SDK example project.&lt;/P&gt;&lt;P&gt;So I created a new (empty) project with USB middleware included, set my clock to 588 MHz by disabling ARM_PLL bypass (PLL1_BYPASS -&amp;gt; ARM_PLL) and then in the Peripherals Tool in the Middleware section I added one USB entry with&lt;/P&gt;&lt;P&gt;Mode: Device,&lt;/P&gt;&lt;P&gt;Peripheral: USB1,&lt;/P&gt;&lt;P&gt;Preset: CDC VCOM.&lt;/P&gt;&lt;P&gt;After that, I had to enable the clock for USB1 and then I could generate the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I start debugging my code (nothing else added here, except the generated code), the initialization fails during USB_DeviceEhiSetDefaultState() in the line&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Enable USB Interrupt, USB Error Interrupt, Port Change detect Interrupt, USB-Reset Interrupt*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale mono, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ehciState-&amp;gt;registerBase-&amp;gt;USBINTR =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale mono, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (USBHS_USBINTR_UE_MASK | USBHS_USBINTR_UEE_MASK | USBHS_USBINTR_PCE_MASK | USBHS_USBINTR_URE_MASK&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;When reaching this line by debugging step-by-step, the debugger hangs up in this line, can not proceed after clicking on pause or stop, I get a window with the error message "Interrupt failed."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally I assume that automatically generated code should run out of the box, but here it seem like it does.&lt;/P&gt;&lt;P&gt;So what could be the reason that it doesn't work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remark: I didn't select the eval board in the wizard, I just selected the microcontroller I use, because later this project should also run on a custom board. So for example I don't use the boards additional RAM and Flash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2019 10:11:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Stuck-on-Enable-USB-Interrupts/m-p/932857#M3837</guid>
      <dc:creator>gianluca_panett</dc:creator>
      <dc:date>2019-08-16T10:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck on Enable USB Interrupts</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Stuck-on-Enable-USB-Interrupts/m-p/932858#M3838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gianluca,&lt;/P&gt;&lt;P&gt;Please check the interrupt vector point to right address. The USB component only include basic file. You must add class relate file and application by yourself. I think generated code can't run out of the box. There is still many work to do. If the problem is still there, you can send me your project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2019 07:31:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Stuck-on-Enable-USB-Interrupts/m-p/932858#M3838</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-08-21T07:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck on Enable USB Interrupts</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Stuck-on-Enable-USB-Interrupts/m-p/932859#M3839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jing,&lt;/P&gt;&lt;P&gt;thanks for your help.&lt;/P&gt;&lt;P&gt;I added the clock for USB and now my program starts running. I also see an additional COM port in my windows device manager.&lt;/P&gt;&lt;P&gt;Where do I check the interrupt vectors?&lt;/P&gt;&lt;P&gt;This is a general problem which I have now also with other peripherals: I can generate example projects which run quite fine out of the box but I can not close the gap to the code which is generated when I create an empty project adding my peripherals. I see no configurations made in the Config Tools in the example projects where I can derive the settings to my own project from, there's just a bunch of code, which doesn't match to the generated code.&lt;/P&gt;&lt;P&gt;Where can I find documentation about peripherals, which says what to do DIRECTLY AFTER including them in the Config Tools?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Gianluca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2019 15:35:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Stuck-on-Enable-USB-Interrupts/m-p/932859#M3839</guid>
      <dc:creator>gianluca_panett</dc:creator>
      <dc:date>2019-08-22T15:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck on Enable USB Interrupts</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Stuck-on-Enable-USB-Interrupts/m-p/932860#M3840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The interrupt vector table is point by SCB-&amp;gt;VTOR register. When check if the pointer is correct, you should read this register and then read the memory content there.&lt;/P&gt;&lt;P&gt;You can read MCUXpresso_IDE_ConfigTools_User_Manual.pdf. It is in MCUXpresso install directory. When you finish configuring a peripheral, IDE will put the initialize code in peripherals.c, update pin_mux.c and clock_config.c. You should call the initialize code by yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2019 10:12:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Stuck-on-Enable-USB-Interrupts/m-p/932860#M3840</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-08-23T10:12:43Z</dc:date>
    </item>
  </channel>
</rss>

