<?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: How to run from Flash? (MC9S08SH8)</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-run-from-Flash-MC9S08SH8/m-p/160751#M9699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is reset vector set up properly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Aug 2011 20:33:29 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2011-08-22T20:33:29Z</dc:date>
    <item>
      <title>How to run from Flash? (MC9S08SH8)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-run-from-Flash-MC9S08SH8/m-p/160750#M9698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have my code (MC9S08SH8) running OK from RAM during debug but I am not able to run it permanently from flash.&lt;/P&gt;&lt;P&gt;I believe I am doing the programming process correctly. It works with some compiled&amp;nbsp; examples I downloaded but not with my code.&lt;/P&gt;&lt;P&gt;I believe it's a matter of memory map or something like that but since I am new to the Codewarrior development environment I am not able to figure out how to solve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea or recommended documentation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neomar Giacomini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 01:51:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-run-from-Flash-MC9S08SH8/m-p/160750#M9698</guid>
      <dc:creator>Neomar</dc:creator>
      <dc:date>2011-08-22T01:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to run from Flash? (MC9S08SH8)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-run-from-Flash-MC9S08SH8/m-p/160751#M9699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is reset vector set up properly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 20:33:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-run-from-Flash-MC9S08SH8/m-p/160751#M9699</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-08-22T20:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to run from Flash? (MC9S08SH8)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-run-from-Flash-MC9S08SH8/m-p/160752#M9700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about the watchdog?&lt;/P&gt;&lt;P&gt;Did you turn that off?&lt;/P&gt;&lt;P&gt;Show us some code....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 21:45:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-run-from-Flash-MC9S08SH8/m-p/160752#M9700</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2011-08-22T21:45:53Z</dc:date>
    </item>
    <item>
      <title>SOLVED    Re: How to run from Flash? (MC9S08SH8)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-run-from-Flash-MC9S08SH8/m-p/160753#M9701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for answering my post.&lt;/P&gt;&lt;P&gt;I was able to solve the issue.&lt;/P&gt;&lt;P&gt;The code was actually running but I was unable to notice that because my only feedback was through the serial port which was at a wrong baudrate. (continue reading, its interesting)&lt;/P&gt;&lt;P&gt;That problem happened because while &lt;U&gt;debugging&lt;/U&gt; I got exactly 9600bps with the configs I had. Therefore able to communicate with my desktop software and develop everything with no problems. After flashing the device the frequency moved to another range but I wasnt aware about that change.&lt;/P&gt;&lt;P&gt;The change happened because when you download the code for &lt;U&gt;debug&lt;/U&gt; purposes the tool/codewarrior seems to automatically set a few registers (ICSSC, ICSTRM, ICSC1 and ICSC2)﻿ (not sure if they are all needed, still did not had time to go in details)﻿ probably in order to communicate at a more precise speed during the &lt;U&gt;debug&lt;/U&gt;. I therefore was getting the 9600bps &lt;U&gt;with that configuration done automatically by the tools&lt;/U&gt;. While powering the board standalone with no proper configs on (ICSSC, ICSTRM, ICSC1 and ICSC2)﻿ it was not communicating and my first thoughts were that the code was not running but it was but god know at what baudrate. (no scope/data acquisition tool here to measure).&lt;/P&gt;&lt;P&gt;After realizing this I got compared the configs (original versus the ones appearing during debug) and added to my code the ones I found during debug... and guess what? PROBLEM SOLVED.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 20:40:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-run-from-Flash-MC9S08SH8/m-p/160753#M9701</guid>
      <dc:creator>Neomar</dc:creator>
      <dc:date>2011-09-07T20:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: SOLVED    Re: How to run from Flash? (MC9S08SH8)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-run-from-Flash-MC9S08SH8/m-p/160754#M9702</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;&lt;/P&gt;&lt;P&gt;It is unclear whether you have taken into account that there will be a significant unit-to-unit variation of the internal clock reference frequency associated with the ICS module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So&amp;nbsp;assuming that you are using FEI mode, the trim settings to adjust the reference frequency to a specific value&amp;nbsp;will need to be&amp;nbsp;calibrated separately for each device, which is usually done&amp;nbsp;when the code is programmed to the device.&amp;nbsp; This calibration process will store the trim values in flash memory at addresses 0xFFAF (8-bit value) and 0xFFAE (bit 0 only for fine trim).&amp;nbsp; The initialisation code following reset must then transfer the non-volatiile calibration values into the ICSTRM and ICSSC registers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This process is essential to consistently&amp;nbsp;obtain a sufficiently accurate baud rate for the SCI module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 22:03:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-run-from-Flash-MC9S08SH8/m-p/160754#M9702</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-09-07T22:03:45Z</dc:date>
    </item>
  </channel>
</rss>

