<?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>OSBDM and TBDMLのトピックRe: TRIM for 9S08SH8 using OSBDM</title>
    <link>https://community.nxp.com/t5/OSBDM-and-TBDML/TRIM-for-9S08SH8-using-OSBDM/m-p/187521#M1349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I'm in the same situation develops OSBDM the truth and I am not useless because if the system does not support the basics of a system that is embedded the clock does not work. if someone knows something to fix this I would appreciate.&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Sep 2008 00:56:53 GMT</pubDate>
    <dc:creator>CamiloA_</dc:creator>
    <dc:date>2008-09-29T00:56:53Z</dc:date>
    <item>
      <title>TRIM for 9S08SH8 using OSBDM</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/TRIM-for-9S08SH8-using-OSBDM/m-p/187520#M1348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;I purchased an OSBDM from Witztronics mostly to program a MC9S08SH8. There were a couple of "little details" that I was not aware of before I made my purchase.&lt;/P&gt;&lt;P&gt;One was the need to hold the BKGD low on power up for new chips. But ONLY for new chips. This is discussed in other threads.&lt;/P&gt;&lt;P&gt;The other detail was that the OSBDM does not have the trim feature that P&amp;amp;E has. That means you can’t use the OSBDM to program 9S08xx chips if you intend to use the internal oscillator and also features that require an accurate clock like the SCI. As almost all of my programs make use of the SCI, this is a big problem.&lt;/P&gt;&lt;P&gt;In another thread some App notes were recommended but they mostly give general information rather than answers to this problem. The closest to being useful is AN2496 but the software is for chips that use ICG&amp;nbsp;however the 9S08QG8 and 9S08SH8 use the ICS clock system. They are considerably different. I may be able to rewrite the AN2496 software for the ICS but it would take a lot of time and effort.&lt;/P&gt;&lt;P&gt;So what to do? Buy a $100 programmer from P&amp;amp;E to program a $2 chip? Spend a lot of hours of my time writing software to make something that I have already purchased work? Or just give up on the 9S08 family? Maybe the latter. I miss the days of Motorola.&lt;/P&gt;&lt;P&gt;Main reason for this rant: has anyone solved the problem of trimming the 9S08QG8 and 9S08SH8 when using the OSBDM? I don’t want to reinvent the wheel.&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 23:22:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/TRIM-for-9S08SH8-using-OSBDM/m-p/187520#M1348</guid>
      <dc:creator>RogerSchaefer</dc:creator>
      <dc:date>2008-09-22T23:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: TRIM for 9S08SH8 using OSBDM</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/TRIM-for-9S08SH8-using-OSBDM/m-p/187521#M1349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I'm in the same situation develops OSBDM the truth and I am not useless because if the system does not support the basics of a system that is embedded the clock does not work. if someone knows something to fix this I would appreciate.&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 00:56:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/TRIM-for-9S08SH8-using-OSBDM/m-p/187521#M1349</guid>
      <dc:creator>CamiloA_</dc:creator>
      <dc:date>2008-09-29T00:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: TRIM for 9S08SH8 using OSBDM</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/TRIM-for-9S08SH8-using-OSBDM/m-p/187522#M1350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT face="Arial" size="2"&gt;&lt;SPAN&gt;When the MCU is tested at the factory, the trim value is&lt;/SPAN&gt; programmed into the Flash.&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Arial" size="2"&gt;&lt;SPAN&gt;To use this trim value, you should include copying from the byte at 0xffaf to ICSTRIM in your source code.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Arial" size="2"&gt;&lt;SPAN&gt;To use this with the programmers based on the Opensource BDM:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="Arial" size="2"&gt;Set the Hiwave debugger so it does not automatically erase and load the code on startup of the debugger.&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="Arial" size="2"&gt;From the HCS08 Open source BDM menu, select the Flash menu.&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="Arial" size="2"&gt;In the Flash dialog box that comes up, use the "Load" button to load your code.&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="Arial" size="2"&gt;This should program the target device without performing an auto mass-erase.&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="Arial"&gt;&lt;FONT size="2"&gt;&lt;BR /&gt;UcTechnoGeek&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 11:18:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/TRIM-for-9S08SH8-using-OSBDM/m-p/187522#M1350</guid>
      <dc:creator>UcTechnoGeek</dc:creator>
      <dc:date>2008-11-07T11:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: TRIM for 9S08SH8 using OSBDM</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/TRIM-for-9S08SH8-using-OSBDM/m-p/187523#M1351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I have the same issue when I use E-value8 for (R)S08 (another low cost debuger&amp;nbsp;similar to&amp;nbsp;OSBDM). My sulution is:&amp;nbsp;Open the Debugger, Menu&amp;gt;HCS08 Open Source BDM&amp;gt;Show Status, some infomations are shown In the small window. "System Clock&amp;nbsp;&amp;nbsp; 8.98MHz" shows the curent clock frequency. I input&amp;nbsp;trim value manually in to Trim register (for QG/QD, address is $003A,&amp;nbsp;reset value is $80). Type "reset" in Command window then enter. Open the status window again,&amp;nbsp;"System Clock" should be changed now. By trying different values, I can find out the right trim value. So the last thing is to write this value to the source code to save it to Flash.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The trim value&amp;nbsp;varies for different chips. For development, we usualy just reprogram one chip&amp;nbsp;time and time, so we&amp;nbsp;don't need to modify trim value in souce code oftenl. Ofcause, this way is not&amp;nbsp;sutable for volume production.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;(bigger trim value&amp;nbsp;= lower&amp;nbsp;ICS clock)&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Nov 2008 15:02:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/TRIM-for-9S08SH8-using-OSBDM/m-p/187523#M1351</guid>
      <dc:creator>Z_C_Wang</dc:creator>
      <dc:date>2008-11-22T15:02:13Z</dc:date>
    </item>
  </channel>
</rss>

