<?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 Special Purpose Register Address in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Special-Purpose-Register-Address/m-p/801091#M11751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Support Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also faced the issue which was described in one of the tickets raised few years back "MPC5602D Data flash issue".&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/436288"&gt;https://community.nxp.com/thread/436288&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was regarding flash corruption.&amp;nbsp;&lt;SPAN&gt;Once the flash is corrupted, I see '???????' in the debugger and it ends in infinite reset loops.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; @&lt;A _jive_internal="true" data-content-finding="Community" data-userid="206568" data-username="lukaszadrapa" href="https://community.nxp.com/people/lukaszadrapa" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: underline; font-size: 1.286rem;"&gt;Lukas Zadrapa&lt;/A&gt;&amp;nbsp;: Reading through post, I got to know that, flash blocks needs to erased again.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I went through the pdf and software code which was attached by&amp;nbsp;you. And I managed to understand bit.&lt;/P&gt;&lt;P&gt;Do you have this alogorithm implemented in C code?&lt;/P&gt;&lt;P&gt;One more question,if I want to implement this in C code, how can i get the address of special purpose registers like MCSRR0, MSR, MCSR etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also went through the e200z759CRM pdf (i.e Core Reference Manual), but somehow I could not figure out the base address of those registers. Could you please help me out in this ? I also went through VLEPEM pdf also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does 'lis' 'stw' 'lwz' instruction meant by?&lt;/P&gt;&lt;P&gt;What does @h @l meant by?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;asm (lis r30, (address)@h);&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; \&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;asm (ori r30, r30, (address)@l);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;asm (lwz r31, 0x0(r30));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks And Regards,&lt;/P&gt;&lt;P&gt;Akshara Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Aug 2018 18:01:38 GMT</pubDate>
    <dc:creator>aksharap97</dc:creator>
    <dc:date>2018-08-19T18:01:38Z</dc:date>
    <item>
      <title>Special Purpose Register Address</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Special-Purpose-Register-Address/m-p/801091#M11751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Support Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also faced the issue which was described in one of the tickets raised few years back "MPC5602D Data flash issue".&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/436288"&gt;https://community.nxp.com/thread/436288&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was regarding flash corruption.&amp;nbsp;&lt;SPAN&gt;Once the flash is corrupted, I see '???????' in the debugger and it ends in infinite reset loops.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; @&lt;A _jive_internal="true" data-content-finding="Community" data-userid="206568" data-username="lukaszadrapa" href="https://community.nxp.com/people/lukaszadrapa" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: underline; font-size: 1.286rem;"&gt;Lukas Zadrapa&lt;/A&gt;&amp;nbsp;: Reading through post, I got to know that, flash blocks needs to erased again.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I went through the pdf and software code which was attached by&amp;nbsp;you. And I managed to understand bit.&lt;/P&gt;&lt;P&gt;Do you have this alogorithm implemented in C code?&lt;/P&gt;&lt;P&gt;One more question,if I want to implement this in C code, how can i get the address of special purpose registers like MCSRR0, MSR, MCSR etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also went through the e200z759CRM pdf (i.e Core Reference Manual), but somehow I could not figure out the base address of those registers. Could you please help me out in this ? I also went through VLEPEM pdf also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does 'lis' 'stw' 'lwz' instruction meant by?&lt;/P&gt;&lt;P&gt;What does @h @l meant by?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;asm (lis r30, (address)@h);&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; \&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;asm (ori r30, r30, (address)@l);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;asm (lwz r31, 0x0(r30));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks And Regards,&lt;/P&gt;&lt;P&gt;Akshara Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Aug 2018 18:01:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Special-Purpose-Register-Address/m-p/801091#M11751</guid>
      <dc:creator>aksharap97</dc:creator>
      <dc:date>2018-08-19T18:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Special Purpose Register Address</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Special-Purpose-Register-Address/m-p/801092#M11752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;@h&lt;/SPAN&gt; chooses high 16-bit from specified value&lt;/P&gt;&lt;P&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;@l&lt;/SPAN&gt; chooses low 16-bit from specified value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these two lines just loads the address into r30 register, but it must be done in 2 steps because of limitation of instruction set&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 08:48:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Special-Purpose-Register-Address/m-p/801092#M11752</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2018-08-20T08:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Special Purpose Register Address</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Special-Purpose-Register-Address/m-p/801093#M11753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is defined in core reference manual:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/reference-manual/e200z4RM.pdf" title="https://www.nxp.com/docs/en/reference-manual/e200z4RM.pdf"&gt;https://www.nxp.com/docs/en/reference-manual/e200z4RM.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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/69851iE617A826E02DC96F/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MSR register does not have SPR number, it is being accessed by special instruction mtmsr/mfmsr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 12:06:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Special-Purpose-Register-Address/m-p/801093#M11753</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2018-09-12T12:06:28Z</dc:date>
    </item>
  </channel>
</rss>

