<?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: CW 10.6  flash programmer problem in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-10-6-flash-programmer-problem/m-p/317503#M10962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Walter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you use the internal clock source. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I suspect the problem could be related to internal clock trim registers (ICSTRM - TRIM and ICSSC - FTRIM).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;NVTRIM, NVFTRIM includes factory or custom trim values in Flash - these are copied into TRIM/FTRIM after reset.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I guess that &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;hiwave.exe debugger does trimming while loading the s-record whereas Flash Programmer does not.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Can you possibly try to compare NVTRIM / NVFTRIM in cw 6.3 vs. CW 10.6?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; Hope it helps.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Stan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2014 14:34:53 GMT</pubDate>
    <dc:creator>stanish</dc:creator>
    <dc:date>2014-06-12T14:34:53Z</dc:date>
    <item>
      <title>CW 10.6  flash programmer problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-10-6-flash-programmer-problem/m-p/317502#M10961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a working code (.S19 file -SH32 ) and tried to program it with the flash programmer under CW 10.6 . Before we used CW 6.3 (classical) and we had no problem. We used the hiwave.exe debugger.If&amp;nbsp; I use the "flash to target" under 10.6 all seems to be ok. But there seems to be a problem with the baudrate of the serial port of the MCU(1200bd). I get only garbled characters back. It looks like there is something wrong with the MCU clock. I tried version 10.3,10.4, 10.6 with the same results. There is no problem flashing the .s19 file with "hiwave.exe" of CW 6.3.&lt;/P&gt;&lt;P&gt;Programming adapter used&amp;nbsp; " P&amp;amp;E Multilink Universal"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is log file under 10.6 &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fl::target -lc "LC for Simple Flash"&lt;/P&gt;&lt;P&gt; fl::target -b 0x80 0x400&lt;/P&gt;&lt;P&gt; fl::target -v off -l off&lt;/P&gt;&lt;P&gt; cmdwin::fl::device -d "MC9S08SH32_FLASH" -o "32kx16x1" -a 0x8000 0xffff&lt;/P&gt;&lt;P&gt; cmdwin::fl::image -f "C:\\Users\\walter\\Downloads\\treg232\\treg232.s19" -t "Auto Detect" -re on -r 0x8000 0xffff -oe off&lt;/P&gt;&lt;P&gt; cmdwin::fl::erase image&lt;/P&gt;&lt;P&gt;&amp;nbsp; Beginning Operation ...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; ------------------------- &lt;/P&gt;&lt;P&gt; Auto-detection is successful.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; File is of type Motorola S-Record Format.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Performing target initialization ...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Device MC9S08SH32_FLASH&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Detect frequence ...&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Frequence 7980.27 Khz&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Erasing ..............&lt;/P&gt;&lt;P&gt; Erase Command Succeeded.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Device MC9S08SH32_FLASH&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; cmdwin::fl::write&lt;/P&gt;&lt;P&gt; ------------------------- &lt;/P&gt;&lt;P&gt; Flash Operation.&amp;nbsp; ... &lt;/P&gt;&lt;P&gt; Auto-detection is successful.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; File is of type Motorola S-Record Format.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Device MC9S08SH32_FLASH&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Programming ...................&lt;/P&gt;&lt;P&gt; Device MC9S08SH32_FLASH&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Program Command Succeeded&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Flash Operation. done&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 16:34:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-10-6-flash-programmer-problem/m-p/317502#M10961</guid>
      <dc:creator>DK1BN</dc:creator>
      <dc:date>2014-06-11T16:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: CW 10.6  flash programmer problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-10-6-flash-programmer-problem/m-p/317503#M10962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Walter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you use the internal clock source. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I suspect the problem could be related to internal clock trim registers (ICSTRM - TRIM and ICSSC - FTRIM).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;NVTRIM, NVFTRIM includes factory or custom trim values in Flash - these are copied into TRIM/FTRIM after reset.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I guess that &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;hiwave.exe debugger does trimming while loading the s-record whereas Flash Programmer does not.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Can you possibly try to compare NVTRIM / NVFTRIM in cw 6.3 vs. CW 10.6?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; Hope it helps.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Stan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 14:34:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-10-6-flash-programmer-problem/m-p/317503#M10962</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2014-06-12T14:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: CW 10.6  flash programmer problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-10-6-flash-programmer-problem/m-p/317504#M10963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes,we are using the internal clock. I think you are correct the hiwave.exe debugger does the&amp;nbsp; trimming while loading the s-record&amp;nbsp; and afterwards the baudrate is correct.&lt;/P&gt;&lt;P&gt;I will check NVTRIM/NVFTRIM. But how is it possible then to program a .s19 file(CW 6.3)&amp;nbsp; under CW 10.x&amp;nbsp; w/o transferring the whole project to&amp;nbsp; 10.x if there is no trimming using the flash programmer (CW 10.x)?&amp;nbsp; How is the trimming accomplished in 10.x?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 07:07:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-10-6-flash-programmer-problem/m-p/317504#M10963</guid>
      <dc:creator>DK1BN</dc:creator>
      <dc:date>2014-06-20T07:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: CW 10.6  flash programmer problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-10-6-flash-programmer-problem/m-p/317505#M10964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answer by Freescale Support:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Thank you for contacting us about this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem with the flash programmer not trimming the S08 devices was&lt;/P&gt;&lt;P&gt;already reported to our developers with internal ticket number&lt;/P&gt;&lt;P&gt;ENGR00278719.&lt;STRONG&gt; Unfortunately, they determined not to fix it&lt;/STRONG&gt; due to other&lt;/P&gt;&lt;P&gt;product priorities. I am very sorry for this inconvenience. However this&lt;/P&gt;&lt;P&gt;issue is not present when programming the device using CodeWarrior debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And as other alternatives, below you have some suggestions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Using P&amp;amp;E PROGHCS08. This software is not for free, but it does not&lt;/P&gt;&lt;P&gt;have the problem about the trim value. In fact there is a dedicated&lt;/P&gt;&lt;P&gt;command for programming the trim:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="moz-txt-link-freetext" href="http://www.pemicro.com/products/product_viewDetails.cfm?product_id=27"&gt;http://www.pemicro.com/products/product_viewDetails.cfm?product_id=27&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Using a Cyclone programmer. This tool can also program the trim at&lt;/P&gt;&lt;P&gt;production.&lt;/P&gt;&lt;P&gt;3) By means of hiwave. As you mentioned, the issue is not present with&lt;/P&gt;&lt;P&gt;this software tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope my response helps to clarify. If you still have doubts, please&lt;/P&gt;&lt;P&gt;let me know.&lt;/P&gt;&lt;P&gt;Have a nice day!"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 06:51:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW-10-6-flash-programmer-problem/m-p/317505#M10964</guid>
      <dc:creator>DK1BN</dc:creator>
      <dc:date>2014-06-24T06:51:25Z</dc:date>
    </item>
  </channel>
</rss>

