<?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: CodeWarrior 10.5 SREC loading error in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-10-5-SREC-loading-error/m-p/322384#M11014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was this SREC generated by CodeWarrior?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recreated the problem and it seems to be caused by a "gap" in the srec information. At the end of the file there are two lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1404688591940959" jivemacro_uid="_1404688591940959"&gt;
&lt;P&gt;S109329C00030000000025&lt;/P&gt;
&lt;P&gt;S11332A401008021017001780906FCD57047FF37BD&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first line includes data from address &lt;STRONG&gt;0x329C&lt;/STRONG&gt; to &lt;STRONG&gt;0x32A1&lt;/STRONG&gt; while second line starts at &lt;STRONG&gt;0x32A4&lt;/STRONG&gt;, so there is no data for 0x32A2 and 0x32A3. This causes a programming "jump" and&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;Program Phrase&lt;/EM&gt;&lt;/STRONG&gt; command is executed twice for the same phrase, which is not valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Binary file does not have gaps, and such problem is not present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To confirm this, I modified the s-record file, and this time it programmed successfully. The file I used is attached.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 06 Jul 2014 23:33:54 GMT</pubDate>
    <dc:creator>Jorge_Gonzalez</dc:creator>
    <dc:date>2014-07-06T23:33:54Z</dc:date>
    <item>
      <title>CodeWarrior 10.5 SREC loading error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-10-5-SREC-loading-error/m-p/322383#M11013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI All&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached are SREC and binary files for the TWR-K70F120 kit. The binary was generated from the SREC and programming works correctly. The SREC however fails to load.&lt;/P&gt;&lt;P&gt;The problem looks to be with the the loader having problems with a block of code that it can't program (possibly since the SREC block is an uneven length (?)).&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is console output showing the SREC loading fail, followed by the binary loading being succesful. It shows that two SREC area were successfully programmed but the third (last 23 bytes at 0x32A4) fail.&lt;/P&gt;&lt;P&gt;The problem was verified at two CW10.5 installations but it looks like something that should be easily "fixable", if not already improved in CW10.6 (?). For the moment REC loading is being avoided since binary loading is fine.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- 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 0x1fff0000 0x20000&lt;/P&gt;&lt;P&gt;fl::target -v off -l off&lt;/P&gt;&lt;P&gt;cmdwin::fl::device -d "FTFE_PFlash1M0" -o "128Kx64x1" -a 0x0 0xfffff&lt;/P&gt;&lt;P&gt;cmdwin::fl::image -f "C:\\MJBC\\Internal\\temp_to_delete\\uTaskerSerialBoot.srec" -t "Auto Detect" -re on -r 0x0 0xfffff -oe off&lt;/P&gt;&lt;P&gt;cmdwin::fl::erase image&lt;/P&gt;&lt;P&gt; 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; File is of type Motorola S-Record Format.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Performing target initialization ...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Downloading Flash Device Driver ...&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Reading flash ID ...&lt;/P&gt;&lt;P&gt;Erasing Sector 0x00000000 to 0x00000FFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Erasing Sector 0x00001000 to 0x00001FFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Erasing Sector 0x00002000 to 0x00002FFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Erasing Sector 0x00003000 to 0x00003FFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Erasing ...&lt;/P&gt;&lt;P&gt; Erase Command Succeeded&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;cmdwin::fl::write&lt;/P&gt;&lt;P&gt; Beginning Operation ...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;------------------------- &lt;/P&gt;&lt;P&gt;Using restricted address range 0x00000000 to 0x000FFFFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Programming file C:\MJBC\Internal\temp_to_delete\uTaskerSerialBoot.srec&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Auto-detection is successful.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; File is of type Motorola S-Record Format.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; Downloading Flash Device Driver ...&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Reading flash ID ...&lt;/P&gt;&lt;P&gt;Auto-detection is successful.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; File is of type Motorola S-Record Format.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Downloading 0x00000008 bytes to be programmed at 0x00000000&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Executing program ....&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;Downloading 0x00002EA2 bytes to be programmed at 0x00000400&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Executing program ....&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;&lt;SPAN style="color: #ff0000;"&gt;Downloading 0x00000023 bytes to be programmed at 0x000032A4&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Executing program ....&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Error:&amp;nbsp; Program failed.&amp;nbsp;&amp;nbsp; Flash driver reports the following error(s):&amp;nbsp; Chip reported error during program. Please check that the sector you are programming is erased. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Error: Program failed. Flash driver reports the following error(s):&amp;nbsp; Chip reported error during program. Please check that the sec&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;tor you are programming is erased.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;fl::target -lc "LC for Simple Flash"&lt;/P&gt;&lt;P&gt;fl::target -b 0x1fff0000 0x20000&lt;/P&gt;&lt;P&gt;fl::target -v off -l off&lt;/P&gt;&lt;P&gt;cmdwin::fl::device -d "FTFE_PFlash1M0" -o "128Kx64x1" -a 0x0 0xfffff&lt;/P&gt;&lt;P&gt;cmdwin::fl::image -f "C:\\MJBC\\Internal\\temp_to_delete\\uTaskerSerialBoot.bin" -t "Auto Detect" -re on -r 0x0 0xfffff -oe off&lt;/P&gt;&lt;P&gt;cmdwin::fl::erase image&lt;/P&gt;&lt;P&gt; 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; File is of type Binary/Raw Format.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Performing target initialization ...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Downloading Flash Device Driver ...&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Reading flash ID ...&lt;/P&gt;&lt;P&gt;Erasing Sector 0x00000000 to 0x00000FFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Erasing Sector 0x00001000 to 0x00001FFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Erasing Sector 0x00002000 to 0x00002FFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Erasing Sector 0x00003000 to 0x00003FFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Erasing ...&lt;/P&gt;&lt;P&gt; Erase Command Succeeded&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;Using restricted address range 0x00000000 to 0x000FFFFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Programming file C:\MJBC\Internal\temp_to_delete\uTaskerSerialBoot.bin&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Auto-detection is successful.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; File is of type Binary/Raw Format.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; Downloading Flash Device Driver ...&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Reading flash ID ...&lt;/P&gt;&lt;P&gt;Auto-detection is successful.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; File is of type Binary/Raw Format.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Downloading 0x000032C7 bytes to be programmed at 0x00000000&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Executing program ....&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Program Command Succeeded&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338861"&gt;test_sw_TRW-K70F120.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 17:22:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-10-5-SREC-loading-error/m-p/322383#M11013</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-06-20T17:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior 10.5 SREC loading error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-10-5-SREC-loading-error/m-p/322384#M11014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was this SREC generated by CodeWarrior?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recreated the problem and it seems to be caused by a "gap" in the srec information. At the end of the file there are two lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1404688591940959" jivemacro_uid="_1404688591940959"&gt;
