<?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: Need bootloader for QE128(flexis) in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182601#M13435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;It's true you can not re-direct the vectors on QE128.&lt;BR /&gt;&lt;BR /&gt;Just so it is clear, what do you need to bootloader for?&lt;BR /&gt;&lt;BR /&gt;(not trying to say you don't need it, just trying to understand your purpose)&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jan 2008 06:59:53 GMT</pubDate>
    <dc:creator>JimDon</dc:creator>
    <dc:date>2008-01-25T06:59:53Z</dc:date>
    <item>
      <title>Need bootloader for QE128(flexis)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182600#M13434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am porting an application from HCS08 to QE128 processor and have not found bootloader for QE128(flexis) processor.&lt;/DIV&gt;&lt;DIV&gt;The QE128 does not seem to support interrup vector redirection, although the interrupt vectors appear to be write protected whenever any Flash memory is protected.&lt;/DIV&gt;&lt;DIV&gt;Work-arounds appear to be:&lt;/DIV&gt;&lt;DIV&gt;1) Unprotect bootloader code (not desirable)&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;2) Create dummy ISRs that do re-direction to actual ISR&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Has anyone done a bootloader for the QE128?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 05:03:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182600#M13434</guid>
      <dc:creator>HenryJ</dc:creator>
      <dc:date>2008-01-25T05:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need bootloader for QE128(flexis)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182601#M13435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;It's true you can not re-direct the vectors on QE128.&lt;BR /&gt;&lt;BR /&gt;Just so it is clear, what do you need to bootloader for?&lt;BR /&gt;&lt;BR /&gt;(not trying to say you don't need it, just trying to understand your purpose)&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 06:59:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182601#M13435</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-01-25T06:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need bootloader for QE128(flexis)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182602#M13436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;We are using the bootloader to do field upgrades of the application code.&lt;/DIV&gt;&lt;DIV&gt;(I have actually modified the bootloader to run on RS-485 instead of RS-232.)&lt;/DIV&gt;&lt;DIV&gt;Is it true that write-protecting Flash memory also write-protects the interrupt vectors?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 07:46:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182602#M13436</guid>
      <dc:creator>HenryJ</dc:creator>
      <dc:date>2008-01-25T07:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need bootloader for QE128(flexis)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182603#M13437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;1) unprotecting the bootloader code is somewhat dangerous.&lt;/DIV&gt;&lt;DIV&gt;2) dummy ISRs should be OK. But can you justify&amp;nbsp;something&amp;nbsp;like this to redirect single interrupt?:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;redir_intx:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lda&amp;nbsp;&amp;nbsp; app_intx_vector+1&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; psha&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lda&amp;nbsp;&amp;nbsp; app_intx_vector&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; psha&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rts&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;H register has to be preserved before application ISR saves it. So ldx&amp;nbsp; followed by jmp ,x won't work&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What about jump table in applications code? Bootloader could have&amp;nbsp;almost all his vectors pointing to applications jump table entries.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; jmp rtcISR&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; jmp&amp;nbsp;sci2txISR&lt;/DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; etc&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 17:43:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182603#M13437</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2008-01-25T17:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need bootloader for QE128(flexis)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182604#M13438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Henry,&lt;BR /&gt;&lt;BR /&gt;I am abit curious about your progress, I will face the exact same problem in a week or two when I'll have to port a avr bootloader to the world of S08...&lt;BR /&gt;Did you find any good solution?&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Henrik&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 21:35:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182604#M13438</guid>
      <dc:creator>hek</dc:creator>
      <dc:date>2008-01-29T21:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need bootloader for QE128(flexis)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182605#M13439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I would like to thank all of you that replied to this request. I have completed the bootloader and publish the following tips on the changes required. Please contact me if you would like help or a copy of the final code.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Differences in QE128 and HCs08 bootloaders&lt;/DIV&gt;&lt;DIV&gt;1. Illegal instruction (ILOP) on HCS09 ($8D) is now a legal QE128 instruction.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Changed value from byte to work ($9e1f). This increased code size.&lt;/DIV&gt;&lt;DIV&gt;2. Protection block size increased from 512 to 1024 bytes, so saved relocation&lt;BR /&gt;vector address REL_VECT changed from $FDC0 to $FBC0. Since the nterrupt vectors ar no longer&lt;BR /&gt;redirected, only the relocated reset vector at address $FBFE is used to vector to the&lt;BR /&gt;start of the application.&lt;/DIV&gt;&lt;DIV&gt;3. Also, since the interrupt vectors ar no longer redirected, the original vector table&lt;BR /&gt;must point to code used to go to the real vecots. This required coordination with the&lt;BR /&gt;application program. The bootloader and application progam must coordinate in this redirection.&lt;BR /&gt;e.g. Vector at location $FFCE is My_Timer2_Interrupt and&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My_Timer2_Interrupt&amp;nbsp; has instruction JMP, (int) Timer2_Interrupt pointing to usual ISR.&lt;/DIV&gt;&lt;DIV&gt;4. Protection bit in NVPROT.FPOPEN changed from 0 to 1 to protect bootloader flash.&lt;/DIV&gt;&lt;DIV&gt;5. Removed test of SRS for false (short) reset pulse.&lt;/DIV&gt;&lt;DIV&gt;6. Added data block corresponding to SIZE = 128 for QE128 flash size and locations.&lt;/DIV&gt;&lt;DIV&gt;7. Modifications will also be needed to handle loading memory in pages for addresses above 64K.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 23:53:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182605#M13439</guid>
      <dc:creator>HenryJ</dc:creator>
      <dc:date>2008-01-31T23:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need bootloader for QE128(flexis)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182606#M13440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Dears,&lt;BR /&gt;&lt;BR /&gt;I've recently ported AN2295 bootloader for QE family and it's been briefly tested only. Attached you can find this alpha version which soon becomes a part of an official AN2295 update.&lt;BR /&gt;&lt;BR /&gt;Note that due to changes in addressing modes and vector relocation, the newer version of command line hc08sprg.exe is required, also attached (with free GUI).&lt;BR /&gt;&lt;BR /&gt;Any positive/negative feedback is more than welcome.&lt;BR /&gt;&lt;BR /&gt;Pavel, an2295 bootloader developer, Freescale CZ&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by ok2ucx on &lt;SPAN class="date_text"&gt;2008-02-04&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;02:13 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/CW816COMM/msg9090_hc08sprgs08qealpha1.exe.zip" rel="nofollow" target="_self"&gt;hc08sprg-s08qe-alpha-1.exe.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/CW816COMM/msg9090_AN2295BootloaderControlbeta1.exe.zip" rel="nofollow" target="_self"&gt;AN2295-Bootloader-Control-beta-1.exe.zip&lt;/A&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-09-03&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;04:53 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 21:12:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182606#M13440</guid>
      <dc:creator>ok2ucx</dc:creator>
      <dc:date>2008-02-04T21:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need bootloader for QE128(flexis)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182607#M13441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your comment is very helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to copy your final code on bootloader for QE128.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are okay, please send it &lt;A href="mailto:richard.lee@future.ca" rel="nofollow" target="_blank"&gt;richard.lee@future.ca&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 16:49:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182607#M13441</guid>
      <dc:creator>RichardL</dc:creator>
      <dc:date>2009-06-09T16:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need bootloader for QE128(flexis)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182608#M13442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some more QE family AN2295 bootloader updates for the testing available here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&amp;amp;message.id=14668#M14668" target="_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&amp;amp;message.id=14668#M14668&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards, Pavel&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by ok2ucx on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-08-04&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;04:58 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 21:57:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182608#M13442</guid>
      <dc:creator>ok2ucx</dc:creator>
      <dc:date>2009-08-04T21:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need bootloader for QE128(flexis)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182609#M13443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on a wireless bootloader, with a propietary wireless protocol. I'm trying to emulate rs232 over wireless, to use bootloader from an2295&amp;nbsp;and gui/master from the same an.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on source&amp;nbsp;of an2295 for qe64. I can't understand these lines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;main:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IFDEF IRQOPTION&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BIH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PVEC0&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; ; if IRQ high, jump directly to real app.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SRS&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;&amp;nbsp;&amp;nbsp; ; fetch RESET status reg.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TSTA&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; check if zero (this happens if RESET pulse is too short)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BEQ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; slfprg&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; ; if so, jump to self programming&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;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #%11000000&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; ; mask only POR and PIN RESET source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BNE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; slfprg&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; ; any of these sources, go to self programming&lt;BR /&gt;PVEC0:&amp;nbsp; JMP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VEC0&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; ; jump to relocated application!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VEC0, relocated application jump to main but main is also main of the bootloader, how can it goes to main of my new software?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use more space for my personal bootloader (I've to put the code for the transceiver) i.e. 2 KB where I have to put the new REL_VECT? thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 23:00:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182609#M13443</guid>
      <dc:creator>robert_t</dc:creator>
      <dc:date>2011-09-16T23:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need bootloader for QE128(flexis)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182610#M13444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is perfectly OK. paged AC and QE devices (with Flash 64kB up) do not have vector relocation feature implemented, thus these must be redirected the same way as on older HC08s (see AN2295, protocol version 1 for details). AC128 and QE128 are using protocol version 0x0A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The initial values of redirected ﻿tables are stored in&amp;nbsp;&lt;/P&gt;&lt;P&gt;APL_VECT_ROM:&amp;nbsp;&amp;nbsp;&amp;nbsp; SECTION﻿&lt;/P&gt;&lt;P&gt;in 0xFBA0 - 0xFBFF memory area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This area is not protected and is (during bootloading) reprogrammed with new vectors (actually JMP vector - 3 bytes sequence for each redirected ﻿vector) pointing to the user application. VEC0 points to the reset vector of the application and that's why it is also used during startup when bootloader decides to run the user application. Initial values (before any bootloading) are going to bootloader reset, so such blank device (with bootloader only) restarts bootloader again and again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can move REL_VECT in erase page multiples, actually you need to touch:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ASM file:&lt;/P&gt;&lt;P&gt;- REL_VECT value define: (REL_VECT&amp;nbsp;&amp;nbsp;&amp;nbsp; EQU &amp;nbsp;&amp;nbsp;&amp;nbsp; $FBA0﻿)&lt;/P&gt;&lt;P&gt;- protection boundary: (MY_NVPROT&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; DC.B&amp;nbsp;&amp;nbsp;&amp;nbsp; %11111101)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PRM file:&lt;/P&gt;&lt;P&gt;&amp;nbsp; APLVECTROM = READ_ONLY 0xFBA0 TO 0xFBFF;&lt;BR /&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it's clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pavel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2011 21:43:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182610#M13444</guid>
      <dc:creator>ok2ucx</dc:creator>
      <dc:date>2011-09-18T21:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need bootloader for QE128(flexis)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182611#M13445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henry&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you could please send me a copy of your bootloader, that would be great. (&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:russell@et.co.za"&gt;russell@et.co.za&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;thank-you very much&lt;/P&gt;&lt;P&gt;Russell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 14:57:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182611#M13445</guid>
      <dc:creator>russellsher</dc:creator>
      <dc:date>2013-01-25T14:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need bootloader for QE128(flexis)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182612#M13446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Henry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you send me your bootloader code to &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:sivanov@sensidyne.com"&gt;sivanov@sensidyne.com&lt;/A&gt;&lt;SPAN&gt; ? Also, were you able to program the entire memory range?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 16:52:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182612#M13446</guid>
      <dc:creator>sivanov</dc:creator>
      <dc:date>2016-01-04T16:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need bootloader for QE128(flexis)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182613#M13447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's my own boot loader (a cut-down public version) &lt;A href="http://aspisys.com/code/hc08/tboot.html" title="http://aspisys.com/code/hc08/tboot.html"&gt;http://aspisys.com/code/hc08/tboot.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It reads plain S19 files directly from a terminal.&amp;nbsp; No need for special app on PC side.&amp;nbsp; Just connect with an RS-232 terminal at the given baud rate (adjustable, usually 38400 bps).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can program the full QE128 memory.&amp;nbsp; The paged memory uses S2 records with the extra byte denoting the page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You write your application as if stand-alone but simply avoid the boot loader ROM space.&amp;nbsp; Vectors should go to their natural location as the boot loader will relocate them for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been using it for years without problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To assemble you will also need my ASM8 assembler -- the latest version -- which can found here: &lt;A href="http://aspisys.com/asm8.htm" title="http://aspisys.com/asm8.htm"&gt;ASM8 HC08/9S08 Assembler&lt;/A&gt; &lt;/P&gt;&lt;P&gt;(Click on the title to download.)&amp;nbsp; Inside the archive you should find all needed include files (qe128.inc, common.inc, macros.inc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 19:08:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182613#M13447</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2016-01-04T19:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need bootloader for QE128(flexis)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182614#M13448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Tony!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 19:44:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-bootloader-for-QE128-flexis/m-p/182614#M13448</guid>
      <dc:creator>sivanov</dc:creator>
      <dc:date>2016-01-04T19:44:44Z</dc:date>
    </item>
  </channel>
</rss>

