<?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: Flash configuration byte S32K146EVB board in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Flash-configuration-byte-S32K146EVB-board/m-p/1162817#M8386</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your settings don't look bad for me. Using P&amp;amp;E Multilink, S32 Design Studio should automatically ask for your permission to unsecure when you try to make debug connection and debugger&amp;nbsp;finds secured S32K.&lt;/P&gt;&lt;P&gt;It is not clear, do you have this problem on some EVB or on your own prototypes?&lt;/P&gt;&lt;P&gt;I had something odd on S32K148 EVB. Perhaps security got engaged, though I didn't try to engage security using OpenSDA, but I'm not sure what really happened. Symptom was&amp;nbsp;that red EVB RESET LED was constantly on as if RESET button was pressed. With MCU RESET pin not released of course even&amp;nbsp;P&amp;amp;E Multilink couldn't connect. Hopefully&amp;nbsp;unplugging onboard OpenSDA USB cable turned RESET LED off and I was able to reprogram S32K using P&amp;amp;E Multilink. After reflashing S32K OpenSDA started to function properly again.&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Oct 2020 09:05:43 GMT</pubDate>
    <dc:creator>kef2</dc:creator>
    <dc:date>2020-10-05T09:05:43Z</dc:date>
    <item>
      <title>Flash configuration byte S32K146EVB board</title>
      <link>https://community.nxp.com/t5/S32K/Flash-configuration-byte-S32K146EVB-board/m-p/1162791#M8384</link>
      <description>&lt;P&gt;We need to protect our application from debugger intrusion.&lt;/P&gt;&lt;P&gt;So we have made a test describe below&lt;/P&gt;&lt;P&gt;Original initialisation&amp;nbsp;&lt;/P&gt;&lt;P&gt;.section .FlashConfig, "a"&lt;BR /&gt;.long 0xFFFFFFFF /* 8 bytes backdoor comparison key */&lt;BR /&gt;.long 0xFFFFFFFF /* */&lt;BR /&gt;.long 0xFFFFFFFF /* 4 bytes program flash protection bytes */&lt;BR /&gt;.long 0xFFFF7FFE /* FDPROT:FEPROT:FOPT:FSEC(0xFE = unsecured) */&lt;/P&gt;&lt;P&gt;modify as&amp;nbsp;&lt;/P&gt;&lt;P&gt;.section .FlashConfig, "a"&lt;BR /&gt;.long 0xFFFFFFFF /* 8 bytes backdoor comparison key */&lt;BR /&gt;.long 0xFFFFFFFF /* */&lt;BR /&gt;.long 0xFFFFFFFF /* 4 bytes program flash protection bytes */&lt;BR /&gt;.long 0xFFFF7FF5 /* FDPROT:FEPROT:FOPT:FSEC(0xF5 = secured) */&lt;/P&gt;&lt;P&gt;It work so well that we cannot make a mass erase with the GDB debugger using either OpenSDA nor USB multilink (setting Emergency Full chip Erase)&lt;/P&gt;&lt;P&gt;What's wrong with the configuration byte ?&lt;/P&gt;&lt;P&gt;We have 5 prototypes of ECU board with the same µc and we dont want to make this test before to be sure of the understanding configuration.&lt;/P&gt;&lt;P&gt;Thank's for your answer&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 08:10:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-configuration-byte-S32K146EVB-board/m-p/1162791#M8384</guid>
      <dc:creator>robertbecuwe</dc:creator>
      <dc:date>2020-10-05T08:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Flash configuration byte S32K146EVB board</title>
      <link>https://community.nxp.com/t5/S32K/Flash-configuration-byte-S32K146EVB-board/m-p/1162817#M8386</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your settings don't look bad for me. Using P&amp;amp;E Multilink, S32 Design Studio should automatically ask for your permission to unsecure when you try to make debug connection and debugger&amp;nbsp;finds secured S32K.&lt;/P&gt;&lt;P&gt;It is not clear, do you have this problem on some EVB or on your own prototypes?&lt;/P&gt;&lt;P&gt;I had something odd on S32K148 EVB. Perhaps security got engaged, though I didn't try to engage security using OpenSDA, but I'm not sure what really happened. Symptom was&amp;nbsp;that red EVB RESET LED was constantly on as if RESET button was pressed. With MCU RESET pin not released of course even&amp;nbsp;P&amp;amp;E Multilink couldn't connect. Hopefully&amp;nbsp;unplugging onboard OpenSDA USB cable turned RESET LED off and I was able to reprogram S32K using P&amp;amp;E Multilink. After reflashing S32K OpenSDA started to function properly again.&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 09:05:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-configuration-byte-S32K146EVB-board/m-p/1162817#M8386</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2020-10-05T09:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Flash configuration byte S32K146EVB board</title>
      <link>https://community.nxp.com/t5/S32K/Flash-configuration-byte-S32K146EVB-board/m-p/1162845#M8387</link>
      <description>&lt;P&gt;Thanks Edward for this quick answer&amp;nbsp;&lt;/P&gt;&lt;P&gt;The red reset LED goes and sometimes stay RED as you told.&lt;/P&gt;&lt;P&gt;We have not try yet with our prototypes. We are afraid to lock the board .&lt;/P&gt;&lt;P&gt;We are going to find an old 144 board to make the test with the data set.&lt;/P&gt;&lt;P&gt;My collegue told me that we had sometimes problems to link the 146EVB board (something arround the reset), a few retry before launching good.&lt;/P&gt;&lt;P&gt;Robert&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 09:40:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-configuration-byte-S32K146EVB-board/m-p/1162845#M8387</guid>
      <dc:creator>robertbecuwe</dc:creator>
      <dc:date>2020-10-05T09:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Flash configuration byte S32K146EVB board</title>
      <link>https://community.nxp.com/t5/S32K/Flash-configuration-byte-S32K146EVB-board/m-p/1162858#M8389</link>
      <description>&lt;P&gt;Hi again Edward&lt;/P&gt;&lt;P&gt;We could download a test program into a 144EVB board who turn on the big green LED&lt;/P&gt;&lt;P&gt;with the original setting, only to be sure the board was safe.&lt;/P&gt;&lt;P&gt;Then the same program with the new setting was download and the same problem appends&amp;nbsp;&lt;/P&gt;&lt;P&gt;We cannot erase the flash, and we can see that the debugger open sda or multilink try to reset the board (a flash on the green led) and after 2 flash the red reset led is definitvely red (reset)&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is may be a configuration byte false ???&lt;/P&gt;&lt;P&gt;Robert&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 10:02:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-configuration-byte-S32K146EVB-board/m-p/1162858#M8389</guid>
      <dc:creator>robertbecuwe</dc:creator>
      <dc:date>2020-10-05T10:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Flash configuration byte S32K146EVB board</title>
      <link>https://community.nxp.com/t5/S32K/Flash-configuration-byte-S32K146EVB-board/m-p/1162922#M8390</link>
      <description>&lt;P&gt;Hi Robert,&lt;/P&gt;
