<?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>S32KのトピックRe: Why the system will be restarted when Use CMAC or Flash Programing or Flash Erase?</title>
    <link>https://community.nxp.com/t5/S32K/Why-the-system-will-be-restarted-when-Use-CMAC-or-Flash/m-p/888910#M4247</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;there are two restrictions:&lt;/P&gt;&lt;P&gt;1.&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/72878iC8B61CED12E29FEA/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;That means you can't access partition (flash block) which is being erased or programmed. The code must be executed from RAM memory. This is implemented in SDK drivers. But bear in mind that if interrupt is triggered, the flash is accessed too (reading interrupt vector from flash, executing ISR handler from flash). If you need to handle interrupts during flash operations, it's necessary to move interrupt vector table and ISR handlers to RAM. Or you have to disable the interrupts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&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/72920i124587BE5AF8312A/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;/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/72545iA2CDDD64F9D4320E/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;&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, 01 Mar 2019 08:01:05 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2019-03-01T08:01:05Z</dc:date>
    <item>
      <title>Why the system will be restarted when Use CMAC or Flash Programing or Flash Erase?</title>
      <link>https://community.nxp.com/t5/S32K/Why-the-system-will-be-restarted-when-Use-CMAC-or-Flash/m-p/888908#M4245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, NXP!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use CSEc module. When the code run at CSEC_DRV_VerifyMAC() my system will be restarted. I find the restart reason is lockup in the&amp;nbsp;RCM_SRS register.&lt;/P&gt;&lt;P&gt;I think this operation will spend long time, Then I try the Flash Programing and Flash Erase. the system will be restarted also.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know why the system will be restarted when those operation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 03:06:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Why-the-system-will-be-restarted-when-Use-CMAC-or-Flash/m-p/888908#M4245</guid>
      <dc:creator>香龙朱</dc:creator>
      <dc:date>2019-02-26T03:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why the system will be restarted when Use CMAC or Flash Programing or Flash Erase?</title>
      <link>https://community.nxp.com/t5/S32K/Why-the-system-will-be-restarted-when-Use-CMAC-or-Flash/m-p/888909#M4246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I find this issue maybe because of the interrupt. I close the global interrupt, the MCU will not be restarted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anybody can&amp;nbsp;explain the reason?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 08:53:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Why-the-system-will-be-restarted-when-Use-CMAC-or-Flash/m-p/888909#M4246</guid>
      <dc:creator>香龙朱</dc:creator>
      <dc:date>2019-02-26T08:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why the system will be restarted when Use CMAC or Flash Programing or Flash Erase?</title>
      <link>https://community.nxp.com/t5/S32K/Why-the-system-will-be-restarted-when-Use-CMAC-or-Flash/m-p/888910#M4247</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;there are two restrictions:&lt;/P&gt;&lt;P&gt;1.&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/72878iC8B61CED12E29FEA/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;That means you can't access partition (flash block) which is being erased or programmed. The code must be executed from RAM memory. This is implemented in SDK drivers. But bear in mind that if interrupt is triggered, the flash is accessed too (reading interrupt vector from flash, executing ISR handler from flash). If you need to handle interrupts during flash operations, it's necessary to move interrupt vector table and ISR handlers to RAM. Or you have to disable the interrupts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&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/72920i124587BE5AF8312A/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;/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/72545iA2CDDD64F9D4320E/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;&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, 01 Mar 2019 08:01:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Why-the-system-will-be-restarted-when-Use-CMAC-or-Flash/m-p/888910#M4247</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-03-01T08:01:05Z</dc:date>
    </item>
  </channel>
</rss>

