<?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: LPC55S69:Write CMPA bricks the chip</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1597871#M51611</link>
    <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;I write bootcfg related cmpa page (512bytes) all 0. I can access SWD and ISP without issue. Please have a try.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2023 05:58:27 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2023-02-13T05:58:27Z</dc:date>
    <item>
      <title>LPC55S69:Write CMPA bricks the chip</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1596095#M51575</link>
      <description>&lt;P&gt;I wrote some codes to try to read back CMPA, then change its bootcfg, then write it back. However, it bricks chip. Now chip does not responds to DAP and USB ISP is not working.&lt;/P&gt;&lt;P&gt;Program codes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#include "flash.h"

#include "fsl_iap.h"
#include "fsl_iap_ffr.h"

#define FLASH_BL3_START_ADDR 0x10008000
#define FLASH_BL3_SIZE 0x18000

static flash_config_t flashInstance;
static flash_config_t ffr_instance;
static cfpa_cfg_info_t cfpa_data;
static cmpa_cfg_info_t cmpa_data;

void flash_init(void)
{
	status_t status;
	if ((status=FLASH_Init(&amp;amp;flashInstance) )!= kStatus_Success)
	{
		printf("Flash init failed,Error Code:%lu\r\n", status);
	}
	if ((status=FFR_Init(&amp;amp;ffr_instance)) != kStatus_Success)
	{
		printf("FFR init failed,Error Code:%lu\r\n",status);
	}
	//read cfpa to sram
	if ((status=flash_read_cfpa()) != kStatus_Success)
	{
		printf("CFPA cannot read,Error Code:%lu\r\n", status);
	}
	if ((status=flash_read_cmpa()) != kStatus_Success)
	{
		printf("CMPA cannot read,Error Code:%lu\r\n", status);
	}
	if (cmpa_data.bootCfg != 0x88000300)
	{
		printf("CMPA Bootcfg not match,program it\r\n");
		cmpa_data.bootCfg = 0x88000300;
		if ((status = flash_program_CMPA()) != kStatus_Success)
		{
			printf("CMPA cannot write,Error Code:%lu\r\n", status);
		}
	}
	printf("Secure FW Min Version:%lu, Non-Secure FW Min Version:%lu\r\n",
		cfpa_data.secureFwVersion, 
		cfpa_data.nsFwVersion);
	
}

status_t flash_erase_BL3(void)
{
	return FLASH_Erase(&amp;amp;flashInstance, FLASH_BL3_START_ADDR, FLASH_BL3_SIZE, kFLASH_ApiEraseKey);
}

status_t flash_verify_erase(void)
{
	return FLASH_VerifyErase(&amp;amp;flashInstance, FLASH_BL3_START_ADDR, FLASH_BL3_SIZE);
}

status_t flash_program(uint32_t flash_addr, void *pData, uint32_t len)
{
	return FLASH_Program(&amp;amp;flashInstance, flash_addr, pData, len);
}

status_t flash_read_cfpa(void)
{
	return FFR_GetCustomerInfieldData(&amp;amp;ffr_instance, (uint8_t*)&amp;amp;cfpa_data, 0, sizeof(cfpa_data));
}
status_t flash_read_cmpa(void)
{
	return FFR_GetCustomerData(&amp;amp;ffr_instance, (uint8_t*)&amp;amp;cmpa_data, 0, sizeof(cmpa_data));
}
status_t flash_program_CMPA(void)
{
	return FFR_CustFactoryPageWrite(&amp;amp;ffr_instance, (uint8_t *)&amp;amp;cmpa_data, false);
}&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;I could read back both CMPA and CFPA, all zeros inside these structures, then I added codes to program CMPA, the chip bricks. I want the chip be able to boot to ISP with USBFS.&lt;/P&gt;&lt;P&gt;I checked the settings with MCUXpresso secure provisioning, I don't think I setup the wrong boot cfg&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Halry_0-1675908707609.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/210209iCD08A77CFF073F93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Halry_0-1675908707609.png" alt="Halry_0-1675908707609.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 02:13:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1596095#M51575</guid>
      <dc:creator>Halry</dc:creator>
      <dc:date>2023-02-09T02:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69:Write CMPA bricks the chip</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1597359#M51598</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Halry&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can read/write internal flash via either ISP or SWD.&lt;/P&gt;