&lt;P&gt;S109329C00030000000025&lt;/P&gt;
&lt;P&gt;S11332A401008021017001780906FCD57047FF37BD&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first line includes data from address &lt;STRONG&gt;0x329C&lt;/STRONG&gt; to &lt;STRONG&gt;0x32A1&lt;/STRONG&gt; while second line starts at &lt;STRONG&gt;0x32A4&lt;/STRONG&gt;, so there is no data for 0x32A2 and 0x32A3. This causes a programming "jump" and&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;Program Phrase&lt;/EM&gt;&lt;/STRONG&gt; command is executed twice for the same phrase, which is not valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Binary file does not have gaps, and such problem is not present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To confirm this, I modified the s-record file, and this time it programmed successfully. The file I used is attached.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jul 2014 23:33:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-10-5-SREC-loading-error/m-p/322384#M11014</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-07-06T23:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior 10.5 SREC loading error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-10-5-SREC-loading-error/m-p/322385#M11015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jorge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the code was generated with CW10.5. You have identified the same effect.&lt;/P&gt;&lt;P&gt;It looks in fact be a problem with the SREC loader that doesn't handle such gaps in the SREC data - &lt;STRONG&gt;to correct the problem at the source the Flash programming utility used in CW needs to be modified/improved to fill in the missing data&lt;/STRONG&gt; (eg. with 0xff) when gaps are detected so that it doesn't result in phrase porogramming errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 16:58:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-10-5-SREC-loading-error/m-p/322385#M11015</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-07-07T16:58:18Z</dc:date>
    </item>
  </channel>
</rss>

