<?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 Re: MM9Z1J638 erase EEPROM problem in Powertrain and Electrification Analog Drivers</title>
    <link>https://community.nxp.com/t5/Powertrain-and-Electrification/MM9Z1J638-erase-EEPROM-problem/m-p/2034993#M666</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;1) There are two ways how to program MCU with self made programmer – either via BDM or using bootloader. Of course, bootloader also requires its load via BDM.&lt;/P&gt;
&lt;P&gt;If you use mass erase command then it is suitable immediately unsecure the mcu by rewriting the security byte in the flash. If it is not done then the MCU is secured after next reset.&lt;/P&gt;
&lt;P&gt;You can also erase the flash sector by sector.&lt;/P&gt;
&lt;P&gt;Bootloader is described here:&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&lt;A id="menur1q9" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://community.nxp.com/t5/s12-magniv-microcontrollers/programmer-for-s12z-microcontroller/m-p/1828519#m19723" href="https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Programmer-for-S12Z-microcontroller/m-p/1828519#M19723" target="_blank" rel="noreferrer noopener" aria-label="Link https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Programmer-for-S12Z-microcontroller/m-p/1828519#M19723"&gt;https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Programmer-for-S12Z-microcontroller/m-p/1828519#M19723&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12Z-MagniV-Serial-Bootloader-Interface/m-p/1522147" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12Z-MagniV-Serial-Bootloader-Interface/m-p/1522147&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simple-Serial-Bootloader-for-S12Z-AN-draft/ta-p/1126452" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simple-Serial-Bootloader-for-S12Z-AN-draft/ta-p/1126452&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&lt;A id="menur251" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://community.nxp.com/t5/s12-magniv-microcontrollers/flash-corruption/m-p/955528/highlight/true" href="https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Flash-Corruption/m-p/955528/highlight/true" target="_blank" rel="noreferrer noopener" aria-label="Link https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Flash-Corruption/m-p/955528/highlight/true"&gt;https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Flash-Corruption/m-p/955528/highlight/true&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First of all you should read the data sheet to understand how the programming and erasing memory works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) If you mean you want to program the data into the EEPROM and FLASH by means your application SW, then it is another story.&lt;/P&gt;
&lt;P&gt;In both cases it is necessary to switch off the memory window (or shift to the part which is not EW) because it reads flash and it is not allowed to read the flash while it is E/W.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My question is. Does the “self made programmer” means either bootloader or debug interface or your application SW?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Ladislav&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2025 09:22:13 GMT</pubDate>
    <dc:creator>lama</dc:creator>
    <dc:date>2025-01-28T09:22:13Z</dc:date>
    <item>
      <title>MM9Z1J638 erase EEPROM problem</title>
      <link>https://community.nxp.com/t5/Powertrain-and-Electrification/MM9Z1J638-erase-EEPROM-problem/m-p/2034317#M663</link>
      <description>&lt;P&gt;Greetings Dear Experts, I'm trying to debug MM9Z1J638 MCU with a selfmade programmer, i looked in Datasheet and&amp;nbsp; succesfully read Device ID EEprom and PFlash but when i try to ERASE eeprom it do nothing I'm using comands&lt;/P&gt;&lt;P&gt;0x12 (cmd)&lt;/P&gt;&lt;P&gt;0x10 (adr High)&lt;/P&gt;&lt;P&gt;0x0000 (adr Med+Low)&lt;/P&gt;&lt;P&gt;also i tried with 0x1210(cmd+adrHigh) 0x0000 and many other options... as i see before doing this i need to clear CCIF register but i cant find any information in datasheet how i can do it with bdm commands, what commands shall i use to clear FSTAT register and where it is located, also i wonder what is the address of FCLKDIV register&lt;/P&gt;&lt;P&gt;And also i wonder shall i send comand like 0x09 as a 2 words like 0x0910 0x0000 or i shall do it like 0x09 0x10 0x0000&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really need some tips in explaination of this command (0x09 0x11 0x12 etc) ((commands that need clearing errors before start))&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jan 2025 16:06:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Powertrain-and-Electrification/MM9Z1J638-erase-EEPROM-problem/m-p/2034317#M663</guid>
      <dc:creator>romanarxxy</dc:creator>
      <dc:date>2025-01-26T16:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: MM9Z1J638 erase EEPROM problem</title>
      <link>https://community.nxp.com/t5/Powertrain-and-Electrification/MM9Z1J638-erase-EEPROM-problem/m-p/2034326#M664</link>
      <description>&lt;P&gt;I chose wrong directory when creating theme i'm sorry, as i understand i shall write FCLKDIV register before operation and erase errors but FSTAT register is 0x80 before start... so what shall i do? and do i need to write directly to FCCOB register or i can use comand just as it presented in datsheet? for example i want to erase entire eeprom to reprog it again, so what exactly i shall do? FCLKDIV is set fclkdiv=80 after sending 0x00 to it, FSTAT= 80 so it means mcu is free and no errors stored, what's next? i just need to send 0x12 and address? but its not work for me, im doing erase comands like this&lt;BR /&gt;sending 2 words&lt;BR /&gt;0x1210(comand + adr_high)&lt;BR /&gt;0x0000(adr_med + adr_low)&lt;BR /&gt;what am i missing?&lt;BR /&gt;Thanks for reply&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jan 2025 23:20:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Powertrain-and-Electrification/MM9Z1J638-erase-EEPROM-problem/m-p/2034326#M664</guid>
      <dc:creator>romanarxxy</dc:creator>
      <dc:date>2025-01-26T23:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: MM9Z1J638 erase EEPROM problem</title>
      <link>https://community.nxp.com/t5/Powertrain-and-Electrification/MM9Z1J638-erase-EEPROM-problem/m-p/2034993#M666</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;1) There are two ways how to program MCU with self made programmer – either via BDM or using bootloader. Of course, bootloader also requires its load via BDM.&lt;/P&gt;
