<?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>LPC MicrocontrollersのトピックRe: LPC552x: How to write CMPA to disable debug subdomains from application?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1249512#M44369</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;Unfortunately, the ISP pins are not easy accessible on our custom hardware. Therefore I cannot use them.&lt;/P&gt;&lt;P&gt;I will describe the observation in further detail. When I read back the CMPA using&amp;nbsp;FFR_GetCustomerData, it seems the CMPA is completely empty when unused before. It reads all zeros. I have written the CMPA with the disabled debug configuration and in another attempt just plain zeros that I've read back using&amp;nbsp;FFR_GetCustomerData. But when I power-cycle the LPC, it doesn't jump to the application anymore. My application in flash isn't started.&lt;/P&gt;&lt;P&gt;So the debugging interfaces are disabled, but the application isn't executed anymore after a power-cycle. It doesn't seem to jump to the application.&lt;/P&gt;&lt;P&gt;When I erase and reprogram my application using J-Flash, it is executed again.&lt;/P&gt;&lt;P&gt;My goal is to disable the debug interfaces from application code by writing SOCU_PIN and SOCU_DFLT in CMPA. Is there example code available on how to do this?&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Bas&lt;/P&gt;</description>
    <pubDate>Mon, 22 Mar 2021 09:05:09 GMT</pubDate>
    <dc:creator>bas_v</dc:creator>
    <dc:date>2021-03-22T09:05:09Z</dc:date>
    <item>
      <title>LPC552x: How to write CMPA to disable debug subdomains from application?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1248237#M44332</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are currently working with a LPC5526 and LPC5528 (both JBD64 &lt;STRONG&gt;non-S&lt;/STRONG&gt; variant) and for production purposes we want to disable debug access through SWD and ISP to prevent code readout.&lt;/P&gt;&lt;P&gt;From&amp;nbsp;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-how-to-reach-code-security-equal-to-CRP2-in-previous-LPC/m-p/1015535" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-how-to-reach-code-security-equal-to-CRP2-in-previous-LPC/m-p/1015535&lt;/A&gt;&amp;nbsp;and the user manual I understand we can write the CC_SOCU_PIN and CC_SOCU_DFLT to disable debug subdomains.&lt;/P&gt;&lt;P&gt;For this I wrote the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#define CMPA_PAGE_LENGTH (512)

// Initialize ROM API for reading CMPA
flash_config_t flashInstance;
FFR_Init(&amp;amp;flashInstance);

