<?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>S12 / MagniV MicrocontrollersのトピックS12ZVLA128 bootloader</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVLA128-bootloader/m-p/928125#M16558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i use the S12ZVLA128 MCU ,and follow the Simple_serial_bootlader example &amp;nbsp;development my bootlader.&lt;/P&gt;&lt;P&gt;the bootloader:&amp;nbsp;&lt;/P&gt;&lt;P&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/80375iDFADF1D8CDF15D6B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&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/80423i901F185E56AC801B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80475iF66A05D08CB9323F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i do not use the eeprom , and wen the MCU power ,i want run the bootloader ,and then the bootloader&lt;/P&gt;&lt;P&gt;will check the app is ready ,if yes it will jump&lt;/P&gt;&lt;P&gt;__DI();&lt;/P&gt;&lt;P&gt;&amp;nbsp;setReg16(IVBR, 0xFE00U);&lt;BR /&gt; app_vector = *(unsigned long int *) (0XFFDFFC);&lt;BR /&gt; asm LD X,app_vector;&lt;BR /&gt; asm JMP (0,X);//jmp app&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the app:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80514iEE1AD6F3AC2A5451/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80562i439D32811A66C209/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_9.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80605iAD831EBE163F146B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_9.png" alt="pastedImage_9.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, the bootlader can run ,and i use the multilink-fx loding the app to flash ,and debug the bootlader,&lt;/P&gt;&lt;P&gt;when jum ,i found &amp;nbsp;the&amp;nbsp;No source available for "0x022E00 (0x022E00)() " &amp;nbsp;.then i see de app.sx file ,it show&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;S903022ECC , it show the start addr is 022E, so i think the jmp is successful,but why it can't &amp;nbsp;run the app?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and i try &amp;nbsp;pull-out the multilink-fx ,the same to no pull-out .can you help ,my friend?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; haiyang&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jul 2019 02:32:28 GMT</pubDate>
    <dc:creator>oceansea</dc:creator>
    <dc:date>2019-07-17T02:32:28Z</dc:date>
    <item>
      <title>S12ZVLA128 bootloader</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVLA128-bootloader/m-p/928125#M16558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i use the S12ZVLA128 MCU ,and follow the Simple_serial_bootlader example &amp;nbsp;development my bootlader.&lt;/P&gt;&lt;P&gt;the bootloader:&amp;nbsp;&lt;/P&gt;&lt;P&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/80375iDFADF1D8CDF15D6B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&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/80423i901F185E56AC801B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80475iF66A05D08CB9323F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i do not use the eeprom , and wen the MCU power ,i want run the bootloader ,and then the bootloader&lt;/P&gt;&lt;P&gt;will check the app is ready ,if yes it will jump&lt;/P&gt;&lt;P&gt;__DI();&lt;/P&gt;&lt;P&gt;&amp;nbsp;setReg16(IVBR, 0xFE00U);&lt;BR /&gt; app_vector = *(unsigned long int *) (0XFFDFFC);&lt;BR /&gt; asm LD X,app_vector;&lt;BR /&gt; asm JMP (0,X);//jmp app&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the app:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80514iEE1AD6F3AC2A5451/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80562i439D32811A66C209/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_9.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80605iAD831EBE163F146B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_9.png" alt="pastedImage_9.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, the bootlader can run ,and i use the multilink-fx loding the app to flash ,and debug the bootlader,&lt;/P&gt;&lt;P&gt;when jum ,i found &amp;nbsp;the&amp;nbsp;No source available for "0x022E00 (0x022E00)() " &amp;nbsp;.then i see de app.sx file ,it show&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;S903022ECC , it show the start addr is 022E, so i think the jmp is successful,but why it can't &amp;nbsp;run the app?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and i try &amp;nbsp;pull-out the multilink-fx ,the same to no pull-out .can you help ,my friend?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; haiyang&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2019 02:32:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVLA128-bootloader/m-p/928125#M16558</guid>
      <dc:creator>oceansea</dc:creator>
      <dc:date>2019-07-17T02:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: S12ZVLA128 bootloader</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVLA128-bootloader/m-p/928126#M16559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you are inserting 32bit number to a 24 bit number. The numbers are copied from left to right&lt;/P&gt;&lt;P&gt;data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00_FF_DF_FC&lt;/P&gt;&lt;P&gt;X register&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xDD_DD_DD&lt;/P&gt;&lt;P&gt;result of operation data-&amp;gt;X is 0x00_FF_DF&amp;nbsp;&amp;nbsp;&amp;nbsp; ....... FC is lost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try following construction somewhere else to see what data is loaded into X register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unsigned long int app_vector;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app_vector = 0x00FFDFFCUL&amp;lt;&amp;lt;8;&amp;nbsp;&amp;nbsp;&amp;nbsp; // UL means conversion of constant to unsigned long&lt;BR /&gt;asm LD X,app_vector;&lt;BR /&gt;asm JMP (0,X);//jmp app&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must be carefull when you wark with 32 bit data (from C) and 24 bit addresses (from ASM). The C language does not work with 24bit data. I suggest always test such operations to be sure everything is written/Read corectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2019 10:15:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVLA128-bootloader/m-p/928126#M16559</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2019-07-19T10:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: S12ZVLA128 bootloader</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVLA128-bootloader/m-p/928127#M16560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or, skipping intermediate app_vector and using indirect addressing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: small; "&gt;asm&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; LD X, (0xFFDFFC+1);&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small; "&gt;asm&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; JMP (0,X);&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small; "&gt;//&lt;SPAN style="text-decoration: underline;"&gt;jmp&lt;/SPAN&gt; &lt;SPAN style="text-decoration: underline;"&gt;app&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; text-decoration: underline; font-size: small; "&gt;Edward&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2019 17:57:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVLA128-bootloader/m-p/928127#M16560</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2019-07-19T17:57:39Z</dc:date>
    </item>
  </channel>
</rss>

