<?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 Issues while flashing the code through s32 design studio using PE micro in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Issues-while-flashing-the-code-through-s32-design-studio-using/m-p/2042942#M45854</link>
    <description>&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In our project we are using s32k312 microcontroller, Currently I am facing some issues while flashing the code through s32 design studio using PE micro. In our project we have first bootloader(Fbl), second bootloader(sbl), and Application code&lt;/P&gt;&lt;P&gt;Currently as per linker files for FBL we are using from 0x400000 to 0x43ffff , SBL we are using 0x440000 to 0x47ffff and for App we are using from 0x480000 to end of the pflash section.&lt;/P&gt;&lt;P&gt;I am merging the srec files I got from fbl, sbl, app and flashing that merged srec file to have the complete app,fbl,sbl code in pflash section.&lt;/P&gt;&lt;P&gt;In the s32 design studio with the attached screenshots we are flashing the srec file as shown below. In the advanced options we are not preserve any range of memory while flashing the srec file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinaychitturi_0-1739409401597.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323704iD97C59F563A04B8A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinaychitturi_0-1739409401597.png" alt="vinaychitturi_0-1739409401597.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinaychitturi_1-1739409401629.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323705i7051F2DD19661DE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinaychitturi_1-1739409401629.png" alt="vinaychitturi_1-1739409401629.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinaychitturi_2-1739409401661.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323706i858706F9E9FC0607/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinaychitturi_2-1739409401661.png" alt="vinaychitturi_2-1739409401661.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinaychitturi_3-1739409401690.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323707i647B6DB5F630FCB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinaychitturi_3-1739409401690.png" alt="vinaychitturi_3-1739409401690.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But while flashing the srec files we are seeing the following errors while flashing the srec files . After tried to flash for few more times then sometimes it is flashing the srec file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinaychitturi_4-1739409401712.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323708i49F4045EB95E7448/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinaychitturi_4-1739409401712.png" alt="vinaychitturi_4-1739409401712.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once the srec file is flashed,we are flashing the elf file for debugging the code. But while flashing that app elf file using the following settings shown below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinaychitturi_5-1739409401735.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323709iD1D086142AC7D98E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinaychitturi_5-1739409401735.png" alt="vinaychitturi_5-1739409401735.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinaychitturi_6-1739409401795.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323711i06A73E6FCB8BC03A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinaychitturi_6-1739409401795.png" alt="vinaychitturi_6-1739409401795.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinaychitturi_7-1739409401821.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323710i2EE1A7ED5ACB00D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinaychitturi_7-1739409401821.png" alt="vinaychitturi_7-1739409401821.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the settings we added the preserve memory range from 0x400000 to 0x47ffff to not override the code of FBL and SBL code. When we tried to flash with these settings it is still erasing the whole section and overriding the FBL and SBL as shown below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinaychitturi_8-1739409401868.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323712i30B8241B66392FCB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinaychitturi_8-1739409401868.png" alt="vinaychitturi_8-1739409401868.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So can you please help us to identify why we seeing these errors while flashing the srec files and elf files. Because of these issues currently we ae unable to go for the debugging mode using the elf file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2025 01:19:28 GMT</pubDate>
    <dc:creator>vinaychitturi</dc:creator>
    <dc:date>2025-02-13T01:19:28Z</dc:date>
    <item>
      <title>Issues while flashing the code through s32 design studio using PE micro</title>
      <link>https://community.nxp.com/t5/S32K/Issues-while-flashing-the-code-through-s32-design-studio-using/m-p/2042942#M45854</link>
      <description>&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In our project we are using s32k312 microcontroller, Currently I am facing some issues while flashing the code through s32 design studio using PE micro. In our project we have first bootloader(Fbl), second bootloader(sbl), and Application code&lt;/P&gt;&lt;P&gt;Currently as per linker files for FBL we are using from 0x400000 to 0x43ffff , SBL we are using 0x440000 to 0x47ffff and for App we are using from 0x480000 to end of the pflash section.&lt;/P&gt;&lt;P&gt;I am merging the srec files I got from fbl, sbl, app and flashing that merged srec file to have the complete app,fbl,sbl code in pflash section.&lt;/P&gt;&lt;P&gt;In the s32 design studio with the attached screenshots we are flashing the srec file as shown below. In the advanced options we are not preserve any range of memory while flashing the srec file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinaychitturi_0-1739409401597.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323704iD97C59F563A04B8A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinaychitturi_0-1739409401597.png" alt="vinaychitturi_0-1739409401597.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinaychitturi_1-1739409401629.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323705i7051F2DD19661DE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinaychitturi_1-1739409401629.png" alt="vinaychitturi_1-1739409401629.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinaychitturi_2-1739409401661.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323706i858706F9E9FC0607/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinaychitturi_2-1739409401661.png" alt="vinaychitturi_2-1739409401661.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinaychitturi_3-1739409401690.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323707i647B6DB5F630FCB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinaychitturi_3-1739409401690.png" alt="vinaychitturi_3-1739409401690.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But while flashing the srec files we are seeing the following errors while flashing the srec files . After tried to flash for few more times then sometimes it is flashing the srec file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinaychitturi_4-1739409401712.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323708i49F4045EB95E7448/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinaychitturi_4-1739409401712.png" alt="vinaychitturi_4-1739409401712.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once the srec file is flashed,we are flashing the elf file for debugging the code. But while flashing that app elf file using the following settings shown below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinaychitturi_5-1739409401735.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323709iD1D086142AC7D98E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinaychitturi_5-1739409401735.png" alt="vinaychitturi_5-1739409401735.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinaychitturi_6-1739409401795.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323711i06A73E6FCB8BC03A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinaychitturi_6-1739409401795.png" alt="vinaychitturi_6-1739409401795.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinaychitturi_7-1739409401821.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323710i2EE1A7ED5ACB00D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinaychitturi_7-1739409401821.png" alt="vinaychitturi_7-1739409401821.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the settings we added the preserve memory range from 0x400000 to 0x47ffff to not override the code of FBL and SBL code. When we tried to flash with these settings it is still erasing the whole section and overriding the FBL and SBL as shown below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinaychitturi_8-1739409401868.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323712i30B8241B66392FCB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinaychitturi_8-1739409401868.png" alt="vinaychitturi_8-1739409401868.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So can you please help us to identify why we seeing these errors while flashing the srec files and elf files. Because of these issues currently we ae unable to go for the debugging mode using the elf file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 01:19:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issues-while-flashing-the-code-through-s32-design-studio-using/m-p/2042942#M45854</guid>
      <dc:creator>vinaychitturi</dc:creator>
      <dc:date>2025-02-13T01:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issues while flashing the code through s32 design studio using PE micro</title>
      <link>https://community.nxp.com/t5/S32K/Issues-while-flashing-the-code-through-s32-design-studio-using/m-p/2043265#M45866</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/196765"&gt;@vinaychitturi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I answered something very similar here two days ago:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MPC5xxx/linking-single-elf-file-for-multiple-bootloader-and-applicationn/m-p/2041706/highlight/true#M27260" target="_blank"&gt;https://community.nxp.com/t5/MPC5xxx/linking-single-elf-file-for-multiple-bootloader-and-applicationn/m-p/2041706/highlight/true#M27260&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This will work also for S32K3. You can either create single file or you can simply define more object files to load together with elf file of your application. &lt;/P&gt;
