<?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 LPC5534 cannot write CMPA for CAN_BAUD_RATE config in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5534-cannot-write-CMPA-for-CAN-BAUD-RATE-config/m-p/2104879#M58233</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;We are currently struggling to write CMPA to fix the CAN_BAUD for the bootloader. Accessing through ISP and "get-property", "flash-image" and "flash-erase-all" work fine, but when trying to perform a "write-memory" on the CMPA region it fails with invalid_argument:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;gt;&amp;gt;blhost -p COM3 get-property 1
Ping responded in 1 attempt(s)
Inject command 'get-property'
Response status = 0 (0x0) Success.
Response word 1 = 1258488064 (0x4b030100)
Current Version = K3.1.0

&amp;gt;&amp;gt;blhost -p COM3 write-memory 0x3E204 {{00}}
Ping responded in 1 attempt(s)
Inject command 'write-memory'
Successful generic response to command 'write-memory'
(1/1)100% Completed!
Response status = 4 (0x4) kStatus_InvalidArgument
Wrote 1 of 1 bytes.

&amp;gt;&amp;gt;blhost -p COM3 write-memory 0x3E204 {{00040000}}
Ping responded in 1 attempt(s)
Inject command 'write-memory'
Successful generic response to command 'write-memory'
(1/1)100% Completed!
Response status = 4 (0x4) kStatus_InvalidArgument
Wrote 4 of 4 bytes.&lt;/LI-CODE&gt;&lt;P&gt;Trying to write anything will always read back "00"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any hints why it won't work? Thanks in advance and kind regards!&lt;/P&gt;</description>
    <pubDate>Tue, 27 May 2025 06:11:14 GMT</pubDate>
    <dc:creator>briandavidson1</dc:creator>
    <dc:date>2025-05-27T06:11:14Z</dc:date>
    <item>
      <title>LPC5534 cannot write CMPA for CAN_BAUD_RATE config</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5534-cannot-write-CMPA-for-CAN-BAUD-RATE-config/m-p/2104879#M58233</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;We are currently struggling to write CMPA to fix the CAN_BAUD for the bootloader. Accessing through ISP and "get-property", "flash-image" and "flash-erase-all" work fine, but when trying to perform a "write-memory" on the CMPA region it fails with invalid_argument:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;gt;&amp;gt;blhost -p COM3 get-property 1
Ping responded in 1 attempt(s)
Inject command 'get-property'
Response status = 0 (0x0) Success.
Response word 1 = 1258488064 (0x4b030100)
Current Version = K3.1.0

&amp;gt;&amp;gt;blhost -p COM3 write-memory 0x3E204 {{00}}
Ping responded in 1 attempt(s)
Inject command 'write-memory'
Successful generic response to command 'write-memory'
(1/1)100% Completed!
Response status = 4 (0x4) kStatus_InvalidArgument
Wrote 1 of 1 bytes.

&amp;gt;&amp;gt;blhost -p COM3 write-memory 0x3E204 {{00040000}}
Ping responded in 1 attempt(s)
Inject command 'write-memory'
Successful generic response to command 'write-memory'
(1/1)100% Completed!
Response status = 4 (0x4) kStatus_InvalidArgument
Wrote 4 of 4 bytes.&lt;/LI-CODE&gt;&lt;P&gt;Trying to write anything will always read back "00"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any hints why it won't work? Thanks in advance and kind regards!&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 06:11:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5534-cannot-write-CMPA-for-CAN-BAUD-RATE-config/m-p/2104879#M58233</guid>
      <dc:creator>briandavidson1</dc:creator>
      <dc:date>2025-05-27T06:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5534 cannot write CMPA for CAN_BAUD_RATE config</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5534-cannot-write-CMPA-for-CAN-BAUD-RATE-config/m-p/2105275#M58237</link>
      <description>&lt;P&gt;OK, I think I finally found a solution. It looks like the CMPA has to be written as a single block.&lt;/P&gt;&lt;LI-CODE lang="c"&gt; blhost -p COM3 write-memory 0x3E200 cmpa.bin&lt;/LI-CODE&gt;&lt;P&gt;Works even though only a single bit is changed. I think it should be mentioned somewhere that it is not possible to write bytes or words to CMPA. Ideally, blhost should automatically perform a read-modify-write operation in such cases...&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 11:47:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5534-cannot-write-CMPA-for-CAN-BAUD-RATE-config/m-p/2105275#M58237</guid>
      <dc:creator>briandavidson1</dc:creator>
      <dc:date>2025-05-27T11:47:50Z</dc:date>
    </item>
  </channel>
</rss>