&lt;P&gt;If you use mass erase command then it is suitable immediately unsecure the mcu by rewriting the security byte in the flash. If it is not done then the MCU is secured after next reset.&lt;/P&gt;
&lt;P&gt;You can also erase the flash sector by sector.&lt;/P&gt;
&lt;P&gt;Bootloader is described here:&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&lt;A id="menur1q9" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://community.nxp.com/t5/s12-magniv-microcontrollers/programmer-for-s12z-microcontroller/m-p/1828519#m19723" href="https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Programmer-for-S12Z-microcontroller/m-p/1828519#M19723" target="_blank" rel="noreferrer noopener" aria-label="Link https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Programmer-for-S12Z-microcontroller/m-p/1828519#M19723"&gt;https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Programmer-for-S12Z-microcontroller/m-p/1828519#M19723&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12Z-MagniV-Serial-Bootloader-Interface/m-p/1522147" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12Z-MagniV-Serial-Bootloader-Interface/m-p/1522147&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simple-Serial-Bootloader-for-S12Z-AN-draft/ta-p/1126452" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simple-Serial-Bootloader-for-S12Z-AN-draft/ta-p/1126452&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&lt;A id="menur251" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://community.nxp.com/t5/s12-magniv-microcontrollers/flash-corruption/m-p/955528/highlight/true" href="https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Flash-Corruption/m-p/955528/highlight/true" target="_blank" rel="noreferrer noopener" aria-label="Link https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Flash-Corruption/m-p/955528/highlight/true"&gt;https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Flash-Corruption/m-p/955528/highlight/true&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First of all you should read the data sheet to understand how the programming and erasing memory works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) If you mean you want to program the data into the EEPROM and FLASH by means your application SW, then it is another story.&lt;/P&gt;
&lt;P&gt;In both cases it is necessary to switch off the memory window (or shift to the part which is not EW) because it reads flash and it is not allowed to read the flash while it is E/W.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My question is. Does the “self made programmer” means either bootloader or debug interface or your application SW?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Ladislav&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 09:22:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Powertrain-and-Electrification/MM9Z1J638-erase-EEPROM-problem/m-p/2034993#M666</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2025-01-28T09:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: MM9Z1J638 erase EEPROM problem</title>
      <link>https://community.nxp.com/t5/Powertrain-and-Electrification/MM9Z1J638-erase-EEPROM-problem/m-p/2035055#M667</link>
      <description>&lt;P&gt;my selfmade is debug interface+selfmade SW for sending commands&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;anywaym i already figured out how to do it with you help, thanks a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 11:08:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Powertrain-and-Electrification/MM9Z1J638-erase-EEPROM-problem/m-p/2035055#M667</guid>
      <dc:creator>romanarxxy</dc:creator>
      <dc:date>2025-01-28T11:08:50Z</dc:date>
    </item>
  </channel>
</rss>