&lt;P&gt;You wrote&amp;nbsp;&lt;SPAN&gt;bootcfg, it may disable ISP.&amp;nbsp; It's normal you can't work with ISP USB any more.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please make sure SWD interface is enabled, becuase the only way to re-enable ISP is to mass erase Flash via SWD interface.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; Please make sure you didn't write SOCU_PIN and SOCU_DFLT in cmpa. It they are not 11, SWD disabled. Thus you can't access SWD.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZhangJennie_0-1676035479421.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/210485i3C4FDEEF0BB1CBDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZhangJennie_0-1676035479421.png" alt="ZhangJennie_0-1676035479421.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If both ISP and SWD are disabled, and you didn't use debug authentication feature, the part can't be recover any more.&lt;/P&gt;
&lt;P&gt;Have a nice day,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 13:29:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1597359#M51598</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2023-02-10T13:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69:Write CMPA bricks the chip</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1597722#M51606</link>
      <description>&lt;P&gt;Thanks. My fault, I should notice this inside the datasheet. However, when I read the CMPA back when the chip is in the initial state from whether secure provision program and bootloader inside the chip, it shows 0, which I think should be described more clearly inside the reference manual that if touching the CMPA, user should take care of these registers as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;After change&amp;nbsp;&lt;SPAN&gt;SOCU_PIN to 0xfd0002ff and&amp;nbsp;SOCU_DFLT to&amp;nbsp;0xfd0002ff in CMPA, writing to the CMPA still brick the chip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I only add some codes that change data about CMPA&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;cm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N&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Secure provision program provides the values of CC_SOCU&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Halry_0-1676191564925.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/210566iFCEAFCF30B529E14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Halry_0-1676191564925.png" alt="Halry_0-1676191564925.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe I need to change CFPA as well?&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 08:46:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1597722#M51606</guid>
      <dc:creator>Halry</dc:creator>
      <dc:date>2023-02-12T08:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69:Write CMPA bricks the chip</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1597871#M51611</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;I write bootcfg related cmpa page (512bytes) all 0. I can access SWD and ISP without issue. Please have a try.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 05:58:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1597871#M51611</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2023-02-13T05:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69:Write CMPA bricks the chip</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1597876#M51612</link>
      <description>&lt;P&gt;But I want to change the bootcfg to use USB FS for ISP and 96Mhz FRO.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;According your description, I setup the CC_SOCU_PIN(9E410) and CC_SOCU_DFLT(9E414) as well in CMPA to try to avoid to brick the chip. However the chip still bricks after writing to CMPA. Cannot boot to ISP anymore. Can you try to write a program to program the chip's CMPA and still leave the debugging enable?&lt;/P&gt;&lt;P&gt;I saw secure provision program will program CFPA when build a sb package. Do I also need to change&amp;nbsp;DCFG_CC_SOCU_NS_PIN(9de20) and&amp;nbsp;DCFG_CC_SOCU_NS_DFLT(9de24) and write them to CFPA?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 06:12:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1597876#M51612</guid>
      <dc:creator>Halry</dc:creator>
      <dc:date>2023-02-13T06:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69:Write CMPA bricks the chip</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1598661#M51628</link>
      <description>&lt;P&gt;I just used secure provision program to program cfpa only, it still locks me out from debugging and ISP.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Halry_0-1676359178809.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/210797iDA4517DF274EB1CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Halry_0-1676359178809.png" alt="Halry_0-1676359178809.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the logs from secure provision program:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Write script created: (workspace)/gen_scripts\write_cfpa_win.bat&lt;BR /&gt;Executing script C:\Users\liang\secure_provisioning00\gen_scripts\write_cfpa_win.bat&lt;BR /&gt;### SCRIPT: Write user configuration to processor: C:\Users\liang\secure_provisioning00\gen_scripts\write_cfpa_win.bat&lt;BR /&gt;### Create CFPA page - binary ###&lt;BR /&gt;C:\nxp\MCUX_Provi_v5\bin\tools\spsdk\pfr.exe generate-binary -c "C:\Users\liang\secure_provisioning00\gen_sb\cfpa.json" -o "C:\Users\liang\secure_provisioning00\gen_sb\cfpa.bin"&lt;BR /&gt;WARNING:spsdk.pfr.pfr:The silicon revision is not specified, the latest: '1b' has been used.&lt;BR /&gt;### Check connection ###&lt;BR /&gt;blhost -t 2000 -u 0x1FC9,0x0021 -j -- get-property 1 0&lt;BR /&gt;{&lt;BR /&gt;"command": "get-property",&lt;BR /&gt;"response": [&lt;BR /&gt;1258487808&lt;BR /&gt;],&lt;BR /&gt;"status": {&lt;BR /&gt;"description": "0 (0x0) Success.",&lt;BR /&gt;"value": 0&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;blhost succeeded&lt;BR /&gt;### Write Customer Field Programmable Area [CFPA] ###&lt;BR /&gt;blhost -t 5000 -u 0x1FC9,0x0021 -j -- write-memory 0x0009DE00 "C:\Users\liang\secure_provisioning00\gen_sb\cfpa.bin"&lt;BR /&gt;{&lt;BR /&gt;"command": "write-memory",&lt;BR /&gt;"response": [&lt;BR /&gt;512&lt;BR /&gt;],&lt;BR /&gt;"status": {&lt;BR /&gt;"description": "0 (0x0) Success.",&lt;BR /&gt;"value": 0&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;blhost succeeded&lt;/P&gt;&lt;P&gt;### RESULT of the script `Write user configuration to processor`: SUCCESS (return code = [0]SUCCESS)&lt;BR /&gt;Status of the operation: SUCCESS : Write user configuration to processor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 07:26:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1598661#M51628</guid>
      <dc:creator>Halry</dc:creator>
      <dc:date>2023-02-14T07:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69:Write CMPA bricks the chip</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1599294#M51637</link>
      <description>&lt;P&gt;I asked you to&amp;nbsp;&lt;SPAN&gt;write bootcfg related cmpa page (512bytes) all 0. This is just to test if your chip can be recovered to normal. If this works, you can test other features on your requirement.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 05:14:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1599294#M51637</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2023-02-15T05:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69:Write CMPA bricks the chip</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1599494#M51646</link>
      <description>&lt;P&gt;I can't access the chip anymore via SWD or ISP if I write all zero to CMPA with PFR Flash API.&lt;/P&gt;&lt;P&gt;I can use elftosb-gui to provision CMPA and PUF without problem. And then I can use secure provision program to write the bootcfg area, and it works. But I can't change bootcfg using PFR flash api.&lt;/P&gt;&lt;P&gt;And weirdly, I have read what secure provision program had written to CMPA about DCFG_SOC, it is all zero. But it still works.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Halry_1-1676453186949.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/210991iD3EA1CFDEC9C9D21/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Halry_1-1676453186949.png" alt="Halry_1-1676453186949.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Inside the firmware:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Halry_2-1676453230251.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/210992i304A8807D5213A89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Halry_2-1676453230251.png" alt="Halry_2-1676453230251.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems PFR flash api has some problems with it, or maybe I don't configure it correctly? I can't find an example in the SDK archive. The SDK version I am using is 2.13.0. Like the code that I have provided, all I have touched is the bootcfg, so why secure provision program or elftosb-gui can write only the bootcfg but I can't do it in firmware.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 09:34:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1599494#M51646</guid>
      <dc:creator>Halry</dc:creator>
      <dc:date>2023-02-15T09:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69:Write CMPA bricks the chip</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1604887#M51710</link>
      <description>&lt;P&gt;Hello, is there any result that i can get? Have been nearly a week. I don’t have too much chip to let me brick but i still can’t utilize the PFR flash api correctly.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 01:32:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1604887#M51710</guid>
      <dc:creator>Halry</dc:creator>
      <dc:date>2023-02-24T01:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69:Write CMPA bricks the chip</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1608274#M51782</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;In ISP mode, please erase cmpa, cfpa,keystore&amp;nbsp;&lt;SPAN&gt;insequence.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;the commands are&lt;/P&gt;
