<?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: MQX4.0 + twrk60n512 + demo pe_demo_twrk60n512.eww</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX4-0-twrk60n512-demo-pe-demo-twrk60n512-eww/m-p/235564#M6580</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;In MQX-IAR-Getting-Started.pdf document, nothing is mentionned regarding rebuilding the BSP in Processor expert. I did see the message you mentionned regarding rebuilding the BSP in processor expert but is there any documentation explaining how to rebuild the BSP when we do not use Codewarrior?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adalgiso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2013 08:49:49 GMT</pubDate>
    <dc:creator>identec</dc:creator>
    <dc:date>2013-05-14T08:49:49Z</dc:date>
    <item>
      <title>MQX4.0 + twrk60n512 + demo pe_demo_twrk60n512.eww</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX4-0-twrk60n512-demo-pe-demo-twrk60n512-eww/m-p/235562#M6578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using IAR 6.50.5. I just downloaded MQX 4.0,&lt;/P&gt;&lt;P&gt;I did rebuild MQX by using the following IAR solution C:\Freescale\Freescale_MQX_4_0\config\twrk60n512\iar\build_libs.eww without problem.&lt;/P&gt;&lt;P&gt;I try to rebuild the project C:\Freescale\Freescale_MQX_4_0\demo\pe_demo\iar\pe_demo_twrk60n512\pe_demo_twrk60n512.eww but I get the following error message&lt;/P&gt;&lt;P&gt;Fatal Error[Pe035]: #error directive: Demo requires Processor Expert BSP code to be generated.&amp;nbsp; C:\Freescale\Freescale_MQX_4_0\demo\pe_demo\main.c 48 &lt;/P&gt;&lt;P&gt;Has anybody been able to rebuild this project?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running win7 x64.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 14:36:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX4-0-twrk60n512-demo-pe-demo-twrk60n512-eww/m-p/235562#M6578</guid>
      <dc:creator>identec</dc:creator>
      <dc:date>2013-05-13T14:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: MQX4.0 + twrk60n512 + demo pe_demo_twrk60n512.eww</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX4-0-twrk60n512-demo-pe-demo-twrk60n512-eww/m-p/235563#M6579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Adalgiso Castrignano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that error includes message:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;#error See "&amp;lt;MQX_INSTALL_DIR&amp;gt;\doc\tools\cw\FSL_MQX_in_CW_10_x.pdf" chapter "CW10.x, MQX and Processor Expert" for details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to build BSP in Processor Expert (PE driver suite) which generates necessary files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;c0170&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 05:40:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX4-0-twrk60n512-demo-pe-demo-twrk60n512-eww/m-p/235563#M6579</guid>
      <dc:creator>c0170</dc:creator>
      <dc:date>2013-05-14T05:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: MQX4.0 + twrk60n512 + demo pe_demo_twrk60n512.eww</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX4-0-twrk60n512-demo-pe-demo-twrk60n512-eww/m-p/235564#M6580</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;In MQX-IAR-Getting-Started.pdf document, nothing is mentionned regarding rebuilding the BSP in Processor expert. I did see the message you mentionned regarding rebuilding the BSP in processor expert but is there any documentation explaining how to rebuild the BSP when we do not use Codewarrior?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adalgiso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 08:49:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX4-0-twrk60n512-demo-pe-demo-twrk60n512-eww/m-p/235564#M6580</guid>
      <dc:creator>identec</dc:creator>
      <dc:date>2013-05-14T08:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: MQX4.0 + twrk60n512 + demo pe_demo_twrk60n512.eww</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX4-0-twrk60n512-demo-pe-demo-twrk60n512-eww/m-p/235565#M6581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Adalgiso Castrignano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-93440"&gt;Processor Expert: Integrating with IAR Embedded&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not integrated PE with IAR neither KEIL, this one I'll post here even though it's for KEIL, might be similar:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/113936"&gt;How to Integrate Processor Expert Drivers into MQX BSP in Keil&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more link (it's FreeRTOS with IAR and PE), worth to check:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2013/01/31/tutorial-iar-freertos-freedom-board/" title="http://mcuoneclipse.com/2013/01/31/tutorial-iar-freertos-freedom-board/"&gt;Tutorial: IAR + FreeRTOS + Freedom Board | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share the outcome :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;c0170&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 10:35:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX4-0-twrk60n512-demo-pe-demo-twrk60n512-eww/m-p/235565#M6581</guid>
      <dc:creator>c0170</dc:creator>
      <dc:date>2013-05-14T10:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: MQX4.0 + twrk60n512 + demo pe_demo_twrk60n512.eww</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX4-0-twrk60n512-demo-pe-demo-twrk60n512-eww/m-p/235566#M6582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adalgiso,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you get anywhere with this?&lt;/P&gt;&lt;P&gt;Can anyone tell me how to build the Processor Expert in the BSP for the IAR tools?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adrian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 11:02:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX4-0-twrk60n512-demo-pe-demo-twrk60n512-eww/m-p/235566#M6582</guid>
      <dc:creator>adyr</dc:creator>
      <dc:date>2014-04-02T11:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: MQX4.0 + twrk60n512 + demo pe_demo_twrk60n512.eww</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX4-0-twrk60n512-demo-pe-demo-twrk60n512-eww/m-p/235567#M6583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;H1 style="margin: 24pt 0px 0px;"&gt;&lt;SPAN style="color: #365f91; font-family: Cambria;"&gt;Make a Processor Expert MQX build for IAR&lt;/SPAN&gt;&lt;/H1&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;In the following text, &amp;lt;MQX_INSTALL&amp;gt; means the location of your root Freescale MQX installation folder. I often refer to twrk60f120m or a variation of that which is for the TWR_K60F120M tower. I haven’t tried with other kits but I assume the procedure will be the same. There may be an easier way to do this but I have only been using this setup (processor / RTOS / Compiler) for a couple of weeks so I’m still learning. I also made lots of mistakes along the way so this is a summary of what I think are the required steps. Make a backup of your &amp;lt;MQX_INSTALL&amp;gt; folder before doing any modifications or be prepared to reinstall the RTOS if it all goes wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Copy all files (not folders) from &amp;lt;MQX_INSTALL&amp;gt;\mqx\build\cw10gcc\bsp_twrk60f120m to &amp;lt;MQX_INSTALL&amp;gt;\mqx\build\iar\bsp_twrk60f120m&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Open up the project that was copied to the IAR folder in Processor Expert.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Expand the Processors folder in the Components – bsp_twrk…. Panel.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Select the Cpu:MK60FN1M0VLQ12 component.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;In the Component Inspector select the Build Options tab and change the Compiler field to IAR ARM C Compiler.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Right click on the bsp_twrk60f120m project in the Project Explorer and select the Properties options.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Browse through all the options and change all the references to the cw10gcc folder to the iar folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Click on the Generate Processor Expert Code button or use the menu command under Project.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Now in Explorer, make a copy the IAR project files in the &amp;lt;MQX_INSTALL&amp;gt;\mqx\build\iar\bsp_twrk60f120m folder and add a PE on the end (e.g&amp;nbsp; bsp_twrk60f120mPE.ewp ) then open the project in the IAR Workbench IDE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Delete all the entries from the Files list so it just has the Output folder&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Make sure the Tools – Options – Project – Enable project connections option is enabled in the Workbench.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Use the Project - Add Project Connection menu command, then select Freescale Processor Expert from drop list click on OK and browse for the ProjectInfo.xml file in the &amp;lt;MQX_INSTALL&amp;gt;\mqx\build\iar\bsp_twrk60f120m folder.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Open the projects options and make sure the Sources and Generated_Code folders are at the top of the list in the Additional includes. If this is not done then the wrong PE_LDD.H file is picked up when bsp_cm.c is compiled so it won’t know that the PE has been created.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Edit the $PROJ_DIR$/../../../../mqx/build/bat/bsp_twrk60f120m.bat file and make sure the following lines are in the :tool_iar section:&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;IF NOT EXIST "%OUTPUTDIR%\" mkdir "%OUTPUTDIR%\"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;IF NOT EXIST "%OUTPUTDIR%\Generated_Code" mkdir "%OUTPUTDIR%\Generated_Code"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;IF NOT EXIST "%OUTPUTDIR%\Sources" mkdir "%OUTPUTDIR%\Sources"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;for /R "%ROOTDIR%\mqx\build\iar\bsp_twrk60f120m\Generated_Code" %%f in (*.h) do copy %%f "%OUTPUTDIR%\Generated_Code\"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;for /R "%ROOTDIR%\mqx\build\iar\bsp_twrk60f120m\Sources" %%f in (*.h) do copy %%f "%OUTPUTDIR%\Sources\"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Now do a Rebuild All on the project.&lt;/SPAN&gt;&lt;/P&gt;&lt;H1 style="margin: 24pt 0px 0px;"&gt;&lt;SPAN style="color: #365f91; font-family: Cambria;"&gt;Testing the library.&lt;/SPAN&gt;&lt;/H1&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Open the pe_demo located in the &amp;lt;MQX_INSTALL&amp;gt;\demo\pe_demo\build\iar\pe_demo_twrk60f120m folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Add the \PExDrv v10.3\eclipse\ProcessorExpert\lib\Kinetis\pdd\inc to the Additional includes&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Rename the PWM_OnCounterRestart function to PWM_OnCounterRestartApp&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;In the Linker – Extra Options tab add:&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt; --redirect PWM_OnCounterRestart=PWM_OnCounterRestartApp&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;This will ensure the overridden function is used without generating a linker error.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;If required, change the Debug Driver.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Build the demo and run it.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 10:09:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX4-0-twrk60n512-demo-pe-demo-twrk60n512-eww/m-p/235567#M6583</guid>
      <dc:creator>adyr</dc:creator>
      <dc:date>2014-04-03T10:09:52Z</dc:date>
    </item>
  </channel>
</rss>

