<?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 Issue operate FRDM-MCXN236 Flash via SWD with Custom Programmer in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/Issue-operate-FRDM-MCXN236-Flash-via-SWD-with-Custom-Programmer/m-p/2071875#M2833</link>
    <description>&lt;DIV&gt;&lt;SPAN&gt;I'm having trouble operating the flash memory on the FRDM-MCXN236 board using my custom SWD programmer. I'm following the procedure outlined in AN14178 to operate the flash.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;Here are the steps I'm taking, and the results I'm observing:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Check Core ID:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I successfully read the core ID, which is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;0x6BA02477.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Check FSTAT CCIF:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I verified that the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CCIF&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(Command Complete Interrupt Flag) bit in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FSTAT&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;register is set to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;1&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;before initiating the erase command.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Write FCCOB for Sector Erase (ERSSCR):&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I wrote&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;0x42&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(ERSSCR command) to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FCCOB&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;register.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Clear FSTAT CCIF:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I cleared the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CCIF&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;bit in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FSTAT&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;register to launch the command.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Read FSTAT - Expecting PEWEN = 1:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;This is where I'm encountering the issue. After clearing the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CCIF&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;bit and attempting to read the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FSTAT&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;register, I'm receiving a value of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;0x01000900. I'm expecting the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;PEWEN&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(Program/Erase Write Enable) bit to be set to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;1, indicating that the flash is ready for programming or erasing. The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;PEWEN&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;bit is not set, and the process seems to be stuck. I cannot proceed further.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;When I try using the&amp;nbsp;&lt;/SPAN&gt;0x40&lt;SPAN&gt;&amp;nbsp;(ERSALL - Erase All ) command instead of&amp;nbsp;&lt;/SPAN&gt;0x42&lt;SPAN&gt;, I receive a&amp;nbsp;&lt;/SPAN&gt;FSTAT&lt;SPAN&gt;&amp;nbsp;value of&amp;nbsp;&lt;/SPAN&gt;0x00000190&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Are there any specific configurations or initializations required&amp;nbsp;&lt;EM&gt;before&lt;/EM&gt;&amp;nbsp;attempting to operate the flash using SWD?&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 01 Apr 2025 08:51:41 GMT</pubDate>
    <dc:creator>GarrickChen</dc:creator>
    <dc:date>2025-04-01T08:51:41Z</dc:date>
    <item>
      <title>Issue operate FRDM-MCXN236 Flash via SWD with Custom Programmer</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Issue-operate-FRDM-MCXN236-Flash-via-SWD-with-Custom-Programmer/m-p/2071875#M2833</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;I'm having trouble operating the flash memory on the FRDM-MCXN236 board using my custom SWD programmer. I'm following the procedure outlined in AN14178 to operate the flash.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;Here are the steps I'm taking, and the results I'm observing:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Check Core ID:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I successfully read the core ID, which is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;0x6BA02477.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Check FSTAT CCIF:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I verified that the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CCIF&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(Command Complete Interrupt Flag) bit in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FSTAT&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;register is set to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;1&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;before initiating the erase command.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Write FCCOB for Sector Erase (ERSSCR):&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I wrote&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;0x42&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(ERSSCR command) to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FCCOB&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;register.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Clear FSTAT CCIF:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I cleared the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CCIF&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;bit in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FSTAT&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;register to launch the command.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Read FSTAT - Expecting PEWEN = 1:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;This is where I'm encountering the issue. After clearing the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CCIF&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;bit and attempting to read the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FSTAT&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;register, I'm receiving a value of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;0x01000900. I'm expecting the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;PEWEN&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(Program/Erase Write Enable) bit to be set to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;1, indicating that the flash is ready for programming or erasing. The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;PEWEN&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;bit is not set, and the process seems to be stuck. I cannot proceed further.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;When I try using the&amp;nbsp;&lt;/SPAN&gt;0x40&lt;SPAN&gt;&amp;nbsp;(ERSALL - Erase All ) command instead of&amp;nbsp;&lt;/SPAN&gt;0x42&lt;SPAN&gt;, I receive a&amp;nbsp;&lt;/SPAN&gt;FSTAT&lt;SPAN&gt;&amp;nbsp;value of&amp;nbsp;&lt;/SPAN&gt;0x00000190&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Are there any specific configurations or initializations required&amp;nbsp;&lt;EM&gt;before&lt;/EM&gt;&amp;nbsp;attempting to operate the flash using SWD?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Apr 2025 08:51:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Issue-operate-FRDM-MCXN236-Flash-via-SWD-with-Custom-Programmer/m-p/2071875#M2833</guid>
      <dc:creator>GarrickChen</dc:creator>
      <dc:date>2025-04-01T08:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue operate FRDM-MCXN236 Flash via SWD with Custom Programmer</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Issue-operate-FRDM-MCXN236-Flash-via-SWD-with-Custom-Programmer/m-p/2076643#M2857</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248715"&gt;@GarrickChen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please confirm that the default parameters of the flash have been initialized and the flash clock for the FLASH and FMC has been enabled before performing the erase operation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 03:52:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Issue-operate-FRDM-MCXN236-Flash-via-SWD-with-Custom-Programmer/m-p/2076643#M2857</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-04-09T03:52:21Z</dc:date>
    </item>
  </channel>
</rss>