&lt;P&gt;blhost.exe -p com24 -- write-memory 0x9e400 cmpa_zero.bin&lt;/P&gt;
&lt;P&gt;blhost.exe -p com24 -j -- write-memory 0x9de00 cfpa_new.bin&lt;/P&gt;
&lt;P&gt;blhost.exe -p com24 -j -- write-memory 0x9e600 zero_keystore.bin&lt;/P&gt;
&lt;P&gt;The related files are attached.&lt;/P&gt;
&lt;P&gt;We tested it, the board can be recovered to normal.&lt;/P&gt;
&lt;P&gt;Have a nice day,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 09:42:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1608274#M51782</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2023-03-02T09:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69:Write CMPA bricks the chip</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1608855#M51794</link>
      <description>&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;But writing to PFR using flash API still not working. Can you provide me an example? I can't find example in SDK example folder.&lt;/P&gt;&lt;P&gt;And I can't put the chip into ISP mode anymore if I use PFR flash API to write CMPA or CFPA (via USB, USB not enumerate at all. And I try to use UART but chip not respond). But I can use secure provision program to write CMPA and CFPA successfully after chip provisioned by elftosb.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 03:13:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1608855#M51794</guid>
      <dc:creator>Halry</dc:creator>
      <dc:date>2023-03-03T03:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69:Write CMPA bricks the chip</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1609852#M51812</link>
      <description>&lt;P&gt;Please recover CMPA,CFPA in ISP mode with setting PIO0_5 pin low.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZhangJennie_0-1678091266536.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/213264iA746D81B879C563E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZhangJennie_0-1678091266536.png" alt="ZhangJennie_0-1678091266536.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the blhost commands were listed above.&lt;/P&gt;
&lt;P&gt;Then using blhost to erase CMPA,CFPA and keystore.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 08:32:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Write-CMPA-bricks-the-chip/m-p/1609852#M51812</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2023-03-06T08:32:52Z</dc:date>
    </item>
  </channel>
</rss>

