<?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>8-bit Microcontrollers中的主题 Re: Need Help with bootloader for MC9S08GW64</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-Help-with-bootloader-for-MC9S08GW64/m-p/761427#M22553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any suggestions or ideas&amp;nbsp; guys ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2018 17:23:02 GMT</pubDate>
    <dc:creator>Designer11</dc:creator>
    <dc:date>2018-05-02T17:23:02Z</dc:date>
    <item>
      <title>Need Help with bootloader for MC9S08GW64</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-Help-with-bootloader-for-MC9S08GW64/m-p/761424#M22550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I'm looking for a bootloader for the 9S08GW series of microcontrollers. I tried to debug the GW bootloader that came with the AN2295SW and failed on that too.&lt;/P&gt;&lt;P&gt;&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/48090iCA3F24B614396773/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;After looking at the original flash.ini that came with with the S08GW bootloader folder. I noticed the chipmode = 9S08JM60. Shouldn't it be 9S08GW64&amp;nbsp; instead, since i'm working with the GW series ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2018 20:38:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-Help-with-bootloader-for-MC9S08GW64/m-p/761424#M22550</guid>
      <dc:creator>Designer11</dc:creator>
      <dc:date>2018-04-23T20:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with bootloader for MC9S08GW64</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-Help-with-bootloader-for-MC9S08GW64/m-p/761425#M22551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, after successfully&amp;nbsp;porting the project into CodeWarrior 11, and got it to compile and enter debug mode. I decided to toggle pin&amp;nbsp; PTA5&amp;nbsp;but unable to see the pin transition from&amp;nbsp;&amp;nbsp;low to high.&amp;nbsp;&lt;/P&gt;&lt;P&gt;BSET 5,1&lt;BR /&gt; BSET 5,0&lt;/P&gt;&lt;P&gt;Can anyone show me what am i doing wrong ?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 00:34:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-Help-with-bootloader-for-MC9S08GW64/m-p/761425#M22551</guid>
      <dc:creator>Designer11</dc:creator>
      <dc:date>2018-04-24T00:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with bootloader for MC9S08GW64</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-Help-with-bootloader-for-MC9S08GW64/m-p/761426#M22552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe i need to enable the clock gating for the 9S08GW64 SCI before any activity can take place. Since, i'm not familiar with assembly language. Can anyone show me the appropriate commands and where to insert the commands ? Attached is the bootloader source codes. I'm using Codewarrior 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the disassembled C version of "enabled SCI 1 module clock and assigned pin B1 as TXD1 and pin B0 as RXD1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;SCGC1_SCI1 = 0x01; //enable SCI1 module clock&lt;BR /&gt;LDHX #0x1808&lt;BR /&gt;LDA ,X&lt;BR /&gt;ORA #0x02&lt;BR /&gt;STA ,X&lt;/P&gt;&lt;P&gt;;PTBPF1_B1 = 0b010; //pin B1 as TXD1&lt;BR /&gt;LDHX #0x1944&lt;BR /&gt;LDA ,X&lt;BR /&gt;AND #0x8F&lt;BR /&gt;ORA #0x20&lt;BR /&gt;STA ,X&lt;BR /&gt;;PTBPF1_B0 = 0b010; //pin B0 as RXD1&lt;BR /&gt;LDA ,X&lt;BR /&gt;AND #0xF8&lt;BR /&gt;ORA #0x02&lt;BR /&gt;STA ,X&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 23:46:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-Help-with-bootloader-for-MC9S08GW64/m-p/761426#M22552</guid>
      <dc:creator>Designer11</dc:creator>
      <dc:date>2018-04-27T23:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with bootloader for MC9S08GW64</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-Help-with-bootloader-for-MC9S08GW64/m-p/761427#M22553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any suggestions or ideas&amp;nbsp; guys ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 17:23:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-Help-with-bootloader-for-MC9S08GW64/m-p/761427#M22553</guid>
      <dc:creator>Designer11</dc:creator>
      <dc:date>2018-05-02T17:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with bootloader for MC9S08GW64</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-Help-with-bootloader-for-MC9S08GW64/m-p/761428#M22554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's unclear what you're asking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to know how to enable the SCI1 clock?&lt;/P&gt;&lt;P&gt;Hasn't the code you posted the answer?&lt;/P&gt;&lt;P&gt;(SCGC1_SCI1 = 0x01; //enable SCI1 module clock)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, SCGC1_SCI1 is a bit, not a register and bit.&amp;nbsp; But I don't know CW, whether it 'magically' understands to which register the bit belongs based on this naming convention,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the following definitions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCGC1&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; equ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $00001808&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;*** SCGC1 - System Clock Gating Control 1 Register; 0x00001808 ***&lt;BR /&gt;SCGC1_SCI1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; equ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&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; ; SCI1 Clock Gate Control&lt;BR /&gt;mSCGC1_SCI1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; equ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %00000010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you would need something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCGC1 |= mSCGC1_SCI1;&lt;/P&gt;&lt;P&gt;in C, and something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lda SCGC1&lt;/P&gt;&lt;P&gt;ora #mSCGC1_SCI1&lt;/P&gt;&lt;P&gt;sta SCGC1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in assembly language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has to happen anytime before you write to any SCI1 registers (put simply, without clock to the relevant SCI module, don't expect writing to any SCI register to do anything.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 13:53:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-Help-with-bootloader-for-MC9S08GW64/m-p/761428#M22554</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2018-05-03T13:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with bootloader for MC9S08GW64</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-Help-with-bootloader-for-MC9S08GW64/m-p/761429#M22555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tony,&lt;/P&gt;&lt;P&gt;Thank you for the reply, Basically, i tried to use the GW bootloader ( see attached code above) for a project but,it failed to communicate with the Windows GUI app. So, I poked around the bootloader source codes but didn’t see ( My assembly coding is very limited) &amp;nbsp;the SCI&amp;nbsp;clock initialization. I tried to come up with the SCI initialization code, which I posted above but the &amp;nbsp;bootloader still failed to communicate with the Windows GUI app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 May 2018 23:41:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Need-Help-with-bootloader-for-MC9S08GW64/m-p/761429#M22555</guid>
      <dc:creator>Designer11</dc:creator>
      <dc:date>2018-05-05T23:41:09Z</dc:date>
    </item>
  </channel>
</rss>