&lt;P&gt;Regarding your procedure: when loading the srec file, I would disable "Load Symbols" and "Run on reset" in Startup tab. This has no meaning when srec file is loaded, that's for elf file. Not sure if this will help but you can try...&lt;/P&gt;
&lt;P&gt;Preserve memory feature works like this: Pemicro reads define area, erases everything and then it loads the data back. It does not simply keep the data in flash for some reason. The question is why it fails...&lt;/P&gt;
&lt;P&gt;Anyway, I would use rather methods described in the mentioned post above. I think it's more convenient solution. &lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 08:58:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issues-while-flashing-the-code-through-s32-design-studio-using/m-p/2043265#M45866</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-02-13T08:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issues while flashing the code through s32 design studio using PE micro</title>
      <link>https://community.nxp.com/t5/S32K/Issues-while-flashing-the-code-through-s32-design-studio-using/m-p/2047408#M46051</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795"&gt;@lukaszadrapa&lt;/a&gt;&amp;nbsp;, Thanks for your reply&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 15:24:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issues-while-flashing-the-code-through-s32-design-studio-using/m-p/2047408#M46051</guid>
      <dc:creator>vinaychitturi</dc:creator>
      <dc:date>2025-02-19T15:24:01Z</dc:date>
    </item>
  </channel>
</rss>

