<?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>MQX Software SolutionsのトピックRe: BSP/PSP user_config.h setting problem</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/BSP-PSP-user-config-h-setting-problem/m-p/232437#M6359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved.&lt;/P&gt;&lt;P&gt;Remove all #include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;&lt;P&gt;Do not include stdio.h in project to avoid redeclaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leslie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jan 2013 13:14:28 GMT</pubDate>
    <dc:creator>leslieyang0509</dc:creator>
    <dc:date>2013-01-22T13:14:28Z</dc:date>
    <item>
      <title>BSP/PSP user_config.h setting problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/BSP-PSP-user-config-h-setting-problem/m-p/232436#M6358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IDE: CW 10.3&lt;/P&gt;&lt;P&gt;MQX: 4.0&lt;/P&gt;&lt;P&gt;MCU: k60d100m 100pin&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am porting our project from MQX 3.8.1 to MQX 4.0&lt;/P&gt;&lt;P&gt;BSP/PSP build well without error and warning &lt;/P&gt;&lt;P&gt;BSP: bsp_twrk60d100m.cw10&lt;/P&gt;&lt;P&gt;PSP: psp_twrk60d100m.cw10&lt;/P&gt;&lt;P&gt;(PE modify: add new processor MK60DN512VLL10, remove components PWM/IO, change clock configuration, MCG set as FEE, .. etc)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While build the project, here comes errors.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the error message says&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;identifier 'FILE' redeclared was declared as: 'struct _FILE' now declared as: 'struct mqx_file'&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;(included from:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\Freescale\Freescale_MQX_4_0\lib\twrk60d100m.cw10\debug\bsp\bsp.h:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;line 160, external location: C:\Freescale\Freescale_MQX_4_0\lib\twrk60d100m.cw10\debug\psp\fio.h&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I change the &lt;EM&gt;user_config.h&lt;/EM&gt; setting&lt;/P&gt;&lt;P&gt;set &lt;STRONG&gt;MQX_SUPPRESS_STDIO_MACROS&lt;/STRONG&gt; as 1&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then re-build the BSP/PSP and our project&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the error message says&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;macro 'feof' redefined&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;(included from:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\Freescale\Freescale_MQX_4_0\lib\twrk60d100m.cw10\debug\bsp\bsp.h:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; line 59, external location: C:\Freescale\Freescale_MQX_4_0\lib\twrk60d100m.cw10\debug\psp\fio.h&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is how to fixed this error?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According the discussion below&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2023" data-containertype="14" data-objectid="62656" data-objecttype="1" href="https://community.nxp.com/thread/62656"&gt;MQX with MFS compile problem&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I move #include &amp;lt;stdio.h&amp;gt; to the top of each *.c and *.h&lt;/P&gt;&lt;P&gt;It seems not fixed the error.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because our project need higher performance, so we do not use the MQX I/O subsystem.&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;user_config.h&lt;/EM&gt; has set false to every I/O module.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached file is &lt;EM&gt;user_config.h&lt;/EM&gt; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;upload from&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_0\config\twrk60d100m&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Leslie&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338747"&gt;user_config.h.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 02:52:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/BSP-PSP-user-config-h-setting-problem/m-p/232436#M6358</guid>
      <dc:creator>leslieyang0509</dc:creator>
      <dc:date>2013-01-22T02:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: BSP/PSP user_config.h setting problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/BSP-PSP-user-config-h-setting-problem/m-p/232437#M6359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved.&lt;/P&gt;&lt;P&gt;Remove all #include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;&lt;P&gt;Do not include stdio.h in project to avoid redeclaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leslie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 13:14:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/BSP-PSP-user-config-h-setting-problem/m-p/232437#M6359</guid>
      <dc:creator>leslieyang0509</dc:creator>
      <dc:date>2013-01-22T13:14:28Z</dc:date>
    </item>
  </channel>
</rss>

