<?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のトピックS32K142 FSEC set using cmm script</title>
    <link>https://community.nxp.com/t5/S32K/S32K142-FSEC-set-using-cmm-script/m-p/2364473#M58533</link>
    <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;We are using the S32K142 in our project with the bootloader and application as separate builds, but sharing a common startup file. We would like to lock the debug ports using a TRACE32 (.cmm) script by programming the FSEC register with the MEEN bit enabled.&lt;/FONT&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Is it possible to modify/program the FSEC configuration using a .cmm script after bootloader and application flashing is completed? &lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Also, is there any restriction on performing a reset after loading the firmware for the FSEC changes to take effect? &lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Do you have an example/reference .cmm script that can be used to implement this (FSEC programming with MEEN enabled) on S32K142 and also to perform mass erase?&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Wed, 13 May 2026 04:30:11 GMT</pubDate>
    <dc:creator>Venk_1</dc:creator>
    <dc:date>2026-05-13T04:30:11Z</dc:date>
    <item>
      <title>S32K142 FSEC set using cmm script</title>
      <link>https://community.nxp.com/t5/S32K/S32K142-FSEC-set-using-cmm-script/m-p/2364473#M58533</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;We are using the S32K142 in our project with the bootloader and application as separate builds, but sharing a common startup file. We would like to lock the debug ports using a TRACE32 (.cmm) script by programming the FSEC register with the MEEN bit enabled.&lt;/FONT&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Is it possible to modify/program the FSEC configuration using a .cmm script after bootloader and application flashing is completed? &lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Also, is there any restriction on performing a reset after loading the firmware for the FSEC changes to take effect? &lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Do you have an example/reference .cmm script that can be used to implement this (FSEC programming with MEEN enabled) on S32K142 and also to perform mass erase?&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 13 May 2026 04:30:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K142-FSEC-set-using-cmm-script/m-p/2364473#M58533</guid>
      <dc:creator>Venk_1</dc:creator>
      <dc:date>2026-05-13T04:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: S32K142 FSEC set using cmm script</title>
      <link>https://community.nxp.com/t5/S32K/S32K142-FSEC-set-using-cmm-script/m-p/2364877#M58548</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/262687"&gt;@Venk_1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The cmm scripts can be used for whatever you want, there are endless possibilities. Yes, you can modify the FSEC. Take a look at beginning of this file, there's a description how to use this default programming script:&lt;/P&gt;
&lt;P&gt;c:\T32\demo\arm\flash\s32k.cmm&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then it can be as simple as this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DO ~~/demo/arm/flash/s32k PREPAREONLY CPU=S32K142&lt;/P&gt;
&lt;P&gt;flash.auto.all /CENSORSHIP&lt;BR /&gt;Data.Set SD:0x40C %LE 0xFE&lt;BR /&gt;flash.auto.off&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notice that flash configuration field is protected against unwanted modification. It's necessary to use parameter "/CENSORSHIP" as shown above to remove the protection. This is a feature of this programming script, it is not feature of the MCU.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this example, default "unsecured" value 0xFE is written to FSEC at 0x40C. You can modify it to required value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are not restriction related to reset. Yes, reset is needed to activate new FSEC configuration.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For mass erase, use this command:&lt;/P&gt;
&lt;P&gt;flash.UNSECUREerase&lt;/P&gt;
&lt;P&gt;But if CSEc is enabled, it won't work. It is necessary to erase the keys first.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Luksa&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 11:49:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K142-FSEC-set-using-cmm-script/m-p/2364877#M58548</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2026-05-13T11:49:01Z</dc:date>
    </item>
  </channel>
</rss>

