<?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>CodeWarrior for MCUのトピックRe: MQX 4.2 BSP Compilation Error</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435366#M11894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default when Processor Expert is generated or re-generated the processor Expert files are updated.&lt;/P&gt;&lt;P&gt;If you applied some modifications in the pe files, they will be lost and replace by default source files.&lt;/P&gt;&lt;P&gt;All PEx files included in the Generated_Code are re-generated and all modifications lost.&lt;/P&gt;&lt;P&gt;In this case you don't must re-generate PE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Pascal&lt;BR /&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2015 16:49:38 GMT</pubDate>
    <dc:creator>trytohelp</dc:creator>
    <dc:date>2015-11-24T16:49:38Z</dc:date>
    <item>
      <title>MQX 4.2 BSP Compilation Error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435365#M11893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I try to compile the BSP for a clone of a FRDM-K64F board (120 MHz), I get the following errors:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:/Freescale/CW MCU v10.6/MCU/ProcessorExpert/lib/Kinetis/pdd2/MK64FN1M0LQ12/system/CPU_Init.c: In function 'CPU_EnableInt':&lt;/P&gt;&lt;P&gt;C:/Freescale/CW MCU v10.6/MCU/ProcessorExpert/lib/Kinetis/pdd2/MK64FN1M0LQ12/system/CPU_Init.c:1035:2: error: expected string literal before 'CPSIE'&lt;/P&gt;&lt;P&gt;C:/Freescale/CW MCU v10.6/MCU/ProcessorExpert/lib/Kinetis/pdd2/MK64FN1M0LQ12/system/CPU_Init.c: In function 'CPU_DisableInt':&lt;/P&gt;&lt;P&gt;C:/Freescale/CW MCU v10.6/MCU/ProcessorExpert/lib/Kinetis/pdd2/MK64FN1M0LQ12/system/CPU_Init.c:1051:2: error: expected string literal before 'CPSID'&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I traced it to missing quotes in an assembly function call (asm(CPSIE, f)), but my correction gets removed every time I re-generate the Processor Expert files.&amp;nbsp; Is there a way for me to fix this permanently?&amp;nbsp; Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 22:17:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435365#M11893</guid>
      <dc:creator>kackle123</dc:creator>
      <dc:date>2015-11-23T22:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.2 BSP Compilation Error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435366#M11894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default when Processor Expert is generated or re-generated the processor Expert files are updated.&lt;/P&gt;&lt;P&gt;If you applied some modifications in the pe files, they will be lost and replace by default source files.&lt;/P&gt;&lt;P&gt;All PEx files included in the Generated_Code are re-generated and all modifications lost.&lt;/P&gt;&lt;P&gt;In this case you don't must re-generate PE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Pascal&lt;BR /&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 16:49:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435366#M11894</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2015-11-24T16:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.2 BSP Compilation Error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435367#M11895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to fix this permanently - why is PE putting that bug in its generated code?&amp;nbsp; Should I file a bug report?&amp;nbsp; Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 17:15:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435367#M11895</guid>
      <dc:creator>kackle123</dc:creator>
      <dc:date>2015-11-24T17:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.2 BSP Compilation Error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435368#M11896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is my configuration:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Windows 7 64 bit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CW for MCU V10.6.4 (all updates installed - 10.6.5)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MQX v4.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this configuration I've opened the \Freescale_MQX_4_2\mqx\build\cw10gcc\bsp_frdmk64f\bsp_frdmk64f.wsd file.&lt;/P&gt;&lt;P&gt;To generate the bsp, I've generated the PEx code and after build the bsp_frdmk64f project.&lt;/P&gt;&lt;P&gt;I can build the project without problem.&lt;/P&gt;&lt;P&gt;It seems it's not the case on your side - in this case you should have a problem.&lt;/P&gt;&lt;P&gt;Did you changed something in the PEx configuration ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All files included in the Generated_Code are removed and re-generated when you select "Generate Processor Expert Code".&lt;/P&gt;&lt;P&gt;So if you applied some modifications in a file listed in this project folder for instance in cpu.c file, all modifications will be lost.&lt;/P&gt;&lt;P&gt;Now there are some options for Processor Expert which can be defined via the properties.&lt;/P&gt;&lt;P&gt;To access them click on View Menu + Properties&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53093i1B4C8DAC9F5EE9DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53142iC83F826B024263A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you can modify some settings if you want.&lt;/P&gt;&lt;P&gt;The&amp;nbsp; Freeze code Generation can be switch to YES to freeze the code. Then Processor Expert code can not be re-generated.&lt;/P&gt;&lt;P&gt;Excepted this option forbidden the PEx code generation, in all other case the files listed under Generated_Code Folder will be always updated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Pascal&lt;BR /&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 10:37:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435368#M11896</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2015-11-25T10:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.2 BSP Compilation Error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435369#M11897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pascal,&lt;/P&gt;&lt;P&gt;Thank you for your responses.&amp;nbsp; I think I know how to recreate this issue:&lt;/P&gt;&lt;P&gt;1) Clone the BSP of the TWRK64F120M.&lt;/P&gt;&lt;P&gt;2) Drag its .WSD into CodeWarrior (CW).&lt;/P&gt;&lt;P&gt;3) Open Processor Expert (PE).&lt;/P&gt;&lt;P&gt;4) Add the MK64FN1M0VLQ12 CPU only.&lt;/P&gt;&lt;P&gt;5) Delete all other CPUs that are there.&lt;/P&gt;&lt;P&gt;6) Under the CPU Methods list, turn on code generation for Enabling Maskable Interrupts.&lt;/P&gt;&lt;P&gt;7) Under the CPU Methods list, turn on code generation for Disabling Maskable Interrupts.&lt;/P&gt;&lt;P&gt;8) Delete the PWM Component below since it causes errors and isn't needed for this test.&amp;nbsp; Save all...&lt;/P&gt;&lt;P&gt;9) Delete the Generated Code folder within CW, and tell PE to regenerate it.&lt;/P&gt;&lt;P&gt;10) Clean the BSP project and then build it; that's when I get those "CPSIE" and "CPSID" errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you see the same result?&amp;nbsp; Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 20:15:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435369#M11897</guid>
      <dc:creator>kackle123</dc:creator>
      <dc:date>2015-11-25T20:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.2 BSP Compilation Error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435370#M11898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed your process but I don't reproduced the problem.&lt;/P&gt;&lt;P&gt;My config is CW for MCU V10.6.4 + all patches installed and MQX V4.2.&lt;/P&gt;&lt;P&gt;For the point 4 and 5 you can change directly the CPU and don't need to add a new one.&lt;/P&gt;&lt;P&gt;After to have changed/modified the PEx configuration you don't need to remove the generated folder.&lt;/P&gt;&lt;P&gt;Just re-generate PEx code will update the folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will created a video showing the process and will post it asap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - with video&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pascal&lt;BR /&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 09:21:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435370#M11898</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2015-11-26T09:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.2 BSP Compilation Error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435371#M11899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pascal,&lt;/P&gt;&lt;P&gt;Thank you for your efforts and your video.&amp;nbsp; I looked at the problem more closely; when you changed my test (steps 4 &amp;amp; 5), you skipped over the error!&amp;nbsp; Try my test again as I think there is a bug in PE.&amp;nbsp; To save your time, after you generate the code, you can see in Generated_Code\PE_Types.h that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__asm(CPSIE f);&lt;/P&gt;&lt;P&gt;__asm (CPSID f);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__asm("CPSIE f");&lt;/P&gt;&lt;P&gt;__asm ("CPSID f");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you confirm this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 21:21:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435371#M11899</guid>
      <dc:creator>kackle123</dc:creator>
      <dc:date>2015-12-07T21:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.2 BSP Compilation Error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435372#M11900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Strange.&lt;/P&gt;&lt;P&gt;On my side I've the following:&lt;/P&gt;&lt;P&gt;++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;#define __EI()\&lt;/P&gt;&lt;P&gt;do {\&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*lint -save&amp;nbsp; -e950 Disable MISRA rule (1.1) checking. */\&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __asm("CPSIE f");\&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*lint -restore Enable MISRA rule (1.1) checking. */\&lt;/P&gt;&lt;P&gt;} while(0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Disable maskable interrupts */&lt;/P&gt;&lt;P&gt;#define __DI() \&lt;/P&gt;&lt;P&gt;do {\&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*lint -save&amp;nbsp; -e950 Disable MISRA rule (1.1) checking. */\&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __asm ("CPSID f");\&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*lint -restore Enable MISRA rule (1.1) checking. */\&lt;/P&gt;&lt;P&gt;} while(0)&lt;/P&gt;&lt;P&gt;++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I know what is the problem ...&lt;/P&gt;&lt;P&gt;When you add a new processors you need to select a compiler between:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - CodeWarrior ARM C Compiler&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - GNU C Compiler&lt;/P&gt;&lt;P&gt;This is confusing as the CodeWarrior ARM C Compiler is not available for all devices.&lt;/P&gt;&lt;P&gt;The BSP project is using the GNU compiler as the folder is: \Freescale_MQX_4_2\mqx\build\cw10gcc\bsp_twrk64f120m.&lt;/P&gt;&lt;P&gt;cw10gcc is for GNU build tool chain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I met the problem 2 weeks ago and logged an issue in our bug base for this problem.&lt;/P&gt;&lt;P&gt;For me the build tool chain proposed should be linked to the project.&lt;/P&gt;&lt;P&gt;This is not checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Back to your problem.&lt;/P&gt;&lt;P&gt;Here you need to select the "GNU C Compiler" and not the "CodeWarrior ARM C Compiler"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pascal&lt;BR /&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 10:37:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435372#M11900</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2015-12-08T10:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.2 BSP Compilation Error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435373#M11901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Pascal.&amp;nbsp; This was indeed the issue.&amp;nbsp; I appreciate your help and wish you pleasant holidays!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 14:26:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/MQX-4-2-BSP-Compilation-Error/m-p/435373#M11901</guid>
      <dc:creator>kackle123</dc:creator>
      <dc:date>2015-12-08T14:26:19Z</dc:date>
    </item>
  </channel>
</rss>

