<?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中的主题 spifi_drv_M4 gcc</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/spifi-drv-M4-gcc/m-p/570093#M18079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by asv-lab on Sat Jan 04 12:13:44 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hi guys. i have problem with spifi_drv_M4, please help me. codesourcery compiler arm. error Conflicting CPU architectures 13/0&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(spifi_rom_api.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: error: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(falcon_details.o): Conflicting CPU architectures 13/0
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(amic.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(atmel.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(chi.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(eon.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(esmt.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(giga.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(macronix.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(numonyx.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(spansion.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(sst.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(winbond.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
......


&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:54:34 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:54:34Z</dc:date>
    <item>
      <title>spifi_drv_M4 gcc</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/spifi-drv-M4-gcc/m-p/570093#M18079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by asv-lab on Sat Jan 04 12:13:44 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hi guys. i have problem with spifi_drv_M4, please help me. codesourcery compiler arm. error Conflicting CPU architectures 13/0&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(spifi_rom_api.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: error: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(falcon_details.o): Conflicting CPU architectures 13/0
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(amic.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(atmel.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(chi.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(eon.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(esmt.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(giga.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(macronix.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(numonyx.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(spansion.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(sst.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
c:/bin/../lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:\eclipse_project\cncdriver\lib\spifi_drv_M4.lib(winbond.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
......


&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:54:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/spifi-drv-M4-gcc/m-p/570093#M18079</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: spifi_drv_M4 gcc</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/spifi-drv-M4-gcc/m-p/570094#M18080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Tue Jan 07 10:09:37 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the conflict with the CPU architecture comes from a wrong library. With "wrong" I mean that it is intendend for another CPU.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is the LPC1800 with a Cortex-M3 and the LPC4300 with Cortex-M4. In principle the code for the Cortex-M3 would run on the Cortex-M4 without any problem, but the linker detects a conflict between the CPU define in your application code and the CPU define in the library. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think what happened is that the file spifi_drv_M3.lib which has been generated for the Cortex-M3 has simply been renamed to spifi_drv_M4.lib.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can check that when you open the file with a hex editor and look for the string "--cpu=Cortex-M3".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As a short term solution you can patch that to "--cpu=Cortex-M4", then the conflict should be gone.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The warning about the wchar_t definition is correct, unfortunately the compiler from ARM and the GCC compiler follow different philosophies in this case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But it shouldn't cause any runtime problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know which library file you use, but in this package there is one for the Cortex-M4: &lt;/SPAN&gt;&lt;A href="http://http://www.lpcware.com/content/nxpfile/lpc4350apdlzip"&gt;http://www.lpcware.com/content/nxpfile/lpc4350apdlzip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps to solve the problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:54:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/spifi-drv-M4-gcc/m-p/570094#M18080</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: spifi_drv_M4 gcc</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/spifi-drv-M4-gcc/m-p/570095#M18081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by asv-lab on Wed Jan 08 22:05:46 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:54:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/spifi-drv-M4-gcc/m-p/570095#M18081</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: spifi_drv_M4 gcc</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/spifi-drv-M4-gcc/m-p/570096#M18082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Mon Jan 13 05:31:31 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are two projects for LPC1800 and for LPC4300 which use the SPIFI library under LPCXpresso 6.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Code runs from SPIFI, using the LPC1830/4330 LPCXplorer board&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- SPIFI libraries compile without error under GCC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- function spifi_init(...) is used to initialize the SPIFI &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- SPIFI speed is set to 90MHz&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- some data is programmed into the qSPI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- after successful SPIFI write the application runs into a blinky&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Further notes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- the code example uses the libraries coming with LPCXpresso, these are different to the new structure from LPCOpen. This libs are a little bit outdated and will not be maintained anymore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- if you are doing any new code development, then you should consider to port the SPIFI setup from this example into the current LPCOpen platform &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- NXP will add a SPIFI setup in one of the next LPCOpen releases for LPC1800/4300&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this finally helps a little bit,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support Team&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:54:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/spifi-drv-M4-gcc/m-p/570096#M18082</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:54:36Z</dc:date>
    </item>
  </channel>
</rss>

