<?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>Kinetis MicrocontrollersのトピックUSBHS_USBSTS SEI System Error cause?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USBHS-USBSTS-SEI-System-Error-cause/m-p/1244684#M59863</link>
    <description>&lt;P&gt;I am implementing the USB stack (High Speed, EHCI controller) on a Kinetis MK26FN2M0VMI18 starting from the code generated by the latest MCUXpresso SDK.&lt;/P&gt;&lt;P&gt;I am trying to implement an USB Virtual COM device.&lt;/P&gt;&lt;P&gt;When using the project generated by the SDK the device is enumerated correctly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I need to import the USB code, including initialization of clock and registers, in our existing project, so I tried to do this process with the greatest care. Nevertheless, the enumeration is not working: the PC is giving the message&amp;nbsp;"Unrecognized USB device". The&amp;nbsp;_usb_dci_usbhs_isr service routine is never called with&amp;nbsp;EHCI_STS_INT set (the UI bit of USBHS_USBSTS register), which would imply serving the GET_DESCRIPTOR request from the PC.&amp;nbsp;The interrupt is enabled: bit UE of&amp;nbsp;USBHS_USBINTR is set correctly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In the&amp;nbsp;USBHS_USBSTS register, the SEI bit is set&lt;/STRONG&gt; (this does not happen in the original MCUXpresso project). &lt;STRONG&gt;Documentation says "System Error - Set when an error is detected on the system bus".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What could I have missed in importing the USB code in our project? What are the possible causes of the SEI error?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Mar 2021 08:13:04 GMT</pubDate>
    <dc:creator>spiderman</dc:creator>
    <dc:date>2021-03-12T08:13:04Z</dc:date>
    <item>
      <title>USBHS_USBSTS SEI System Error cause?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USBHS-USBSTS-SEI-System-Error-cause/m-p/1244684#M59863</link>
      <description>&lt;P&gt;I am implementing the USB stack (High Speed, EHCI controller) on a Kinetis MK26FN2M0VMI18 starting from the code generated by the latest MCUXpresso SDK.&lt;/P&gt;&lt;P&gt;I am trying to implement an USB Virtual COM device.&lt;/P&gt;&lt;P&gt;When using the project generated by the SDK the device is enumerated correctly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I need to import the USB code, including initialization of clock and registers, in our existing project, so I tried to do this process with the greatest care. Nevertheless, the enumeration is not working: the PC is giving the message&amp;nbsp;"Unrecognized USB device". The&amp;nbsp;_usb_dci_usbhs_isr service routine is never called with&amp;nbsp;EHCI_STS_INT set (the UI bit of USBHS_USBSTS register), which would imply serving the GET_DESCRIPTOR request from the PC.&amp;nbsp;The interrupt is enabled: bit UE of&amp;nbsp;USBHS_USBINTR is set correctly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In the&amp;nbsp;USBHS_USBSTS register, the SEI bit is set&lt;/STRONG&gt; (this does not happen in the original MCUXpresso project). &lt;STRONG&gt;Documentation says "System Error - Set when an error is detected on the system bus".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What could I have missed in importing the USB code in our project? What are the possible causes of the SEI error?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 08:13:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USBHS-USBSTS-SEI-System-Error-cause/m-p/1244684#M59863</guid>
      <dc:creator>spiderman</dc:creator>
      <dc:date>2021-03-12T08:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: USBHS_USBSTS SEI System Error cause?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USBHS-USBSTS-SEI-System-Error-cause/m-p/1246489#M59904</link>
      <description>&lt;P&gt;The only difference in registers which might be related to USB, between working sample project and not working project is:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;WORKING SAMPLE PROJECT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NOT WORKING PROJECT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USBHS_USBSTS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt; UI=1, SLI=1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UI=0 (never at 1), SLI=0, SEI=1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USBHS_PORTSC1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt; LS=00, SUSP=0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LS=10, SUSP=1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What can cause SEI=1 and SUSP=1?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is the difference between values of LS field important? What is its meaning?&lt;/P&gt;&lt;P&gt;Please advise. Many thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 14:32:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USBHS-USBSTS-SEI-System-Error-cause/m-p/1246489#M59904</guid>
      <dc:creator>spiderman</dc:creator>
      <dc:date>2021-03-16T14:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: USBHS_USBSTS SEI System Error cause?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USBHS-USBSTS-SEI-System-Error-cause/m-p/1246591#M59907</link>
      <description>&lt;P&gt;The above problem turned out to be caused by the &lt;STRONG&gt;missing disabling of the MPU:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MPU_CESR_REG(MPU_BASE_PTR) &amp;amp;= ~MPU_CESR_VLD_MASK;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Now the device is enumerating correctly, at least at the first insertion. Possibly some problems sometimes when detaching and attaching again, to be verified.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 17:16:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USBHS-USBSTS-SEI-System-Error-cause/m-p/1246591#M59907</guid>
      <dc:creator>spiderman</dc:creator>
      <dc:date>2021-03-16T17:16:27Z</dc:date>
    </item>
  </channel>
</rss>

