<?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: Erase all blocks</title>
    <link>https://community.nxp.com/t5/S32K/Erase-all-blocks/m-p/2004535#M43763</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/213885"&gt;@David_Estevez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The CSEc is obviously enabled.&lt;/P&gt;
&lt;P&gt;The example in SDK uses this MASTER_ECU_KEY:&lt;/P&gt;
&lt;P&gt;uint8_t g_authIdKey[16] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,&lt;BR /&gt;0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f};&lt;/P&gt;
&lt;P&gt;The same key is used also in function eraseKeys(). This function uses mentioned commands CMD_DBG_CHAL and CMD_DBG_AUTH. If the function was not successful, the key is obviously wrong. Do you know history of the board? Do you know current MASTER_ECU_KEY? If not, there's no way to erase the keys. And if the keys are not erased, there's no way to run Erase All Blocks command. In this case, the only option is to replace the device.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
    <pubDate>Sat, 30 Nov 2024 15:46:48 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2024-11-30T15:46:48Z</dc:date>
    <item>
      <title>Erase all blocks</title>
      <link>https://community.nxp.com/t5/S32K/Erase-all-blocks/m-p/2004235#M43742</link>
      <description>&lt;P&gt;I'm trying to perform the &lt;EM&gt;Erase All Blocks&lt;/EM&gt; command, but I'm facing issues.&lt;/P&gt;&lt;P&gt;First of all, I created a function to send the &lt;EM&gt;Erase All Blocks&lt;/EM&gt; command (0x44 in FCCOB0), as stated in RM. However, the result I got was the error bit FSTAT[ACCERR] set to 1:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="David_Estevez_0-1732871190168.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313289i0F3EA6E5336EA349/image-size/medium?v=v2&amp;amp;px=400" role="button" title="David_Estevez_0-1732871190168.png" alt="David_Estevez_0-1732871190168.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="David_Estevez_1-1732871235963.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313290i6DBFF1AE893AA30C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="David_Estevez_1-1732871235963.png" alt="David_Estevez_1-1732871235963.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume this is the reason:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="David_Estevez_2-1732871277984.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313291iED67CA8439EC797A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="David_Estevez_2-1732871277984.png" alt="David_Estevez_2-1732871277984.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore, I found a function for erasing all keys in a sample program, but it is not working because the last line does not return a successful result.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="David_Estevez_3-1732871360953.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313292i2CB7520011F0FC70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="David_Estevez_3-1732871360953.png" alt="David_Estevez_3-1732871360953.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Kindly regards,&lt;BR /&gt;David&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 09:09:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Erase-all-blocks/m-p/2004235#M43742</guid>
      <dc:creator>David_Estevez</dc:creator>
      <dc:date>2024-11-29T09:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Erase all blocks</title>
      <link>https://community.nxp.com/t5/S32K/Erase-all-blocks/m-p/2004535#M43763</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/213885"&gt;@David_Estevez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The CSEc is obviously enabled.&lt;/P&gt;
&lt;P&gt;The example in SDK uses this MASTER_ECU_KEY:&lt;/P&gt;
&lt;P&gt;uint8_t g_authIdKey[16] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,&lt;BR /&gt;0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f};&lt;/P&gt;
&lt;P&gt;The same key is used also in function eraseKeys(). This function uses mentioned commands CMD_DBG_CHAL and CMD_DBG_AUTH. If the function was not successful, the key is obviously wrong. Do you know history of the board? Do you know current MASTER_ECU_KEY? If not, there's no way to erase the keys. And if the keys are not erased, there's no way to run Erase All Blocks command. In this case, the only option is to replace the device.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2024 15:46:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Erase-all-blocks/m-p/2004535#M43763</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2024-11-30T15:46:48Z</dc:date>
    </item>
  </channel>
</rss>

