<?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: MPC5777C bootloader Problem in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-bootloader-Problem/m-p/914930#M13689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. Thanks for the explain.&lt;/P&gt;&lt;P&gt;Another question I faced now is, the S32 design studio generate Srecord with S2 (&lt;SPAN style="color: #000000;"&gt;The address field is intrepreted as a 3-byte address), and I tried to use&amp;nbsp;&lt;/SPAN&gt;SRECCONV_v2.exe to convert to a 64-bit align as you mention on the document. But the output file only contains one line of S record,&amp;nbsp;S7050000008C6E, and that's all of the file. I googled it and I found there is someone with similar problem with me &lt;A href="https://community.nxp.com/thread/457300"&gt;https://community.nxp.com/thread/457300&lt;/A&gt;&amp;nbsp;, but no one answer. Could you help me with that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Aug 2019 06:30:16 GMT</pubDate>
    <dc:creator>lukezhang</dc:creator>
    <dc:date>2019-08-14T06:30:16Z</dc:date>
    <item>
      <title>MPC5777C bootloader Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-bootloader-Problem/m-p/914928#M13687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question regarding to the implementation of mpc5777c bootloader. I followed AN5319 application note as a guideline to implement it, and now the earsing functionality works after I put certain code (like Flash_erase(), interrupt vector table and exception table) to RAM (otherwise it will issue IVOR1 fault). So here's the thing that I don't understand, I put some routines to RAM instead of flash, but as fat as I know, RAM can only store data temporary, and it cannot retain the data, which means if I power it off, and power on again, the data stored in RAM should disappear, but actually it is not, and the routines, interrupt vector all works as usual. But I only put those routines in RAM based on this question&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-334030"&gt;HOWTO: Run a routine from RAM in S32 Design Studio&amp;nbsp;&lt;/A&gt;. So why does those routines put at RAM still working after a full power cycle?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2019 08:03:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-bootloader-Problem/m-p/914928#M13687</guid>
      <dc:creator>lukezhang</dc:creator>
      <dc:date>2019-08-13T08:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C bootloader Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-bootloader-Problem/m-p/914929#M13688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote in the AN5319:&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/87494i4D310E0E5FDDB2FD/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;So, if you use initialized variables (not constants as mentioned above) for C-arrays, it's automatically copied from flash to RAM by startup code.&lt;/P&gt;&lt;P&gt;And in the mentioned HOWTO document, the code is manually copied from flash to RAM memory using memcpy function - you can see that in the main function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, the code is sitting in the flash memory and then it is copied to RAM after each reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2019 10:04:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-bootloader-Problem/m-p/914929#M13688</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-08-13T10:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C bootloader Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-bootloader-Problem/m-p/914930#M13689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. Thanks for the explain.&lt;/P&gt;&lt;P&gt;Another question I faced now is, the S32 design studio generate Srecord with S2 (&lt;SPAN style="color: #000000;"&gt;The address field is intrepreted as a 3-byte address), and I tried to use&amp;nbsp;&lt;/SPAN&gt;SRECCONV_v2.exe to convert to a 64-bit align as you mention on the document. But the output file only contains one line of S record,&amp;nbsp;S7050000008C6E, and that's all of the file. I googled it and I found there is someone with similar problem with me &lt;A href="https://community.nxp.com/thread/457300"&gt;https://community.nxp.com/thread/457300&lt;/A&gt;&amp;nbsp;, but no one answer. Could you help me with that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2019 06:30:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-bootloader-Problem/m-p/914930#M13689</guid>
      <dc:creator>lukezhang</dc:creator>
      <dc:date>2019-08-14T06:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C bootloader Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-bootloader-Problem/m-p/914931#M13690</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;SRECCONV supports S3 records only. To force the S32 Design Studio to generate S3 record, use this setting (highlighted): &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/87367iD15D991436C12482/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;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2019 11:09:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-bootloader-Problem/m-p/914931#M13690</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-08-14T11:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C bootloader Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-bootloader-Problem/m-p/914932#M13691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/lukaszadrapa"&gt;lukaszadrapa&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a following question, the bootloader now is working. But everytime it takes around 15 minutes to flash a whole Srecord file to processor. I'm thinking about speed it up, and I'm considering if there is anyway I can flash .bin file instead of .srec file since bin file has a relative smaller size. Is there any document or guideline can achieve it? Or is there any other way to speed it up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2019 00:49:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-bootloader-Problem/m-p/914932#M13691</guid>
      <dc:creator>lukezhang</dc:creator>
      <dc:date>2019-08-23T00:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C bootloader Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-bootloader-Problem/m-p/914933#M13692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let's do some calculation. I hope I won't make a mistake:&lt;/P&gt;&lt;P&gt;There's 8MB flash -&amp;gt; 8 388 608 bytes to program.&lt;/P&gt;&lt;P&gt;Considering typical timing:&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/89083iFE71FB9D981316A7/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;... programming itself will take (without SW overhead):&lt;/P&gt;&lt;P&gt;- using 64bits programming: 45s&lt;/P&gt;&lt;P&gt;- using 256bits programming:19s&lt;/P&gt;&lt;P&gt;- using 1024bits programming:17s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data payload of one s-record line is 16bytes (considering output from SRECCONV). Size of whole line is 23bytes. Due to ascii format, 46 characters need to be sent per line.&lt;/P&gt;&lt;P&gt;To cover whole 8MB flash, we need 524 288 s-record lines. That means we need to transfer 24 117 248 characters.&lt;/P&gt;&lt;P&gt;When using speed 115 200 bits/s, we need 86.8us to transfer 1 ascii character (start bit + 8bit data + stop bit). To transfer whole s-record file, we need 2 093s = 34min.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comparing to binary file:&lt;/P&gt;&lt;P&gt;We have 8 388 608 bytes and speed 86.8us per byte =&amp;gt; 728s = 12min&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, optimalization of programming procedure is not so significant (but can help too) but using of binary file can decrease the transferring time to about 1/3.&lt;/P&gt;&lt;P&gt;But it also depends on your image - if there are large gaps in the s-record format, the difference may not be so significant because the gaps need to be transferred too in the binary image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transferring of binary image is much simpler than decoding of s-record lines, so it shouldn't be difficult to update the bootloader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2019 11:02:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-bootloader-Problem/m-p/914933#M13692</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-08-23T11:02:44Z</dc:date>
    </item>
  </channel>
</rss>

