<?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 How to program the FLASH of an old HC16 (MC68HC916Y3) in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/How-to-program-the-FLASH-of-an-old-HC16-MC68HC916Y3/m-p/490309#M3476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is probably not the right place to place this question, but maybe someone with knowledge of the old HC16 can share some light.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got an old PCB with alot of relays and digital inputs i will like to reuse for a DIY project. I have managed to use an arduino to implement the BDM interface using the SPI port, I can also dump all the FLASH to a file and using a HEX viewer i can see the original program inside the MCU and even some text. My next step was to try to write to the MCU FLASH, i have 12V applied to the Vfpe1/2 pins to supply the EEPROM with the programming voltage. And i can send to the MCU the WPMEM command followed by the bank, address and 16 bit data to write. But when i read back the same address location the original value is returned. I'm sending the write command exactly was explained in the CPU16RM but so far i havent had any luck. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i try to write something into the Data space i can read it back and the value is exactly the one i wrote previously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using RPMEM and WPMEM for Program space and RDMEM and&amp;nbsp; WDMEM for Data space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDM interface CPU16RM - &lt;A href="https://www.google.dk/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=1&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0ahUKEwih2fWFg9DLAhUBdw8KHa-SCwwQFggaMAA&amp;amp;url=http%3A%2F%2Fwww.nxp.com%2Ffiles%2Fmicrocontrollers%2Fdoc%2Fref_manual%2FCPU16RM.pdf&amp;amp;usg=AFQjCNEzBaRAFZhcOeyBsGLd1s6kHAk79g&amp;amp;sig2=0qeSRPWSFbvYtNHlad8R0w&amp;amp;bvm=bv.117218890,d.bGs" title="https://www.google.dk/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=1&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0ahUKEwih2fWFg9DLAhUBdw8KHa-SCwwQFggaMAA&amp;amp;url=http%3A%2F%2Fwww.nxp.com%2Ffiles%2Fmicrocontrollers%2Fdoc%2Fref_manual%2FCPU16RM.pdf&amp;amp;usg=AFQjCNEzBaRAFZhcOeyBsGLd1s6kHAk79g&amp;amp;sig2=0qeSRPWSFbvYtNHlad8R0w&amp;amp;bvm=bv.117218890,d.bGs"&gt;https://www.google.dk/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=1&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0ahUKEwih2fWFg9DLAhUBdw8KHa-SCwwQFggaM…&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 Mar 2016 19:47:50 GMT</pubDate>
    <dc:creator>paulolouro</dc:creator>
    <dc:date>2016-03-20T19:47:50Z</dc:date>
    <item>
      <title>How to program the FLASH of an old HC16 (MC68HC916Y3)</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/How-to-program-the-FLASH-of-an-old-HC16-MC68HC916Y3/m-p/490309#M3476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is probably not the right place to place this question, but maybe someone with knowledge of the old HC16 can share some light.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got an old PCB with alot of relays and digital inputs i will like to reuse for a DIY project. I have managed to use an arduino to implement the BDM interface using the SPI port, I can also dump all the FLASH to a file and using a HEX viewer i can see the original program inside the MCU and even some text. My next step was to try to write to the MCU FLASH, i have 12V applied to the Vfpe1/2 pins to supply the EEPROM with the programming voltage. And i can send to the MCU the WPMEM command followed by the bank, address and 16 bit data to write. But when i read back the same address location the original value is returned. I'm sending the write command exactly was explained in the CPU16RM but so far i havent had any luck. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i try to write something into the Data space i can read it back and the value is exactly the one i wrote previously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using RPMEM and WPMEM for Program space and RDMEM and&amp;nbsp; WDMEM for Data space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDM interface CPU16RM - &lt;A href="https://www.google.dk/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=1&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0ahUKEwih2fWFg9DLAhUBdw8KHa-SCwwQFggaMAA&amp;amp;url=http%3A%2F%2Fwww.nxp.com%2Ffiles%2Fmicrocontrollers%2Fdoc%2Fref_manual%2FCPU16RM.pdf&amp;amp;usg=AFQjCNEzBaRAFZhcOeyBsGLd1s6kHAk79g&amp;amp;sig2=0qeSRPWSFbvYtNHlad8R0w&amp;amp;bvm=bv.117218890,d.bGs" title="https://www.google.dk/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=1&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0ahUKEwih2fWFg9DLAhUBdw8KHa-SCwwQFggaMAA&amp;amp;url=http%3A%2F%2Fwww.nxp.com%2Ffiles%2Fmicrocontrollers%2Fdoc%2Fref_manual%2FCPU16RM.pdf&amp;amp;usg=AFQjCNEzBaRAFZhcOeyBsGLd1s6kHAk79g&amp;amp;sig2=0qeSRPWSFbvYtNHlad8R0w&amp;amp;bvm=bv.117218890,d.bGs"&gt;https://www.google.dk/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=1&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0ahUKEwih2fWFg9DLAhUBdw8KHa-SCwwQFggaM…&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Mar 2016 19:47:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/How-to-program-the-FLASH-of-an-old-HC16-MC68HC916Y3/m-p/490309#M3476</guid>
      <dc:creator>paulolouro</dc:creator>
      <dc:date>2016-03-20T19:47:50Z</dc:date>
    </item>
  </channel>
</rss>

