<?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: LPC4350FET256</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4350FET256/m-p/575444#M19237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jdurand on Sun Jun 03 11:33:53 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;A while back I did an evaluation of the FPU, the report and code is here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fcontribproj%2Fjdurand-lpc4300ex" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/contribproj/jdurand-lpc4300ex&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that I had a very early version of the Hitex board so the code may or may not run on a newer board.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:59:08 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:59:08Z</dc:date>
    <item>
      <title>LPC4350FET256</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4350FET256/m-p/575441#M19234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jimmcwin on Thu May 31 10:05:57 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this part really support FPU ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having hard faults when codes compiled with M4FPU using Keil uVision4( call _fp_init ). Please helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jim&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:59:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4350FET256/m-p/575441#M19234</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4350FET256</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4350FET256/m-p/575442#M19235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by PhilYoung on Thu May 31 14:42:40 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The FPU works fine, but when you compile for the M4FPU with the keil tools it uses the FPU registers for many purposes, including some memcpy functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This means that it can sometimes crash ( depending on what the compiler created ) before getting to main,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I saw this a few times with C++ code when I had static objects with constructors as they get called before you get to main.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The best thing to do is enable the FPU from the init code, it is disabled after reset&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; extern void fpuInit(void); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to system_lpc43xx.c and then call fpuInit from &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void SystemInit(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I call SystemInit from the boot code before doing anything else and just use it to set the flash and clock to speed up the boot process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;fpuInit is in fpu_init.c in the CMSIS\lpc43xx\Core\Device\NXP\LPC43xx\Source directory ( at least on my machine ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this solves the problem for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Phil.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:59:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4350FET256/m-p/575442#M19235</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4350FET256</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4350FET256/m-p/575443#M19236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jimmcwin on Thu May 31 15:31:18 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;It works. I just add these 4 lines of code at the reset vector before jumping to __main.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LDR.W R0, =0xE000ED88&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;; Read CPACR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LDR R1, [R0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;; Set bits 20-23 to enable CP10 and CP11 coprocessors&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORR R1, R1, #(0xF &amp;lt;&amp;lt; 20)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;; Write back the modified value to the CPACR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;STR R1, [R0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jim&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:59:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4350FET256/m-p/575443#M19236</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4350FET256</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4350FET256/m-p/575444#M19237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jdurand on Sun Jun 03 11:33:53 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;A while back I did an evaluation of the FPU, the report and code is here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fcontribproj%2Fjdurand-lpc4300ex" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/contribproj/jdurand-lpc4300ex&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that I had a very early version of the Hitex board so the code may or may not run on a newer board.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:59:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4350FET256/m-p/575444#M19237</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:59:08Z</dc:date>
    </item>
  </channel>
</rss>

