<?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: MP5748G EVB board - flash to run program without debugger in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MP5748G-EVB-board-flash-to-run-program-without-debugger/m-p/1446117#M20993</link>
    <description>&lt;P&gt;Hi James,&lt;/P&gt;
&lt;P&gt;I found out that there's no definition of TURN_ON_CPU0 in Assembler settings. So, there was no valid RCHW in the release project. If I added the definition like this, it works:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_1-1650433361709.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/177409i03A45C1DEFC36094/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_1-1650433361709.png" alt="lukaszadrapa_1-1650433361709.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And one more thing - I can see that vTickDelay uses just a simple while loop. If the optimization level is configured as -O1, it's optimized out, so the LED toggles too fast without delay. If I used optimization level -O0, it's not optimized out and the LED is toggling with delay as expected.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2022 05:43:11 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2022-04-20T05:43:11Z</dc:date>
    <item>
      <title>MP5748G EVB board - flash to run program without debugger</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MP5748G-EVB-board-flash-to-run-program-without-debugger/m-p/1444642#M20968</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I created a simple application to blink a user LED on MPC5748G EVB.&amp;nbsp; In debug mode, I can run it as expected; user LED is bilking.&amp;nbsp; However, when I create a "Release" of same program and flashed it( remove all the debug info), the program does not seems to working at all; the user LED is not blinking.&lt;/P&gt;&lt;P&gt;I checked community How-to section.&amp;nbsp; There has instruction to flash for debugging.&amp;nbsp; Do you have procedure to run the program after flashing the "RELEASE" code?&lt;/P&gt;&lt;P&gt;I have attached the test project which I'm playing around.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 15:34:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MP5748G-EVB-board-flash-to-run-program-without-debugger/m-p/1444642#M20968</guid>
      <dc:creator>karma_JC</dc:creator>
      <dc:date>2022-04-15T15:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: MP5748G EVB board - flash to run program without debugger</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MP5748G-EVB-board-flash-to-run-program-without-debugger/m-p/1446117#M20993</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;
&lt;P&gt;I found out that there's no definition of TURN_ON_CPU0 in Assembler settings. So, there was no valid RCHW in the release project. If I added the definition like this, it works:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_1-1650433361709.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/177409i03A45C1DEFC36094/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_1-1650433361709.png" alt="lukaszadrapa_1-1650433361709.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And one more thing - I can see that vTickDelay uses just a simple while loop. If the optimization level is configured as -O1, it's optimized out, so the LED toggles too fast without delay. If I used optimization level -O0, it's not optimized out and the LED is toggling with delay as expected.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 05:43:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MP5748G-EVB-board-flash-to-run-program-without-debugger/m-p/1446117#M20993</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2022-04-20T05:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: MP5748G EVB board - flash to run program without debugger</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MP5748G-EVB-board-flash-to-run-program-without-debugger/m-p/1450646#M21065</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;have you solved this problem? Now I have the same problem as you. How do you do it? Can you give me some guidance? thank you&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 10:50:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MP5748G-EVB-board-flash-to-run-program-without-debugger/m-p/1450646#M21065</guid>
      <dc:creator>Ada_Lovelace</dc:creator>
      <dc:date>2022-04-28T10:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: MP5748G EVB board - flash to run program without debugger</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MP5748G-EVB-board-flash-to-run-program-without-debugger/m-p/1450811#M21067</link>
      <description>&lt;P&gt;Hi Ada_Lovelace:&lt;/P&gt;&lt;P&gt;Not yet... I'm looking into boot process right now.&amp;nbsp; From my understanding, there is a boot-header needed to be placed in following location in flash:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="karma_JC_0-1651158913138.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178339i12E103FDF2E7B595/image-size/medium?v=v2&amp;amp;px=400" role="button" title="karma_JC_0-1651158913138.png" alt="karma_JC_0-1651158913138.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;By default project setting, the link script is placing boot-header in 0x00FA0000 which it is 9th in search order.&amp;nbsp; If you check sample boot loader, the boot loader is placed at 0x00FC0000; 2nd in search order.&amp;nbsp; I don't think&amp;nbsp; 0x00F80000(1st in search order) being a good place for project boot header because it might have for HSM.&amp;nbsp; So, I change my project setting for boot-header to 0x00FC0000.&lt;/P&gt;&lt;P&gt;However, I found a possible issue by "Disassembler".&amp;nbsp; The CPU0 reset vector seems to pointing 1 word(4 bytes) OFF from where a instruction would "jump" to the "main".&amp;nbsp; So, I'm trying to look for help on this.&amp;nbsp; If anybody know how to get around this issue and know what's reason why CPU0 reset vector being pointing 1 work off from the instruction , that will be great.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, I'm looking where and how CPU0 reset vector being set and see how to modify it.&amp;nbsp; Hopefully, that is right direction to go.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 15:35:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MP5748G-EVB-board-flash-to-run-program-without-debugger/m-p/1450811#M21067</guid>
      <dc:creator>karma_JC</dc:creator>
      <dc:date>2022-04-28T15:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: MP5748G EVB board - flash to run program without debugger</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MP5748G-EVB-board-flash-to-run-program-without-debugger/m-p/1451016#M21072</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp; James：&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using mpc5748g. When I brush the bootloader, I connect PE and can brush repeatedly in the debug mode. When I unplug the debugger and power on the board again, I can't brush again. Therefore, I designed a test io. When I connect the debugger, IO is 3.5V. When I unplug the debugger and power on the board again, IO has no power. At present, I haven't found the reason. My starting address is the default address 0x00fa0000,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ada_Lovelace_0-1651200369750.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178382i9CB248F8F0D55D22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ada_Lovelace_0-1651200369750.png" alt="Ada_Lovelace_0-1651200369750.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is my test code&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 02:46:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MP5748G-EVB-board-flash-to-run-program-without-debugger/m-p/1451016#M21072</guid>
      <dc:creator>Ada_Lovelace</dc:creator>
      <dc:date>2022-04-29T02:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: MP5748G EVB board - flash to run program without debugger</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MP5748G-EVB-board-flash-to-run-program-without-debugger/m-p/1451408#M21087</link>
      <description>&lt;P&gt;Actually, I'm using MPC5748G LCEVB, with PE JTAG.&amp;nbsp; My testing is just blinking an user LED light on the board.&amp;nbsp; Also, I user "hello world" example(LED blinking as well) for testing on boot-header address at 0x00FC000 and 0x00FA0000.&amp;nbsp; Both setup were not able to get the application started after power cycling.&amp;nbsp; I did a memory dump(instead of disassembler) on boot-header contain CPU0 reset vector to 0x01000000 which correct location to "_start". So, it is not vector issue.&amp;nbsp; So, what is the triggering to run our own application?&lt;/P&gt;&lt;P&gt;Perhaps, it needs a boot-loader?.?.?.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 15:20:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MP5748G-EVB-board-flash-to-run-program-without-debugger/m-p/1451408#M21087</guid>
      <dc:creator>karma_JC</dc:creator>
      <dc:date>2022-04-29T15:20:41Z</dc:date>
    </item>
  </channel>
</rss>

