<?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>LPC Microcontrollers中的主题 Re: USB Example for LPC4370: Problem with changing the SFSUSB bit in SCU register</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-Example-for-LPC4370-Problem-with-changing-the-SFSUSB-bit-in/m-p/524749#M7385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Wed Sep 02 13:56:15 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Vandar501,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This function is inside chip library Did you build chip library project?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which tool chain are you using?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:53:03 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:53:03Z</dc:date>
    <item>
      <title>USB Example for LPC4370: Problem with changing the SFSUSB bit in SCU register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-Example-for-LPC4370-Problem-with-changing-the-SFSUSB-bit-in/m-p/524748#M7384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Vandar501 on Tue Sep 01 06:31:40 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm quite new to ARM-Architecture and currently I'm trying to set up an USB1-HID-Connection between a Custom made Board using an LPC4370 and a Laptop (University Project). I'm using an HID example for LPC4370 and LPCXpresso for programming.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After reading carefully the section about USB1 in the LPC43xx Manual I found out that I have to set the USB-VBUS bit in the SFSUSB register, which is locate in the System Control Unit to HIGH to USB1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First I changed it manually in the main section and the USB-Connection works. But then I found the place where this bit is set by the Example itself. The Location was in the Project-Folder "lpc_chip_43xx" in "chip_18xx_43xx.c" in function "Chip_USB1_Init" and looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void Chip_USB1_Init(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Setup and enable the PLL */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_USB_PllSetup();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* USB1 needs a 60MHz clock. To get it, a divider of 4 and then 2 are&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; chained to make a divide by 8 function. Connect the output of&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; divider D to the USB1 base clock. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_Clock_SetDivider(CLK_IDIV_A, CLKIN_USBPLL, 4);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_Clock_SetDivider(CLK_IDIV_D, CLKIN_IDIVA, 2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_Clock_SetBaseClock(CLK_BASE_USB1, CLKIN_IDIVD, true, true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* enable USB main clock */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_Clock_EnableBaseClock(CLK_BASE_USB1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_Clock_EnableOpts(CLK_MX_USB1, true, true, 1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* enable USB1_DP and USB1_DN on chip FS phy.*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCU-&amp;gt;SFSUSB = 0x12;&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;&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;lt;-------------- this is important &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to change that with LPC_SCU-&amp;gt;SFSUSB = 0x13; to set the respective bit but nothing happens! I can even comment this line out but nothing happens either. Maybe its because the lpc_chip_43xx Project is somehow protected.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:53:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-Example-for-LPC4370-Problem-with-changing-the-SFSUSB-bit-in/m-p/524748#M7384</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: USB Example for LPC4370: Problem with changing the SFSUSB bit in SCU register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-Example-for-LPC4370-Problem-with-changing-the-SFSUSB-bit-in/m-p/524749#M7385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Wed Sep 02 13:56:15 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Vandar501,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This function is inside chip library Did you build chip library project?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which tool chain are you using?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:53:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-Example-for-LPC4370-Problem-with-changing-the-SFSUSB-bit-in/m-p/524749#M7385</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: USB Example for LPC4370: Problem with changing the SFSUSB bit in SCU register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-Example-for-LPC4370-Problem-with-changing-the-SFSUSB-bit-in/m-p/524750#M7386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Vandar501 on Wed Sep 23 01:10:30 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi mc,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks it works! I thought the debugging build all projects, even the Includes. But still I am a bit confused about the bit that was set wrong. Because without changing this bit the USB-Connection won't work, but it should because its a USB-HID-Example...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:53:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-Example-for-LPC4370-Problem-with-changing-the-SFSUSB-bit-in/m-p/524750#M7386</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:53:03Z</dc:date>
    </item>
  </channel>
</rss>

