<?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: MPC5744P OTA and ROLLBACK in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-OTA-and-ROLLBACK/m-p/949234#M14280</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 can see two solutions for this use case:&lt;/P&gt;&lt;P&gt;- first one at application level - don't allow updating of new firmware if previous firmware is not correctly updated. All updates must pass one by one.&lt;/P&gt;&lt;P&gt;- compile the applications as Position Independent Code. This would be nice solution but there were some issues in S32 Design Studio. I can remember a discussion with IDE experts that S32DS supported PIC mode only for libraries. If they tried to configure whole application project as PIC, there were still absolute jumps.&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, 12 Jul 2019 05:45:50 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2019-07-12T05:45:50Z</dc:date>
    <item>
      <title>MPC5744P OTA and ROLLBACK</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-OTA-and-ROLLBACK/m-p/949233#M14279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The MCU we use is the MPC5744P. We are now doing the OTA function, which is to remotely update the controller's software through the T-box. Now the controller needs to have a rollback function. Do you have a recommended rollback solution?&lt;/P&gt;&lt;P&gt;The solution we hope is that flash is divided into two areas, A/B. When the program runs in the A area, the new program is updated to the B area, and when the controller is powered on again, the BootLoader switches the boot flag from the A area to the B area. When the program runs in the B area, the new program is updated to the A area. When the controller is powered on again, the BootLoader switches the boot flag from the B area to the A area. If the program update fails, the boot flag can be switched back to the old area to implement software rollback.&lt;/P&gt;&lt;P&gt;However, the problem with the above scheme is that after the software is compiled, the addresses of variables and functions are fixed. The same software, if compiled in the A area, the address must be located in the A area. If this software is updated to the B area at this time, it will definitely go wrong. So is there any way to solve this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2019 10:30:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-OTA-and-ROLLBACK/m-p/949233#M14279</guid>
      <dc:creator>283230333</dc:creator>
      <dc:date>2019-07-08T10:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P OTA and ROLLBACK</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-OTA-and-ROLLBACK/m-p/949234#M14280</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 can see two solutions for this use case:&lt;/P&gt;&lt;P&gt;- first one at application level - don't allow updating of new firmware if previous firmware is not correctly updated. All updates must pass one by one.&lt;/P&gt;&lt;P&gt;- compile the applications as Position Independent Code. This would be nice solution but there were some issues in S32 Design Studio. I can remember a discussion with IDE experts that S32DS supported PIC mode only for libraries. If they tried to configure whole application project as PIC, there were still absolute jumps.&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, 12 Jul 2019 05:45:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-OTA-and-ROLLBACK/m-p/949234#M14280</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-07-12T05:45:50Z</dc:date>
    </item>
  </channel>
</rss>

