<?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: How do I preserve Factory Trim values when programming? in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174024#M11935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Peg:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for the reply.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Yes, I am using Hiwave debugger (build 6124)&amp;nbsp;to program, but the menus and their&lt;/DIV&gt;&lt;DIV&gt;contents (as I'm sure you know) change, depending on your environment.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So there are two different scenarios:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1.&amp;nbsp; To download the DEMO board, In Hiwave's &amp;nbsp;"ICD Connection Manager" window,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&amp;nbsp;select "connect", download and program the flash.&amp;nbsp; In this mode, the Multilink&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cyclone Pro menu does have an&amp;nbsp;"Advanced" menu item where I can select&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; automatic trim as you mentioned.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;2.&amp;nbsp; To download my board with the 6-pin BDM header, I have to use a BDM pod&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (I got a cheaper one from Univelop, since I'm not planning on programming&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; many of these).&amp;nbsp; So in that mode, I cannot download the same way.&amp;nbsp; I abort&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the ICD screen, and type "set gdi" in the command window.&amp;nbsp; I no longer have&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a "Mulilink" menu.&amp;nbsp; It changes to "Open Source BDM".&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Virgil&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 Jul 2008 02:57:06 GMT</pubDate>
    <dc:creator>WillDesignForFo</dc:creator>
    <dc:date>2008-07-20T02:57:06Z</dc:date>
    <item>
      <title>How do I preserve Factory Trim values when programming? - MC9S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174019#M11930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi folks:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This is my first Freescale project, so it's been a learning experience.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I wrote my program in Codewarrior 5.1 (that came with the demo board)&lt;/DIV&gt;&lt;DIV&gt;and tested it on the DEMO board for the MC9S08QG8, and it downloads&lt;/DIV&gt;&lt;DIV&gt;and runs OK.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Then I made a batch of boards with the MC9S08QG8 on it, and used the&lt;/DIV&gt;&lt;DIV&gt;BDM pod to download the same code to my target board.&amp;nbsp; The code got&lt;/DIV&gt;&lt;DIV&gt;there OK, but I realized the running frequency was wrong because the&lt;/DIV&gt;&lt;DIV&gt;Serial Port was spitting out garbage.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm using the ICS to use less parts.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So when I figured out that I overwrote the 2 bytes for the Factory Trim values&lt;/DIV&gt;&lt;DIV&gt;(0xFFAE, 0xFFAF), I re-wrote them with various values until my running&lt;/DIV&gt;&lt;DIV&gt;frequency was once again 16.0MHz and the Serial Port worked fine.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So after that long introduction...how do I program more boards, this time&lt;/DIV&gt;&lt;DIV&gt;preserving the factory trim value?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advance.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Added p/n to subject.&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NLFSJ on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2008-07-18&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;09:13 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 04:05:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174019#M11930</guid>
      <dc:creator>WillDesignForFo</dc:creator>
      <dc:date>2008-07-18T04:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I preserve Factory Trim values when programming?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174020#M11931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;When the 9S08 is passing the last test sequences in the factory, the ICSTRM byte is changed until it gives the corrrect fBUS frequency. The value is then written into the TRIM byte high up in the Flash EPROM memory.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This means that when you pick a brandnew 9S08, the Flash EPROM is erased, expcept for one byte, the TRIM value.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;To use this byte in your code, just write&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ICSTRM = TRIM;&lt;/DIV&gt;&lt;DIV&gt;and it will copy the TRIM value into the ICSTRM.&lt;/DIV&gt;&lt;DIV&gt;Note that it is not called TRIM in all versions of 9S08. If you get errors, look in the include file that contains all the register names, and you can see what name to use.&lt;/DIV&gt;&lt;DIV&gt;Also note that there are, right now, three differenct versions of the clock circuit. They are called ICS, ICG and MCG, so the xxxTRM register might not be called ICSTRM in your MCU.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When the Flash EPROM is bulk erased, everything including the TRIM byte is erased.&lt;/DIV&gt;&lt;DIV&gt;But good enough, the erase program saves the TRIM value in advance, and then writes it back after you have erased the Flah.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If you by mistake have managed to erase the TRIM value for good, most programmers offer an automatic update of the value. PEMicro offerers you to either use a standard value of 31.25 kHz or your own value.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Note that if the TRIM value gets reset, to 0xff, the ICSTRM value willl treat it as the value 0x80.&lt;/DIV&gt;&lt;DIV&gt;In this way, if the TRIM value gets erased, the calbration value will be +/- 0%.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Ake&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 14:13:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174020#M11931</guid>
      <dc:creator>Ake</dc:creator>
      <dc:date>2008-07-18T14:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I preserve Factory Trim values when programming?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174021#M11932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Ake,&lt;BR /&gt;&lt;BR /&gt;I believe I took you to task on this previously, but here we go again.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Ake wrote:&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;When the Flash EPROM is bulk erased, everything including the TRIM byte is erased.&lt;/DIV&gt;&lt;DIV&gt;But good enough, the erase program saves the TRIM value in advance, and then writes it back after you have erased the Flah.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;I don't think this actually happens.&lt;BR /&gt;If it did why does the OP have a problem?&lt;BR /&gt;How do you instuct CW to do it if it is not default behaviour?&lt;BR /&gt;After it is erased you just have it calculate it again for you.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Ake wrote:&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;Note that if the TRIM value gets reset, to 0xff, the ICSTRM value willl treat it as the value 0x80.&lt;/DIV&gt;&lt;DIV&gt;In this way, if the TRIM value gets erased, the calbration value will be +/- 0%.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Ake&lt;/DIV&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;Which device does this occur with? All I know treat $FF as $FF. Most example code will test for $FF and then replace it with $80 but it is not done automatically by the device AFAIK.&lt;BR /&gt;&lt;BR /&gt;I always erase new devices and have the software/pod calculate a new value anyway. The trim value required is affected by many variables, the biggest one is the operating voltage. So you are better off ignoring the factory supplied value and recalculating yourself with the actual board operating conditions.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 15:46:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174021#M11932</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2008-07-18T15:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I preserve Factory Trim values when programming?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174022#M11933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks to both of you for replying.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So Peg, I'll just ask the dumb question...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is there a piece of software to calibrate the Trim values, or is it manually&lt;/DIV&gt;&lt;DIV&gt;doing exactly what I did on the real board with the real voltage regulator?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 16:32:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174022#M11933</guid>
      <dc:creator>WillDesignForFo</dc:creator>
      <dc:date>2008-07-18T16:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I preserve Factory Trim values when programming?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174023#M11934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I see you are using Codewarrior.&lt;BR /&gt;In Hiwave (the debugger) under the menu named after your connection (Possibly Multilink/CyclonePro)&lt;BR /&gt;Choose "Advanced Programming/Debug Options"&lt;BR /&gt;then tick the box next to "Calculate trim and programme the non-volatile trim register"&lt;BR /&gt;Or if you use the Expert mode (or P&amp;amp;E software directly) use the PT command.&lt;BR /&gt;&lt;BR /&gt;Your code will still needs to move this value(s) to the working register(s).&lt;BR /&gt;&lt;BR /&gt;BTW the previous mention by Ake of this which I challenged (and remains unchallenged back) is &lt;A href="http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&amp;amp;message.id=10433" target="_blank"&gt;here&lt;/A&gt;.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by peg on &lt;SPAN class="date_text"&gt;2008-07-18&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;08:35 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 17:34:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174023#M11934</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2008-07-18T17:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I preserve Factory Trim values when programming?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174024#M11935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Peg:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for the reply.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Yes, I am using Hiwave debugger (build 6124)&amp;nbsp;to program, but the menus and their&lt;/DIV&gt;&lt;DIV&gt;contents (as I'm sure you know) change, depending on your environment.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So there are two different scenarios:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1.&amp;nbsp; To download the DEMO board, In Hiwave's &amp;nbsp;"ICD Connection Manager" window,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&amp;nbsp;select "connect", download and program the flash.&amp;nbsp; In this mode, the Multilink&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cyclone Pro menu does have an&amp;nbsp;"Advanced" menu item where I can select&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; automatic trim as you mentioned.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;2.&amp;nbsp; To download my board with the 6-pin BDM header, I have to use a BDM pod&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (I got a cheaper one from Univelop, since I'm not planning on programming&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; many of these).&amp;nbsp; So in that mode, I cannot download the same way.&amp;nbsp; I abort&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the ICD screen, and type "set gdi" in the command window.&amp;nbsp; I no longer have&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a "Mulilink" menu.&amp;nbsp; It changes to "Open Source BDM".&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Virgil&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jul 2008 02:57:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174024#M11935</guid>
      <dc:creator>WillDesignForFo</dc:creator>
      <dc:date>2008-07-20T02:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I preserve Factory Trim values when programming?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174025#M11936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Well, for one thing, you didn't get a cheaper one, you got a different one.&lt;BR /&gt;OSBDM is completely different from a P&amp;amp;E Multilink, and near as I can tell it does not support calibration.&lt;BR /&gt;The UI you see with regards to the BDM is provided by the BDM manufacturer. P&amp;amp;E provides the best functionality.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The good news is you should be able to use your demo board as a BDM for your production boards.&lt;BR /&gt;&lt;BR /&gt;You need to solder a 6 pin header on the demo board and get a 6 pin flat cable.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by JimDon on &lt;SPAN class="date_text"&gt;2008-07-19&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;04:42 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jul 2008 03:41:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174025#M11936</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-07-20T03:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I preserve Factory Trim values when programming?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174026#M11937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Well let's hope it was cheaper, as this is the only benefit of OSBDM over a P&amp;amp;E Multilink.&lt;BR /&gt;The OSBDM does not support trim calculation.&lt;BR /&gt;The hard work of trim calculation is done by the pod. The clockrate of the OSBDM is not fast enough for this.&lt;BR /&gt;Another method is to use connect a known frequency source and have some code in the device work it out for you. Refer to &lt;A href="http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&amp;amp;message.id=6904" target="_blank"&gt;this post&lt;/A&gt; for some notes on this.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jul 2008 05:35:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174026#M11937</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2008-07-20T05:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I preserve Factory Trim values when programming?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174027#M11938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;HR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;JimDon wrote:&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;Well, for one thing, you didn't get a cheaper one, you got a different one.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I got it for $40 including shipping, so I believe it was cheaper.&amp;nbsp; When I started this job I didn't even know I needed a different device to program the part than what came in the Demo kit.&amp;nbsp; That was when I started reading stuff on these boards.&amp;nbsp; When all else fails, read the message boards!&amp;nbsp; These boards are quite useful.&amp;nbsp; Thanks to all who contribute good information!&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;HR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;JimDon wrote:&lt;BR /&gt;The good news is you should be able to use your demo board as a BDM for your production boards.&lt;BR /&gt;&lt;BR /&gt;You need to solder a 6 pin header on the demo board and get a 6 pin flat cable.&lt;BR /&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;I was wondering if I could do that, as I see that is physically possible.&amp;nbsp; I just didn't want to try it yet and fry the demo board.&amp;nbsp; The Demo boards pull nearly the current limit for a USB device, so I didn't want to try it yet.&amp;nbsp; I would remove the microcontroller first, so there is no confusion with two micros in parallel.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Virgil&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jul 2008 06:39:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174027#M11938</guid>
      <dc:creator>WillDesignForFo</dc:creator>
      <dc:date>2008-07-20T06:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I preserve Factory Trim values when programming?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174028#M11939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Well, I suppose what I meant is that while you paid less for the OSBDM, you did not get a P&amp;amp;E BDM for 40.00, you got an OSBDM - which as you can see is not as well supported. Buying a VW instead of a BMW does not mean you got a BMW cheaper.&lt;BR /&gt;&lt;BR /&gt;Yes, you must remove the chip. It is not required that the DEMO board power the target board - just be sure not the connect the VDD pins between the two if you are using a separate power supply. The P&amp;amp;E USB Multilink does not supply power to the target either.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jul 2008 07:06:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174028#M11939</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-07-20T07:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I preserve Factory Trim values when programming?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174029#M11940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello Jim,&lt;BR /&gt;&lt;BR /&gt;I would like to mention that using a reference design to debug a processor external to an evaluation board is not supported by P&amp;amp;E. While it might work for some evaluation boards and processors this is not functionality that is tested and validated by P&amp;amp;E.&lt;BR /&gt;&lt;BR /&gt;Once a customer is ready to move to designing his custom board, we highly recommend perchasing a USB ML 12 or a Cyclone Pro.&lt;BR /&gt;&lt;BR /&gt;To answer an original question, P&amp;amp;E calculates and programs a non-volatile trim register with the accuracy of .2% if the appropriate setting is selected in Advanced Settings dialog box.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zahar&lt;BR /&gt;P&amp;amp;E&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 04:09:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174029#M11940</guid>
      <dc:creator>Zahar</dc:creator>
      <dc:date>2008-07-24T04:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I preserve Factory Trim values when programming?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174030#M11941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello everybody,&lt;BR /&gt;&lt;BR /&gt;In order to assist P&amp;amp;E with this "testing and validation" process, could anyone that finds a problem with using a demoboard in this manner which is subsequently alleviated by using a USB ML 12 or Cyclone Pro please report it here.&lt;BR /&gt;&lt;BR /&gt;Thank You.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 05:19:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174030#M11941</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2008-07-24T05:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I preserve Factory Trim values when programming?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174031#M11942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks for the advice on using the demo board.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I added the 6-pin header and ribbon cable to my demo board for the MC9S08QG8, and&lt;/DIV&gt;&lt;DIV&gt;it works great.&amp;nbsp; It's actually much more reliable than the connection for the Univelop BDM.&lt;/DIV&gt;&lt;DIV&gt;Oh, and I removed the socketed S08 on the demo board.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;And I can now automatically program the frequency trim values.&amp;nbsp; I removed the power pin&lt;/DIV&gt;&lt;DIV&gt;from the 6-pin connector so I use the regulated power on the actual board for a more&lt;/DIV&gt;&lt;DIV&gt;accurate environment.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Virgil&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 21:38:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174031#M11942</guid>
      <dc:creator>WillDesignForFo</dc:creator>
      <dc:date>2008-07-24T21:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I preserve Factory Trim values when programming?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174032#M11943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;peg wrote:&lt;BR /&gt;Hello everybody,&lt;BR /&gt;&lt;BR /&gt;In order to assist P&amp;amp;E with this "testing and validation" process, could anyone that finds a problem with using a demoboard in this manner which is subsequently alleviated by using a USB ML 12 or Cyclone Pro please report it here.&lt;BR /&gt;&lt;BR /&gt;Thank You.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;BR /&gt;I did buy a P&amp;amp;E BDM USB Multilink and for 99.00 it is a great deal. If you are a professional developer, it is the way to go.&lt;BR /&gt;&lt;BR /&gt;On the other hand, I help out many students, and have discovered that the DEMO boards seem to work fine. (BTW Students can get a Multilink for 85.00). Supposedly they are not as well protected, but since I don't have a schematic I can't comment of the differences. Also, if you need to burn RS the demo board will not provide the VPP, so that is one limitation.&lt;BR /&gt;&lt;BR /&gt;If asked I would recommend the 99.00 PE over the OSBDM at what ever they go for, because 99.00 is not that much and PE does an excellent job of support and features. I am grateful that PE has supplied this level of support at a reasonable price - I've paid much more for BDMs with really crappy support.&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 22:27:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-preserve-Factory-Trim-values-when-programming-MC9S08QG8/m-p/174032#M11943</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-07-24T22:27:49Z</dc:date>
    </item>
  </channel>
</rss>

