<?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: ILLEGAL_BP in CAN Bootloader MC9S12P64 in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP-in-CAN-Bootloader-MC9S12P64/m-p/869835#M16259</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Carles,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to recommend you to start with the link below:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-102620"&gt;Useful documents for building own CAN bootloader&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Apr 2019 12:09:44 GMT</pubDate>
    <dc:creator>dianabatrlova</dc:creator>
    <dc:date>2019-04-29T12:09:44Z</dc:date>
    <item>
      <title>ILLEGAL_BP in CAN Bootloader MC9S12P64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP-in-CAN-Bootloader-MC9S12P64/m-p/869831#M16255</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 am currently working on bootloader developpement with MSCAN module using target mc9s12p64.&lt;/P&gt;&lt;P&gt;When I try to program the flash, &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;ILLEGAL_BP occurs&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Here's the PFlash_Program () function I used :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65767i8FBE6AD25ADE08FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The .Prm file :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66163i7B758409D014774C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The issue :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66335i4F1FBDE2179E8A18/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;NB : I didn't used any interrupt and disabled the watchdog&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Any help would be great, thanks in advance !&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2019 10:28:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP-in-CAN-Bootloader-MC9S12P64/m-p/869831#M16255</guid>
      <dc:creator>nada_amani123</dc:creator>
      <dc:date>2019-03-19T10:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: ILLEGAL_BP in CAN Bootloader MC9S12P64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP-in-CAN-Bootloader-MC9S12P64/m-p/869832#M16256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nada&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RELOCATE_TO&amp;nbsp;in your PRM relocates address of your functions in RAM_CODE from flash to RAM, but nothing copies code from flash to RAM. You need to memcpy((void*)0x3D00, (void*)0xFD00, 0x200) or something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's simpler way to have functions in RAM without RELOCATE_TO and memcpy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) in project wizard choose ansi startup instead of minimal. If you had minimal, you need to remove from compiler settings -D__ONLY_INIT_SP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) PRM modification, just one additional line&amp;nbsp;for RAM_CODE&lt;/P&gt;&lt;P&gt;PLACEMENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; RAM_CODE INTO RAM;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ..&lt;/P&gt;&lt;P&gt;END&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) In you code for any function to be placed in RAM:&lt;/P&gt;&lt;P&gt;#pragma CODE_SEG RAM_CODE&lt;/P&gt;&lt;P&gt;void your_function(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;#pragma CODE_SEG DEFAULT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't do any linker relocation, it directly compiles&amp;nbsp;to RAM. Since RAM is READ_WRITE, linker will treat you code as initialized variables, fill&amp;nbsp;copydown structure and startup routine will initialize RAM with proper code for your routines in RAM_CODE placement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 08:11:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP-in-CAN-Bootloader-MC9S12P64/m-p/869832#M16256</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2019-03-20T08:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: ILLEGAL_BP in CAN Bootloader MC9S12P64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP-in-CAN-Bootloader-MC9S12P64/m-p/869833#M16257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nada,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share your Srecord?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 14:05:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP-in-CAN-Bootloader-MC9S12P64/m-p/869833#M16257</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2019-03-20T14:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: ILLEGAL_BP in CAN Bootloader MC9S12P64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP-in-CAN-Bootloader-MC9S12P64/m-p/869834#M16258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nada&lt;/P&gt;&lt;P&gt;I amb also very interested in your CAN bootloader development. Where do you learn to program a CAN bootloader? &amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2019 09:33:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP-in-CAN-Bootloader-MC9S12P64/m-p/869834#M16258</guid>
      <dc:creator>carleslloret</dc:creator>
      <dc:date>2019-04-29T09:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: ILLEGAL_BP in CAN Bootloader MC9S12P64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP-in-CAN-Bootloader-MC9S12P64/m-p/869835#M16259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Carles,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to recommend you to start with the link below:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-102620"&gt;Useful documents for building own CAN bootloader&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2019 12:09:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP-in-CAN-Bootloader-MC9S12P64/m-p/869835#M16259</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2019-04-29T12:09:44Z</dc:date>
    </item>
  </channel>
</rss>

