<?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>MPC5xxxのトピックS32 Flash and debug two elf files</title>
    <link>https://community.nxp.com/t5/MPC5xxx/S32-Flash-and-debug-two-elf-files/m-p/677184#M8014</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 have 2 elfs that I try and flash and than debug on S32.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flashing seems to work, and and debug even goes from startup to main.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I look at the section to which I refer it seems messed up, and does not match either elf:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pegdbserver console:&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Command Line :C:\Freescale\S32_Power_v1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.3.3.201605241936\win32\pegdbserver_power_console -device=MPC5748G -startserver -singlesession -serverport=7224 -interface=USBMULTILINK -speed=5000 -resetdelay=300 -ˆ&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;CMD&amp;gt;RE&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Initializing.&lt;BR /&gt;Target has been RESET and is active.&lt;BR /&gt;CMD&amp;gt;CM C:\Freescale\S32_Power_v1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.3.3.201605241936\win32\gdi\P&amp;amp;E\freescale_mpc5748g_1x32x1524k_cflash.pcp&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Initializing.&lt;BR /&gt;Initialized.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;;version 1.01, 04/23/2015, Copyright P&amp;amp;E Microcomputer Systems, &lt;A href="https://community.nxp.com/www.pemicro.com" target="test_blank"&gt;www.pemicro.com&lt;/A&gt; [5748G_6096k]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;;device Freescale, MPC5748G, 1x32x1524k, desc=CFlash&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;;begin_cs device=$00F8C000, length=$005F4000, ram=$40000000&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Loading programming algorithm ...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;WARNING - Selected .PCP file has been modified. CRC16 = $6D58 &lt;BR /&gt;Done.&lt;BR /&gt;CMD&amp;gt;EM&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Erasing.&lt;BR /&gt;Module has been erased.&lt;BR /&gt;CMD&amp;gt;PM&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Programming.&lt;BR /&gt;Processing Object File Data ... &lt;BR /&gt; &lt;BR /&gt;Error during programming.&lt;BR /&gt;Error Programming flash of device&lt;/P&gt;&lt;P&gt;Error occured during Flash programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Starting reset script (C:\Freescale\S32_Power_v1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.3.3.201605241936\win32\gdi\P&amp;amp;E\s32e200_mpc574xg.mac) ...&lt;/P&gt;&lt;P&gt;REM This script is compatible with MPC574xG devices.&lt;/P&gt;&lt;P&gt;REM Initialize all of the Main SRAM - 768KB&lt;/P&gt;&lt;P&gt;Initializing RAM from $40000000 to $400BFFFF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reset script (C:\Freescale\S32_Power_v1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.3.3.201605241936\win32\gdi\P&amp;amp;E\s32e200_mpc574xg.mac) completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PE-ERROR: Error downloading to the device.&lt;BR /&gt;Preset breakpoint encountered.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Preset breakpoint encountered.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Preset breakpoint encountered.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Disconnected from "127.0.0.1" via 127.0.0.1&lt;BR /&gt;Target Disconnected.&lt;BR /&gt;Target Disconnected.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map file from both elf's with relevant section:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;STRONG&gt;elf1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*(.modulelist)&lt;BR /&gt; .modulelist 0x011cf004 0x20 ./src/ar.o&lt;BR /&gt; 0x011cf004 module_list&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;elf2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*(.modulelist)&lt;BR /&gt; .modulelist 0x011cf004 0x20 ./src/ar.o&lt;BR /&gt; 0x011cf004 module_list&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;srecord data from relevant address:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;STRONG&gt;elf1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;S319011CF0000000000201002FB00000000001002E16006600004C&lt;BR /&gt;S315011CF01401002FB80000000001002DB0006600009D&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;elf2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;S319011CF000000000020100836C0000000001008092006600006E&lt;BR /&gt;S315011CF01401008374000000000100802C00660000BE&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and from reading the flash while in debug:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21605iD273095CB3D5AA14/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_12.png" alt="pastedImage_12.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jun 2017 12:47:36 GMT</pubDate>
    <dc:creator>kfirbs</dc:creator>
    <dc:date>2017-06-06T12:47:36Z</dc:date>
    <item>
      <title>S32 Flash and debug two elf files</title>
      <link>https://community.nxp.com/t5/MPC5xxx/S32-Flash-and-debug-two-elf-files/m-p/677184#M8014</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 have 2 elfs that I try and flash and than debug on S32.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flashing seems to work, and and debug even goes from startup to main.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I look at the section to which I refer it seems messed up, and does not match either elf:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pegdbserver console:&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Command Line :C:\Freescale\S32_Power_v1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.3.3.201605241936\win32\pegdbserver_power_console -device=MPC5748G -startserver -singlesession -serverport=7224 -interface=USBMULTILINK -speed=5000 -resetdelay=300 -ˆ&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;CMD&amp;gt;RE&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Initializing.&lt;BR /&gt;Target has been RESET and is active.&lt;BR /&gt;CMD&amp;gt;CM C:\Freescale\S32_Power_v1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.3.3.201605241936\win32\gdi\P&amp;amp;E\freescale_mpc5748g_1x32x1524k_cflash.pcp&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Initializing.&lt;BR /&gt;Initialized.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;;version 1.01, 04/23/2015, Copyright P&amp;amp;E Microcomputer Systems, &lt;A href="https://community.nxp.com/www.pemicro.com" target="test_blank"&gt;www.pemicro.com&lt;/A&gt; [5748G_6096k]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;;device Freescale, MPC5748G, 1x32x1524k, desc=CFlash&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;;begin_cs device=$00F8C000, length=$005F4000, ram=$40000000&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Loading programming algorithm ...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;WARNING - Selected .PCP file has been modified. CRC16 = $6D58 &lt;BR /&gt;Done.&lt;BR /&gt;CMD&amp;gt;EM&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Erasing.&lt;BR /&gt;Module has been erased.&lt;BR /&gt;CMD&amp;gt;PM&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Programming.&lt;BR /&gt;Processing Object File Data ... &lt;BR /&gt; &lt;BR /&gt;Error during programming.&lt;BR /&gt;Error Programming flash of device&lt;/P&gt;&lt;P&gt;Error occured during Flash programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Starting reset script (C:\Freescale\S32_Power_v1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.3.3.201605241936\win32\gdi\P&amp;amp;E\s32e200_mpc574xg.mac) ...&lt;/P&gt;&lt;P&gt;REM This script is compatible with MPC574xG devices.&lt;/P&gt;&lt;P&gt;REM Initialize all of the Main SRAM - 768KB&lt;/P&gt;&lt;P&gt;Initializing RAM from $40000000 to $400BFFFF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reset script (C:\Freescale\S32_Power_v1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.3.3.201605241936\win32\gdi\P&amp;amp;E\s32e200_mpc574xg.mac) completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PE-ERROR: Error downloading to the device.&lt;BR /&gt;Preset breakpoint encountered.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Preset breakpoint encountered.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Preset breakpoint encountered.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Disconnected from "127.0.0.1" via 127.0.0.1&lt;BR /&gt;Target Disconnected.&lt;BR /&gt;Target Disconnected.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map file from both elf's with relevant section:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;STRONG&gt;elf1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*(.modulelist)&lt;BR /&gt; .modulelist 0x011cf004 0x20 ./src/ar.o&lt;BR /&gt; 0x011cf004 module_list&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;elf2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*(.modulelist)&lt;BR /&gt; .modulelist 0x011cf004 0x20 ./src/ar.o&lt;BR /&gt; 0x011cf004 module_list&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;srecord data from relevant address:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;STRONG&gt;elf1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;S319011CF0000000000201002FB00000000001002E16006600004C&lt;BR /&gt;S315011CF01401002FB80000000001002DB0006600009D&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;elf2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;S319011CF000000000020100836C0000000001008092006600006E&lt;BR /&gt;S315011CF01401008374000000000100802C00660000BE&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and from reading the flash while in debug:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21605iD273095CB3D5AA14/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_12.png" alt="pastedImage_12.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 12:47:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/S32-Flash-and-debug-two-elf-files/m-p/677184#M8014</guid>
      <dc:creator>kfirbs</dc:creator>
      <dc:date>2017-06-06T12:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: S32 Flash and debug two elf files</title>
      <link>https://community.nxp.com/t5/MPC5xxx/S32-Flash-and-debug-two-elf-files/m-p/677185#M8015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are these two elf files created by S32DS or by different IDE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have multicore project created by S32DS, you can simply use LaunchGroup option to load and debug.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21283iF2E1021775C4F23A/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to load and debug elf files which does not come from S32DS, please see article below and use point 3. Instead of single core project, create multicore project and use it's debug configuration (LaunchGroup configuration).&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-332252"&gt;HOWTO: download separate elf/srec file to microcontroller using S32 Design Studio&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose these two elf files are files for different cores and I suppose you have correctly created linker files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also this is not elf file, but Srecord file. elf file is binary file which cannot be correctly interpreted by text editor.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;elf1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;S319011CF0000000000201002FB00000000001002E16006600004C&lt;BR /&gt;S315011CF01401002FB80000000001002DB0006600009D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case my advice does not help you, could you please write me back more details about microcontroller, files you try to load and eventually post here the whole project or at least the files you try to load into the microcontroller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 10:27:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/S32-Flash-and-debug-two-elf-files/m-p/677185#M8015</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2017-06-09T10:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: S32 Flash and debug two elf files</title>
      <link>https://community.nxp.com/t5/MPC5xxx/S32-Flash-and-debug-two-elf-files/m-p/677186#M8016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the detailed response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are two elf files for the same core downloaded to DEVKIT-MPC5748G via S32.&lt;/P&gt;&lt;P&gt;I have dumped the elf files to S record in order to show my memory problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both elf files affect 0x&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;011CF000, with different data, and I want the second elf to overwrite the first, other data from the second elf does not overlap the first.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;As mentioned in my original post above:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;map file from both elf's with relevant section:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="border-width: 0px 0px 0px 2px; border-style: initial initial initial solid; border-color: initial initial initial #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;elf1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;*(.modulelist)&lt;BR /&gt;.modulelist &lt;STRONG&gt;0x011cf004 0x20&lt;/STRONG&gt; ./src/ar.o&lt;BR /&gt;0x011cf004 module_list&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;elf2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;*(.modulelist)&lt;BR /&gt;.modulelist &lt;STRONG&gt;0x011cf004 0x20&lt;/STRONG&gt; ./src/ar.o&lt;BR /&gt;0x011cf004 module_list&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;srecord data from relevant address:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="border-width: 0px 0px 0px 2px; border-style: initial initial initial solid; border-color: initial initial initial #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;elf1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;S319011CF0000000000201002FB00000000001002E16006600004C&lt;BR /&gt;S315011CF01401002FB80000000001002DB0006600009D&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;elf2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;S319011CF000000000020100836C0000000001008092006600006E&lt;BR /&gt;S315011CF01401008374000000000100802C00660000BE&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;STRONG style="background-color: #f6f6f6; color: #51626f;"&gt;Both elfs are for the same core, does that matter?&lt;/STRONG&gt;&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 20:19:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/S32-Flash-and-debug-two-elf-files/m-p/677186#M8016</guid>
      <dc:creator>kfirbs</dc:creator>
      <dc:date>2017-06-09T20:19:27Z</dc:date>
    </item>
  </channel>
</rss>

