<?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: Reset with recall in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Reset-with-recall/m-p/891146#M13151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mathias,&lt;/P&gt;&lt;P&gt;You can use core registers for your purpose.&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/80970i7578EA185C96F585/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;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80971iBA88F083E1BF7C4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80972i963D9D88B93688D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So the ones with "1" note are unaffected on reset assertion.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 May 2019 11:30:19 GMT</pubDate>
    <dc:creator>petervlna</dc:creator>
    <dc:date>2019-05-13T11:30:19Z</dc:date>
    <item>
      <title>Reset with recall</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Reset-with-recall/m-p/891145#M13150</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 am using MPC5777C device.&lt;/P&gt;&lt;P&gt;In previous projects we have used mcu wd reset together with setting some flag in ram in order to recall this flash at the next startup. However for MPC5777C this is not possible since the ram needs to be initialized with ECC, meaning that all data in ram will be overwritten by this sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not used to this MCU device, hence my question how to best do similar thing? are there some other memory or register that could be used for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mathias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 10:02:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Reset-with-recall/m-p/891145#M13150</guid>
      <dc:creator>mathias_edman</dc:creator>
      <dc:date>2019-05-13T10:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reset with recall</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Reset-with-recall/m-p/891146#M13151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mathias,&lt;/P&gt;&lt;P&gt;You can use core registers for your purpose.&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/80970i7578EA185C96F585/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;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80971iBA88F083E1BF7C4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80972i963D9D88B93688D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So the ones with "1" note are unaffected on reset assertion.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 11:30:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Reset-with-recall/m-p/891146#M13151</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2019-05-13T11:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reset with recall</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Reset-with-recall/m-p/891147#M13152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer. I decided to try with usprg0 "register". But it seems to be a problem if using lockstep ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can read this in startup asm file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;#**************************** Init Core Registers ****************************&lt;BR /&gt;;# The E200Z4 core needs its registers initialising before they are used&lt;BR /&gt;;# otherwise in Lock Step mode the two cores will contain different random data.&lt;BR /&gt;;# If this is stored to memory (e.g. stacked) it will cause a Lock Step error.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;;# Init any other CPU register which might be stacked (before being used).&lt;/P&gt;&lt;P&gt;mtspr 1, r1 ;#XER&lt;BR /&gt;mtcrf 0xFF, r1&lt;BR /&gt;mtspr CTR, r1&lt;BR /&gt;mtspr 272, r1 ;#SPRG0&lt;BR /&gt;mtspr 273, r1 ;#SPRG1&lt;BR /&gt;mtspr 274, r1 ;#SPRG2&lt;BR /&gt;mtspr 275, r1 ;#SPRG3&lt;BR /&gt;mtspr 58, r1 ;#CSRR0&lt;BR /&gt;mtspr 59, r1 ;#CSRR1&lt;BR /&gt;mtspr 570, r1 ;#MCSRR0&lt;BR /&gt;mtspr 571, r1 ;#MCSRR1&lt;BR /&gt;mtspr 61, r1 ;#DEAR&lt;BR /&gt;mtspr 63, r1 ;#IVPR&lt;BR /&gt;mtspr 256, r1 ;#USPRG0&lt;BR /&gt;mtspr 62, r1 ;#ESR&lt;BR /&gt;mtspr 8,r31 ;#LR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to me that using usprg0 is not really an option for me if lockstep is used?&lt;/P&gt;&lt;P&gt;It seems like the TBL and TBU does have a defined value at startup, perhaps I could use these registers instead?&lt;/P&gt;&lt;P&gt;What is your opinion ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mathias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 08:59:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Reset-with-recall/m-p/891147#M13152</guid>
      <dc:creator>mathias_edman</dc:creator>
      <dc:date>2019-05-14T08:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reset with recall</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Reset-with-recall/m-p/891148#M13153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I see no issue here as the note is from MPC56xx architecture where the core register in lock step has to be initialized by 64-bits.&lt;/P&gt;&lt;P&gt;In MPC57xx it is already done in HW during reset.&lt;/P&gt;&lt;P&gt;So you don't have to care about it.&lt;/P&gt;&lt;P&gt;You can check it by simple write to core resister and then read back. If it is not initialized by 64bits you will get lockstep fault.&lt;/P&gt;&lt;P&gt;I didn't personally tried it on this micro but it should work just fine.&lt;/P&gt;&lt;P&gt;If not, then simple initialize it in stratup right after reset by 64bits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 09:07:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Reset-with-recall/m-p/891148#M13153</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2019-05-14T09:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reset with recall</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Reset-with-recall/m-p/891149#M13154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thanks for the explanation!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ended up using TBU (spr 285) as the register to use. It seems to work great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Mathias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 12:27:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Reset-with-recall/m-p/891149#M13154</guid>
      <dc:creator>mathias_edman</dc:creator>
      <dc:date>2019-05-31T12:27:45Z</dc:date>
    </item>
  </channel>
</rss>

