<?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: Issue initializing USBFSD on LPC55S69 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Issue-initializing-USBFSD-on-LPC55S69/m-p/944833#M37602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to solve my issue: USB0CLKDIV.HALT needs to be cleared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- when using the 96MHz clock, flash wait cycles need to be set to 8 via the field FMCTIM in the register FMCCR of SYSCON.&lt;/P&gt;&lt;P&gt;- very much harder figure out for me was that USB0CLKDIV has a reset HALT value of 1 (not running), this needs to be explicitly cleared. The CLOCK_SetClkDiv function in the sample code manages to hide this quite well!! As it has a code path that explicitly sets the bit, vs implicitly clearing it when assigning "divisor minus one". Since I use a register-access layer generated from the SVD, this was completely non-obvious to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Sep 2019 23:23:12 GMT</pubDate>
    <dc:creator>nickray</dc:creator>
    <dc:date>2019-09-21T23:23:12Z</dc:date>
    <item>
      <title>Issue initializing USBFSD on LPC55S69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Issue-initializing-USBFSD-on-LPC55S69/m-p/944831#M37600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to write a Rust USB FS device driver for the LPC55S6x chips, using the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;LPC55S69-EVK board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I'm using gdb to connect via JLinkGDBServer to a J-Link OB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Following section 41.3 of&amp;nbsp;UM11126, I'm trying to set&amp;nbsp;DEV_ENABLE in the USBFSH PortMode register. This fails, and I can't even read out the value of this bit. Instead JLinkGDBServer starts losing connection to the device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Is there any known reason why reading and writing the portmode might fail? Possibly some detail specific to the EVK board?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;To make matters worse, I can no longer connect at all:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Connecting to target...ERROR: InitTarget(): PCode returned with error code -1&lt;/P&gt;&lt;P&gt;ERROR: Could not connect to target.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;And even mass erasing flash via JFlashLite with J10 set fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So while I wait for a replacement board, any pointers are very much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 22:41:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Issue-initializing-USBFSD-on-LPC55S69/m-p/944831#M37600</guid>
      <dc:creator>nickray</dc:creator>
      <dc:date>2019-09-18T22:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issue initializing USBFSD on LPC55S69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Issue-initializing-USBFSD-on-LPC55S69/m-p/944832#M37601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicolas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding the debug access I recommend you to check the following post and try booting into &lt;STRONG&gt;ISP mode&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389112"&gt;Regaining debug access to target MCU&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the PortMode register issue, please make sure you turn on the &lt;STRONG&gt;USB PHY&lt;/STRONG&gt; in &lt;STRONG&gt;PDRUNCFG0&lt;/STRONG&gt; register. Also you need to Enable port mode configuration by setting the &lt;STRONG&gt;USB0_HOSTS&lt;/STRONG&gt; in the &lt;STRONG&gt;AHBCLKCTRL2&lt;/STRONG&gt; register.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend you to check our examples from the SDK so you have a better approach to what you need to do in order to implement your own USB driver. You can download the SDK from the following link.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/welcome" title="https://mcuxpresso.nxp.com/en/welcome"&gt;Welcome | MCUXpresso SDK Builder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2019 21:16:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Issue-initializing-USBFSD-on-LPC55S69/m-p/944832#M37601</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-09-20T21:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue initializing USBFSD on LPC55S69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Issue-initializing-USBFSD-on-LPC55S69/m-p/944833#M37602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to solve my issue: USB0CLKDIV.HALT needs to be cleared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- when using the 96MHz clock, flash wait cycles need to be set to 8 via the field FMCTIM in the register FMCCR of SYSCON.&lt;/P&gt;&lt;P&gt;- very much harder figure out for me was that USB0CLKDIV has a reset HALT value of 1 (not running), this needs to be explicitly cleared. The CLOCK_SetClkDiv function in the sample code manages to hide this quite well!! As it has a code path that explicitly sets the bit, vs implicitly clearing it when assigning "divisor minus one". Since I use a register-access layer generated from the SVD, this was completely non-obvious to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Sep 2019 23:23:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Issue-initializing-USBFSD-on-LPC55S69/m-p/944833#M37602</guid>
      <dc:creator>nickray</dc:creator>
      <dc:date>2019-09-21T23:23:12Z</dc:date>
    </item>
  </channel>
</rss>