&lt;P&gt;Are the MCUs partitioned for CSEc?&lt;/P&gt;
&lt;P&gt;If so, the keys must be erased first, otherwise Mass Erase cannot be triggered.&lt;/P&gt;
&lt;P&gt;Please take a look at AN12130Production Flash Programming Best Practices for S32K1xxMCUs&lt;/P&gt;
&lt;P&gt;3.2.5.2 Mass erase and CSEc considerations&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12130.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12130.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 12:49:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-configuration-byte-S32K146EVB-board/m-p/1162922#M8390</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-10-05T12:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Flash configuration byte S32K146EVB board</title>
      <link>https://community.nxp.com/t5/S32K/Flash-configuration-byte-S32K146EVB-board/m-p/1162935#M8391</link>
      <description>&lt;P&gt;Thanks Daniel for reply&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course the MCU is partitioned for CSEc ?&lt;/P&gt;&lt;P&gt;I had a look on the application note AN1230 but I wonder how i can erase Keys first with the debugger.&lt;/P&gt;&lt;P&gt;The only way I see is by donwloading an application via our bootloader.*&lt;/P&gt;&lt;P&gt;Is it right&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;Robert&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 13:12:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-configuration-byte-S32K146EVB-board/m-p/1162935#M8391</guid>
      <dc:creator>robertbecuwe</dc:creator>
      <dc:date>2020-10-05T13:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Flash configuration byte S32K146EVB board</title>
      <link>https://community.nxp.com/t5/S32K/Flash-configuration-byte-S32K146EVB-board/m-p/1162960#M8392</link>
      <description>&lt;P&gt;Hi Robert,&lt;/P&gt;
&lt;P&gt;The debugger can't access the MCU anymore.&lt;/P&gt;
&lt;P&gt;If you could load an application via your bootloader that can erase the keys, that would be a solution.&lt;/P&gt;
&lt;P&gt;Or next time, you can enable the backdoor key feature and unlock the MCU from the application software.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 14:04:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-configuration-byte-S32K146EVB-board/m-p/1162960#M8392</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-10-05T14:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Flash configuration byte S32K146EVB board</title>
      <link>https://community.nxp.com/t5/S32K/Flash-configuration-byte-S32K146EVB-board/m-p/1162967#M8393</link>
      <description>&lt;P&gt;Thanks Daniel&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I think that the best way for us is to download via our canFd Bootloader a spécial application who erase key.&lt;/P&gt;&lt;P&gt;The mass erase could be done by the debuger.&lt;/P&gt;&lt;P&gt;In fact we are actually testing the erase key and it seems to work on a prototype board. We will try gradually this way and come back to this blog with result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for this kind help&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 14:24:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-configuration-byte-S32K146EVB-board/m-p/1162967#M8393</guid>
      <dc:creator>robertbecuwe</dc:creator>
      <dc:date>2020-10-05T14:24:27Z</dc:date>
    </item>
  </channel>
</rss>

