<?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: Bootloader for MC9S12xDP512 to erase and program at a certain area in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Bootloader-for-MC9S12xDP512-to-erase-and-program-at-a-certain/m-p/274842#M9952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is ıt about unsecuring the MCU in Special Single Chip Mode? &lt;/P&gt;&lt;P&gt;Or I should look Flash Protection and Flash Security topics.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Nov 2013 06:59:46 GMT</pubDate>
    <dc:creator>serkanakbulut</dc:creator>
    <dc:date>2013-11-14T06:59:46Z</dc:date>
    <item>
      <title>Bootloader for MC9S12xDP512 to erase and program at a certain area</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Bootloader-for-MC9S12xDP512-to-erase-and-program-at-a-certain/m-p/274841#M9951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello Everyone,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;We are using MC9S12xDP512 controller for our project. Currently we are using Softec and P&amp;amp;E tools to flash our .s19 files.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;we were using&amp;nbsp; attached code to erase all are and program all area.(I found the code in community discussion)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But now we &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;need to erase and program at a certain area.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I wrote an example function to do it. I am erasing the area but cant programing :S.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So i think&amp;nbsp; ı am missing somewhere.İf you see please let me now.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank You.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Here is the code.;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Consider that function is in the attached project ,boot.c.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fspeedy.sh%2FdZ6n4%2FS12XBootLoader.zip" rel="nofollow noopener noreferrer" target="_blank"&gt;http://speedy.sh/dZ6n4/S12XBootLoader.zip&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;uchar MyData= { 0x11,0x22,0x33,0x44,0x55,0x66,0x77, 0x11,0x22,0x33,0x44,0x55,0x66,0x77, 0x11,0x22,0x33,0x44,0x55,0x66,0x77, 0x11,0x22,0x33,0x44,0x55,0x66,0x77, 0x11,0x22,0x33,0x44,0x55,0x66,0x77, 0x11,0x22,0x33,0x44,0x55,0x66,0x77, }; int ProgramCertainArea (void) {&amp;nbsp; ulong&amp;nbsp; GlobalAddress=0x7EC000;&amp;nbsp;&amp;nbsp;&amp;nbsp; uchar *PPAGEWinAddr; if(EraseFlashCmd(GlobalAddress, SectorEraseCmd)==1)&amp;nbsp; OutStr("E"); else&amp;nbsp; OutStr("S");&amp;nbsp; PPAGEVal = (GlobalAddress - 0x400000) / FPageWsize;&amp;nbsp; PPAGEWinAddr = (uchar *)(((GlobalAddress - 0x400000) % FPageWsize) + FPageWstart); if(ProgFlashBlock(PPAGEVal, (uint *)PPAGEWinAddr, (uint *)&amp;amp;MyData, 21)==1)&amp;nbsp; OutStr("E"); else&amp;nbsp; OutStr("S"); }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 09:39:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Bootloader-for-MC9S12xDP512-to-erase-and-program-at-a-certain/m-p/274841#M9951</guid>
      <dc:creator>serkanakbulut</dc:creator>
      <dc:date>2013-11-13T09:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader for MC9S12xDP512 to erase and program at a certain area</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Bootloader-for-MC9S12xDP512-to-erase-and-program-at-a-certain/m-p/274842#M9952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is ıt about unsecuring the MCU in Special Single Chip Mode? &lt;/P&gt;&lt;P&gt;Or I should look Flash Protection and Flash Security topics.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 06:59:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Bootloader-for-MC9S12xDP512-to-erase-and-program-at-a-certain/m-p/274842#M9952</guid>
      <dc:creator>serkanakbulut</dc:creator>
      <dc:date>2013-11-14T06:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Bootloader for MC9S12xDP512 to erase and program at a certain area</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Bootloader-for-MC9S12xDP512-to-erase-and-program-at-a-certain/m-p/274843#M9953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure why you cannot program the MCU after erasing it, but i doubt it's because it is secured.&lt;/P&gt;&lt;P&gt;Anyway, regarding the Flash security feature and how to unsecure an MCU, see this document:&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-93803" title="https://community.freescale.com/docs/DOC-93803"&gt;https://community.freescale.com/docs/DOC-93803&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a CodeWarrior example project written for MC9S12XDP512 device demonstrating Flash R/W routines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 16:15:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Bootloader-for-MC9S12xDP512-to-erase-and-program-at-a-certain/m-p/274843#M9953</guid>
      <dc:creator>iggi</dc:creator>
      <dc:date>2013-11-25T16:15:01Z</dc:date>
    </item>
  </channel>
</rss>