// Allocate memory
cmpa_cfg_info_t* cmpaPageData = (cmpa_cfg_info_t*)calloc(CMPA_PAGE_LENGTH, 1);
if (cmpaPageData != NULL) {
	// Read CMPA page back
	FFR_GetCustomerData(&amp;amp;flashInstance, (uint8_t*)cmpaPageData, 0, CMPA_PAGE_LENGTH);

	// Disable all debug subdomains by writing 1/0 for PIN/DFLT
	cmpaPageData-&amp;gt;dcfgPin =  0b1111111111;
	// Mirror the value as described in the forum post
	cmpaPageData-&amp;gt;dcfgPin |= (~cmpaPageData-&amp;gt;dcfgPin &amp;lt;&amp;lt; 16);

	cmpaPageData-&amp;gt;dcfgDflt = 0b0000000000;
	cmpaPageData-&amp;gt;dcfgDflt |= (~cmpaPageData-&amp;gt;dcfgDflt &amp;lt;&amp;lt; 16);

	// Disable ISP
	cmpaPageData-&amp;gt;bootCfg = 0b1110000;

	// Write CMPA page
	FFR_CustFactoryPageWrite(&amp;amp;flashInstance, (uint8_t*)cmpaPageData, false);

	// Free allocated memory
	free(cmpaPageData);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for this we read the content from the CMPA page back, configure the CC_SOCU registers and write the page with the modified page content.&lt;/P&gt;&lt;P&gt;Result of running this is code is that the SWD and ISP are disabled, which is good. But additionally the application that was programmed will not run after resetting the microcontroller. The FFR_GetCustomerData function returns success status.&lt;/P&gt;&lt;P&gt;Next to this, I've attempted to leave out modifying the registers and just write the result of&amp;nbsp;FFR_GetCustomerData back using&amp;nbsp;FFR_CustFactoryPageWrite. This also had the same result.&lt;/P&gt;&lt;P&gt;I cannot find any clue in the documentation why our application won't run anymore after a reset/power-cycle. Is there something I'm missing? Is there another way to write CMPA from the application?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 08:12:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1248237#M44332</guid>
      <dc:creator>bas_v</dc:creator>
      <dc:date>2021-03-22T08:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: LPC552x: How to write CMPA to disable debug subdomains from application?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1249496#M44367</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;1) Recommend make the&lt;SPAN style="left: 90px; top: 603.853px; font-size: 15px; font-family: sans-serif; transform: scaleX(0.921372);"&gt; ISP mode is enabled all the time. The ISP mode is used for testing purposes in case of &lt;/SPAN&gt;&lt;SPAN style="left: 89.9946px; top: 623.853px; font-size: 15px; font-family: sans-serif; transform: scaleX(0.914335);"&gt;a wrong configuration is loaded. There is a possibility to reload the configuration.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="left: 89.9946px; top: 623.853px; font-size: 15px; font-family: sans-serif; transform: scaleX(0.914335);"&gt;2) What about your application, what about the detail about it doesn't work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="left: 89.9946px; top: 623.853px; font-size: 15px; font-family: sans-serif; transform: scaleX(0.914335);"&gt;3) I just curious about how to read after disable debug and ISP。&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="left: 89.9946px; top: 623.853px; font-size: 15px; font-family: sans-serif; transform: scaleX(0.914335);"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="left: 89.9946px; top: 623.853px; font-size: 15px; font-family: sans-serif; transform: scaleX(0.914335);"&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 08:43:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1249496#M44367</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-03-22T08:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC552x: How to write CMPA to disable debug subdomains from application?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1249512#M44369</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;Unfortunately, the ISP pins are not easy accessible on our custom hardware. Therefore I cannot use them.&lt;/P&gt;&lt;P&gt;I will describe the observation in further detail. When I read back the CMPA using&amp;nbsp;FFR_GetCustomerData, it seems the CMPA is completely empty when unused before. It reads all zeros. I have written the CMPA with the disabled debug configuration and in another attempt just plain zeros that I've read back using&amp;nbsp;FFR_GetCustomerData. But when I power-cycle the LPC, it doesn't jump to the application anymore. My application in flash isn't started.&lt;/P&gt;&lt;P&gt;So the debugging interfaces are disabled, but the application isn't executed anymore after a power-cycle. It doesn't seem to jump to the application.&lt;/P&gt;&lt;P&gt;When I erase and reprogram my application using J-Flash, it is executed again.&lt;/P&gt;&lt;P&gt;My goal is to disable the debug interfaces from application code by writing SOCU_PIN and SOCU_DFLT in CMPA. Is there example code available on how to do this?&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Bas&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 09:05:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1249512#M44369</guid>
      <dc:creator>bas_v</dc:creator>
      <dc:date>2021-03-22T09:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC552x: How to write CMPA to disable debug subdomains from application?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1250457#M44404</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have attempted the following code on an EVK with LPC55S28 to write CMPA with plain zeros. After this, the whole micro seems to be bricked. I cannot access the ISP interface anymore, nor the application runs or SWD works.&lt;/P&gt;&lt;PRE&gt;#define CMPA_PAGE_LENGTH (512)&lt;BR /&gt;&lt;BR /&gt;// Initialize ROM API for reading CMPA&lt;BR /&gt;flash_config_t flashInstance;&lt;BR /&gt;FFR_Init(&amp;amp;flashInstance);&lt;BR /&gt;&lt;BR /&gt;// Allocate memory&lt;BR /&gt;cmpa_cfg_info_t* cmpaPageData = (cmpa_cfg_info_t*)calloc(CMPA_PAGE_LENGTH, 1);&lt;BR /&gt;if (cmpaPageData != NULL) {&lt;BR /&gt;    // Read CMPA page back&lt;BR /&gt;    FFR_GetCustomerData(&amp;amp;flashInstance, (uint8_t*)cmpaPageData, 0, CMPA_PAGE_LENGTH);&lt;BR /&gt;&lt;BR /&gt;    // Write CMPA page&lt;BR /&gt;    FFR_CustFactoryPageWrite(&amp;amp;flashInstance, (uint8_t*)cmpaPageData, false);&lt;BR /&gt;&lt;BR /&gt;    // Free allocated memory&lt;BR /&gt;    free(cmpaPageData);&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;We are doing something wrong here. Could you provide an example to write CMPA from application code? What are we missing?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 13:11:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1250457#M44404</guid>
      <dc:creator>bas_v</dc:creator>
      <dc:date>2021-03-23T13:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: LPC552x: How to write CMPA to disable debug subdomains from application?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1251051#M44413</link>
      <description>&lt;P&gt;This implementation was also tested with a SDK example project resulting the same outcome. Please find the project attached.&lt;/P&gt;&lt;P&gt;Simply reading the CMPA page and write the same page back seems to brick the micro. Any ideas what we are doing wrong here?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 08:44:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1251051#M44413</guid>
      <dc:creator>Erik_M</dc:creator>
      <dc:date>2021-03-24T08:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPC552x: How to write CMPA to disable debug subdomains from application?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1251526#M44421</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/184670"&gt;@bas_v&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/184899"&gt;@Erik_M&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks&amp;nbsp; for providing us your additional inputs.&lt;/P&gt;
&lt;P&gt;Currently we are working in this. We have seen that there is a internal ticket with the same inquiries with a representant of yours. He let me know that&amp;nbsp; we could continue through the ticket. After having a resolution we could publish here in the forum.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Diego.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 19:01:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1251526#M44421</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2021-03-24T19:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: LPC552x: How to write CMPA to disable debug subdomains from application?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1257374#M44534</link>
      <description>&lt;P&gt;For those who are interested; see the attached example to see how to write the CMPA page correctly.&lt;/P&gt;&lt;P&gt;With this example you are able to enable/disable flash protect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 14:33:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1257374#M44534</guid>
      <dc:creator>Erik_M</dc:creator>
      <dc:date>2021-04-06T14:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPC552x: How to write CMPA to disable debug subdomains from application?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1257705#M44543</link>
      <description>&lt;P&gt;An important note is that because of the&amp;nbsp;&lt;STRONG&gt;flash&lt;/STRONG&gt; operations being performed, the system clock needs to be&amp;nbsp;&lt;STRONG&gt;below 100 MHz&lt;/STRONG&gt;.&lt;BR /&gt;This is one of the things we ran into while using this code.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 06:33:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1257705#M44543</guid>
      <dc:creator>airios_arno</dc:creator>
      <dc:date>2021-04-07T06:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: LPC552x: How to write CMPA to disable debug subdomains from application?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1413863#M47912</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I was trying to enable flash protect on LPC55s28 with the solution marked as working from Erik_M and after reset I am unable to connect to the board, but the board runs correctly (I can see that on the UART output). This is the debugger output when trying to connect:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paplewski_1-1644949640880.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/170615iDC617D424A16B563/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paplewski_1-1644949640880.png" alt="paplewski_1-1644949640880.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Output from the UART suggests that the CMPA page was written correctly:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paplewski_2-1644950213853.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/170617i775A8AF3F74733E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paplewski_2-1644950213853.png" alt="paplewski_2-1644950213853.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;On the other hand I've previously tried the code from original poster bas_v on custom hardware with LPC5528 it seems to be bricked after reset (on output on the UART, no LED turns on)...&lt;/P&gt;&lt;P&gt;Could you please help me with enabling the flash protection on these platforms?? Also is there a way to recover access any of this boards?&lt;/P&gt;&lt;P&gt;Output from the Jlink commander for LPC5528:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;SEGGER J-Link Commander V7.60c (Compiled Jan 7 2022 16:15:01)&lt;BR /&gt;DLL version V7.60c, compiled Jan 7 2022 16:13:45&lt;/P&gt;&lt;P&gt;Connecting to J-Link via USB...O.K.&lt;BR /&gt;Firmware: J-Link V11 compiled Dec 9 2021 14:14:49&lt;BR /&gt;Hardware version: V11.00&lt;BR /&gt;S/N: 601012298&lt;BR /&gt;License(s): RDI, FlashBP, FlashDL, JFlash, GDB&lt;BR /&gt;USB speed mode: High speed (480 MBit/s)&lt;BR /&gt;VTref=2.806V&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Type "connect" to establish a target connection, '?' for help&lt;BR /&gt;J-Link&amp;gt;connect&lt;BR /&gt;Please specify device / core. &amp;lt;Default&amp;gt;: LPC5528&lt;BR /&gt;Type '?' for selection dialog&lt;BR /&gt;Device&amp;gt;&lt;BR /&gt;Please specify target interface:&lt;BR /&gt;J) JTAG (Default)&lt;BR /&gt;S) SWD&lt;BR /&gt;T) cJTAG&lt;BR /&gt;TIF&amp;gt;s&lt;BR /&gt;Specify target interface speed [kHz]. &amp;lt;Default&amp;gt;: 4000 kHz&lt;BR /&gt;Speed&amp;gt;&lt;BR /&gt;Device "LPC5528" selected.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Connecting to target via SWD&lt;BR /&gt;ConfigTargetSettings() start&lt;BR /&gt;Disabling flash programming optimizations: Compare, SkipBlankDataOnProg&lt;BR /&gt;ConfigTargetSettings() end&lt;BR /&gt;InitTarget() start&lt;BR /&gt;Enabling debug access failed (timeout).&lt;BR /&gt;InitTarget() end&lt;BR /&gt;ConfigTargetSettings() start&lt;BR /&gt;Disabling flash programming optimizations: Compare, SkipBlankDataOnProg&lt;BR /&gt;ConfigTargetSettings() end&lt;BR /&gt;InitTarget() start&lt;BR /&gt;Enabling debug access failed (timeout).&lt;BR /&gt;InitTarget() end&lt;BR /&gt;ConfigTargetSettings() start&lt;BR /&gt;Disabling flash programming optimizations: Compare, SkipBlankDataOnProg&lt;BR /&gt;ConfigTargetSettings() end&lt;BR /&gt;InitTarget() start&lt;BR /&gt;ERROR: Wrong DM-AP IDCODE detected: 0xFFFFFFFF&lt;BR /&gt;InitTarget() end&lt;BR /&gt;ConfigTargetSettings() start&lt;BR /&gt;Disabling flash programming optimizations: Compare, SkipBlankDataOnProg&lt;BR /&gt;ConfigTargetSettings() end&lt;BR /&gt;InitTarget() start&lt;BR /&gt;Enabling debug access failed (timeout).&lt;BR /&gt;InitTarget() end&lt;BR /&gt;Cannot connect to target.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 15 Feb 2022 18:37:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1413863#M47912</guid>
      <dc:creator>paplewski</dc:creator>
      <dc:date>2022-02-15T18:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: LPC552x: How to write CMPA to disable debug subdomains from application?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1426564#M48179</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/195902"&gt;@paplewski&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am very sorry that we missed your post! When the threads gets old (more than 7 weeks )&amp;nbsp; new replies&amp;nbsp; could not arrive directly&amp;nbsp; into email inbox.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding :&amp;nbsp;&lt;STRONG&gt;Also is there a way to recover access any of this boards?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;You provided a&amp;nbsp; failed output from the&amp;nbsp;&lt;SPAN&gt;Output from the J-link commander, but was ISP disabled?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;if the MCU has SWD and ISP&amp;nbsp; disabled it can be permanently bricked, or can not be unlocked from the outside world. Unless you try to recover it with an 1-bit SPI Flash memory as described in the user manual, but this&amp;nbsp; recovery method needs to be enabled before hand in the PFR.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regarding &lt;STRONG&gt;:&amp;nbsp;Could you please help me with enabling the flash protection on these platforms?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I tested the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;solution marked by Erik_M&lt;/SPAN&gt;&amp;nbsp;published from my end, one of my colleagues provide us with demo software. You should be fine to enabled and disabled ISP from application. However , are you looking for another permanent&amp;nbsp; or wanting to make it permanent?&lt;/P&gt;
&lt;P&gt;Best regards,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Diego.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 05:23:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/1426564#M48179</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2022-03-11T05:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC552x: How to write CMPA to disable debug subdomains from application?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/2318879#M59391</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/89833"&gt;@diego_charles&lt;/a&gt;,&lt;/P&gt;&lt;P class=""&gt;I am experiencing the same issue. Could you please confirm whether the internal ticket has been resolved?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HRABI.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 07:44:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/m-p/2318879#M59391</guid>
      <dc:creator>ahmedhrabi</dc:creator>
      <dc:date>2026-02-17T07:44:58Z</dc:date>
    </item>
  </channel>
</rss>

