<?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 NXP 4357 USB undocumented error writing 0 to the ENDPTNAKEN register in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/NXP-4357-USB-undocumented-error-writing-0-to-the-ENDPTNAKEN/m-p/523390#M6026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by agemoz on Sat Jan 16 16:04:06 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I am getting an ERROR 15, Target error from register access&amp;nbsp; Ee(FF) Undocumented Error.&amp;nbsp; I am running version LPCXpresso v8.0.0 [Build 526] [2015-11-23] and have the latest LPCOpen software.&amp;nbsp; I am using an LPC4357 (version LPC4357JBD208,PNS994.00 02,ESD14020-) in a target board that works fine except for when I try to initialize USB.&amp;nbsp; This board uses a 25Mhz crystal and the M4 clock is set for 200Mhz, the PLL0 USB PLL is set for 480Mhz.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It happens in the USB ROM code&amp;nbsp; location 0x104026c2, which is deep in the USB0 init routine.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The failure was pinpointed to when the processor attempts to write a 0 to the USB0 ENDPTNAKEN register 0x40006140 + offset 0x3c.&amp;nbsp; As soon as this instruction is executed, the emulator disconnects, the processor appears to shut down, and I have to power cycle the board.&amp;nbsp; This failure is 100% repeatable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the call in my code that causes the processor to hang and the emulator to disconnect:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ret = USBD_API-&amp;gt;hw-&amp;gt;Init(&amp;amp;g_hUsb, &amp;amp;desc, &amp;amp;usb_param);&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The memory location for the descriptors is in CPU RAM 0x10000000 and looks valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:46:07 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:46:07Z</dc:date>
    <item>
      <title>NXP 4357 USB undocumented error writing 0 to the ENDPTNAKEN register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NXP-4357-USB-undocumented-error-writing-0-to-the-ENDPTNAKEN/m-p/523390#M6026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by agemoz on Sat Jan 16 16:04:06 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I am getting an ERROR 15, Target error from register access&amp;nbsp; Ee(FF) Undocumented Error.&amp;nbsp; I am running version LPCXpresso v8.0.0 [Build 526] [2015-11-23] and have the latest LPCOpen software.&amp;nbsp; I am using an LPC4357 (version LPC4357JBD208,PNS994.00 02,ESD14020-) in a target board that works fine except for when I try to initialize USB.&amp;nbsp; This board uses a 25Mhz crystal and the M4 clock is set for 200Mhz, the PLL0 USB PLL is set for 480Mhz.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It happens in the USB ROM code&amp;nbsp; location 0x104026c2, which is deep in the USB0 init routine.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The failure was pinpointed to when the processor attempts to write a 0 to the USB0 ENDPTNAKEN register 0x40006140 + offset 0x3c.&amp;nbsp; As soon as this instruction is executed, the emulator disconnects, the processor appears to shut down, and I have to power cycle the board.&amp;nbsp; This failure is 100% repeatable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the call in my code that causes the processor to hang and the emulator to disconnect:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ret = USBD_API-&amp;gt;hw-&amp;gt;Init(&amp;amp;g_hUsb, &amp;amp;desc, &amp;amp;usb_param);&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The memory location for the descriptors is in CPU RAM 0x10000000 and looks valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:46:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NXP-4357-USB-undocumented-error-writing-0-to-the-ENDPTNAKEN/m-p/523390#M6026</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: NXP 4357 USB undocumented error writing 0 to the ENDPTNAKEN register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NXP-4357-USB-undocumented-error-writing-0-to-the-ENDPTNAKEN/m-p/523391#M6027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by agemoz on Sat Jan 16 17:02:14 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue is closed, I found the problem.&amp;nbsp; The USB PHY wasn't getting powered up before the call to the USB init routine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:46:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NXP-4357-USB-undocumented-error-writing-0-to-the-ENDPTNAKEN/m-p/523391#M6027</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:46:07Z</dc:date>
    </item>
  </channel>
</rss>

