<?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: S32K148 Secured? in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/S32K148-Secured/m-p/1056388#M6266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer and all the information.&lt;/P&gt;&lt;P&gt;The unlock was successfull.&lt;/P&gt;&lt;P&gt;Now I will investigate in the first point about the Flash configuration field.&lt;BR /&gt;Because I never intended to write in these fields. I have checked the address 0x400 after my program did the write and read the on the flash, but these registers did not changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2020 09:11:58 GMT</pubDate>
    <dc:creator>EE_CW</dc:creator>
    <dc:date>2020-05-14T09:11:58Z</dc:date>
    <item>
      <title>S32K148 Secured?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K148-Secured/m-p/1056386#M6264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi together&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have prototype board, where we use a S32K148.&lt;/P&gt;&lt;P&gt;I tried the flash partitioning example and made my own out of this (see attachment).&lt;/P&gt;&lt;P&gt;This worked fined a few times, always with changing the code and flash it onto the MCU.&lt;/P&gt;&lt;P&gt;After then I disconnected the supply to check if the written value written remain in the Flash orrectly.&lt;/P&gt;&lt;P&gt;After trying to flash a new programm onto the MCU, the following message showed up:&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/58533i5C9C94CE1BD467D8/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;/P&gt;&lt;P&gt;It doesn't matter if I choose YES or NO, I can no longer connect to MCU.&lt;/P&gt;&lt;P&gt;Even if I try to connect by J-Link directly, I'm not able to connect to the MCC and this Message always shows up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because of this problem I checked the community. I found another question, but there is another MCU involved (&lt;A href="https://community.nxp.com/thread/394610"&gt;TWR-K65F180M board unintentionally secured)&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Reset pin shows a saw tooth signal. We had the problem of the saw tooth signal once, but with flashing by J-Link this could be solved. But not so this time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Situation brings up some questions for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to unsecure the MCU?&lt;/P&gt;&lt;P&gt;Where are the setting in S32DS to secure or ensecure a MCU after flashing (used for production)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanky for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2020 11:56:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K148-Secured/m-p/1056386#M6264</guid>
      <dc:creator>EE_CW</dc:creator>
      <dc:date>2020-05-07T11:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 Secured?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K148-Secured/m-p/1056387#M6265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mario,&lt;/P&gt;&lt;P&gt;Please refer to&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12130.pdf"&gt;AN12130 Production Flash Programming Best Practices for S32K1xx MCUs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;4.1 Flash configuration field&lt;/P&gt;&lt;P&gt;4.3 Secured part&lt;/P&gt;&lt;P&gt;5 Common problems&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In S32DS, the flash configuration filed is initialized in the Startup_S32K148.S file at 0x400 - 0x410 (S32K1xx_flash.ld)&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/106339i9359D059BD3DE749/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;and loaded from the Flash configuration field to the FSEC[SEC] register out of reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the MCU is secure, the debugger can still access the MDM_AP Status and Control registers.&lt;/P&gt;&lt;P&gt;S32K1xx RM rev12, Section 58.6 MDM-AP status and control registers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AN12120,&lt;/P&gt;&lt;P&gt;3.1.1 SWD connection steps&lt;/P&gt;&lt;P&gt;3.2.1.1 SWD mass erase&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can follow the connection steps in J-link commander using the commands from this thread:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/1166947?commentID=1166947#comment-1166947" title="https://community.nxp.com/message/1166947?commentID=1166947#comment-1166947"&gt;https://community.nxp.com/message/1166947?commentID=1166947#comment-1166947&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And use the "unlock Kinetis" command to trigger the SWD mass erase operation while the MCU is held in reset (connect PTA5 reset_b to VSS).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2020 14:20:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K148-Secured/m-p/1056387#M6265</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-05-12T14:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 Secured?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K148-Secured/m-p/1056388#M6266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer and all the information.&lt;/P&gt;&lt;P&gt;The unlock was successfull.&lt;/P&gt;&lt;P&gt;Now I will investigate in the first point about the Flash configuration field.&lt;BR /&gt;Because I never intended to write in these fields. I have checked the address 0x400 after my program did the write and read the on the flash, but these registers did not changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 09:11:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K148-Secured/m-p/1056388#M6266</guid>
      <dc:creator>EE_CW</dc:creator>
      <dc:date>2020-05-14T09:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 Secured?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K148-Secured/m-p/1191623#M7036</link>
      <description>&lt;P&gt;Can you explain me how you solved your problem because i also having the same problem but with S32K144.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 12:41:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K148-Secured/m-p/1191623#M7036</guid>
      <dc:creator>sandeepsandeepk</dc:creator>
      <dc:date>2020-12-01T12:41:03Z</dc:date>
    </item>
  </channel>
</rss>

