<?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>topic Re: modify the .mk file and .lcf file,the program can not run in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/modify-the-mk-file-and-lcf-file-the-program-can-not-run/m-p/773140#M2070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/lukaszadrapa"&gt;lukaszadrapa&lt;/A&gt;‌ / &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/petervlna"&gt;petervlna&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This issue is reported by a customer that wants to build a custom bootloader using MPC5643L. He used the Model-Based Design to generate the code and that worked. Now - he want to change the linker command file to move the code/data section to make it suitable for his bootloader. I suggested him to add this thread on MPC5xxx community to have a access to expert support on that - since here in MBDT we do not cover for such issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think someone moved back the thread back to us just because of Simulink references - but ultimately the issue is about configuring the MPC5643L linker files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you handle this ?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2018 12:43:26 GMT</pubDate>
    <dc:creator>Daniel_Popa</dc:creator>
    <dc:date>2018-02-01T12:43:26Z</dc:date>
    <item>
      <title>modify the .mk file and .lcf file,the program can not run</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/modify-the-mk-file-and-lcf-file-the-program-can-not-run/m-p/773139#M2069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I use simulink generator the mpc5643l program.if I do not modify the .mk file and .lcf file,the program can run.After I modify those files,the program can not run.&lt;/P&gt;&lt;P&gt;First,I creat a model in the simulink by MCToolbox for mpc5643l.I upload the model file in the accessory.&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/34024i5218E1B4FB251F48/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;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34091i7AC9636E60C8D128/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34122iA42B0476F92799B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34173iC86DF582E2825B9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Second,I build the model without any modify.Through click the build button,the elf file automatic generate.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34955iA95B40D1E53A2218/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34266i670E4CB6B77A512F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Third,I download the .elf file to the trk-usb-mpc5643l through the S32DS for power by Executable File Importer.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34299i46240C002BE65D15/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_9.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34359i40479C93A1CCCC52/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_9.png" alt="pastedImage_9.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_10.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34958i2FDBC1EB0D45838E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_10.png" alt="pastedImage_10.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Fourth,I debug the program by S32DS.In the debug interface,I click the run button.The program can run without any error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_11.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34041iCA121BA4AA6A2C25/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_11.png" alt="pastedImage_11.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_12.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34395i277E600E2079FF37/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_12.png" alt="pastedImage_12.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I modify the MPC564xLFlash.lcf and secondtestmodel.mk file.&lt;/P&gt;&lt;P&gt;In the secondtestmodel.mk,the old version&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_13.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34442i4EF18684A3B04CA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_13.png" alt="pastedImage_13.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the new version&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_14.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34482i4CBDA3406FF9D597/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_14.png" alt="pastedImage_14.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the MPC564xLFlash.lcf,the old version&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_17.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34688iC9E8978B9FD38B4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_17.png" alt="pastedImage_17.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_18.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34731iCFC8928C528BD578/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_18.png" alt="pastedImage_18.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the new version&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_15.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34599iDE5D3218ECBFF64C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_15.png" alt="pastedImage_15.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_16.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34641i2754E970D62FDA94/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_16.png" alt="pastedImage_16.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I use the cmd to build the program.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_19.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34773iF64F02FE1B1301FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_19.png" alt="pastedImage_19.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the build successful&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_20.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34817i432CDE449A598085/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_20.png" alt="pastedImage_20.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then through the above method,I download the program to the board and debug the program.&lt;/P&gt;&lt;P&gt;In the debug process, I click the run button,after several seconds,I click the suspend button,the program run to 0x0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_21.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34901iF4FDCB7DA44C7B47/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_21.png" alt="pastedImage_21.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I face the problem in several days.&lt;/P&gt;&lt;P&gt;I would appreciate it if you could solve the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 02:53:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/modify-the-mk-file-and-lcf-file-the-program-can-not-run/m-p/773139#M2069</guid>
      <dc:creator>hongjinzeng</dc:creator>
      <dc:date>2018-01-31T02:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: modify the .mk file and .lcf file,the program can not run</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/modify-the-mk-file-and-lcf-file-the-program-can-not-run/m-p/773140#M2070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/lukaszadrapa"&gt;lukaszadrapa&lt;/A&gt;‌ / &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/petervlna"&gt;petervlna&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This issue is reported by a customer that wants to build a custom bootloader using MPC5643L. He used the Model-Based Design to generate the code and that worked. Now - he want to change the linker command file to move the code/data section to make it suitable for his bootloader. I suggested him to add this thread on MPC5xxx community to have a access to expert support on that - since here in MBDT we do not cover for such issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think someone moved back the thread back to us just because of Simulink references - but ultimately the issue is about configuring the MPC5643L linker files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you handle this ?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 12:43:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/modify-the-mk-file-and-lcf-file-the-program-can-not-run/m-p/773140#M2070</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-02-01T12:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: modify the .mk file and .lcf file,the program can not run</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/modify-the-mk-file-and-lcf-file-the-program-can-not-run/m-p/773141#M2071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After I modify the -romaddr 0x00013000 -rambuffer 0x00013000,The program can run.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 07:37:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/modify-the-mk-file-and-lcf-file-the-program-can-not-run/m-p/773141#M2071</guid>
      <dc:creator>hongjinzeng</dc:creator>
      <dc:date>2018-02-11T07:37:53Z</dc:date>
    </item>
  </channel>
</rss>

