<?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: Code Warrior 8.8 Auto Generated Code Error in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-Warrior-8-8-Auto-Generated-Code-Error/m-p/1247633#M7768</link>
    <description>&lt;P&gt;Thank you for your kind answer.&lt;/P&gt;&lt;P&gt;I'm using MPC8349E-MiTX (rev.1) E/V board from NXP now. (You can choose this board when creating a project in Code Warrior v8.8) I was expecting that BRx and ORx should be modified to suit my target board, but what I don't understand is the mismatch between the (Red text) source code and the comments. Obviously, there is a mismatch between the two, and I don't know which of them is correct. Should I trust the source code or the comments? It makes me confused &lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Mar 2021 23:31:36 GMT</pubDate>
    <dc:creator>RyanOh</dc:creator>
    <dc:date>2021-03-17T23:31:36Z</dc:date>
    <item>
      <title>Code Warrior 8.8 Auto Generated Code Error</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-Warrior-8-8-Auto-Generated-Code-Error/m-p/1245982#M7765</link>
      <description>&lt;P&gt;##############################################&lt;BR /&gt;# Local Bus Interface (LBIU) Configuration&lt;BR /&gt;##############################################&lt;/P&gt;&lt;P&gt;## CS0 - 8MB FLASH&lt;BR /&gt;#writemem.l 0xe0005000 &lt;STRONG&gt;0xff001&lt;/STRONG&gt;001 # BR0 base address at &lt;STRONG&gt;0xFF000000&lt;/STRONG&gt;, port size 16 bit, GPCM, valid&lt;BR /&gt;#writemem.l 0xe0005004 0xff000ff7 # OR0 16MB flash size (two 8M), 15 w.s., timing relaxed&lt;/P&gt;&lt;P&gt;# CS0 - 8MB FLASH&lt;BR /&gt;writemem.l 0xe0005000 &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0xff001&lt;/STRONG&gt;&lt;/FONT&gt;001 # BR0 base address at &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0xFE000000&lt;/STRONG&gt;&lt;/FONT&gt;, port size 16 bit, GPCM, valid&lt;BR /&gt;writemem.l 0xe0005004 0xff000ff7 # OR0 16MB flash size (two 8M), 15 w.s., timing relaxed&lt;/P&gt;&lt;P&gt;## CS1 - board VSC7385&lt;BR /&gt;#writemem.l 0xe0005008 &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0xf8000&lt;/STRONG&gt;&lt;/FONT&gt;801 # BR1 base address at &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0xFE400000&lt;/STRONG&gt;&lt;/FONT&gt;, port size 8 bit, GPCM, valid&lt;BR /&gt;#writemem.l 0xe000500c 0xfffe09ff # OR1 128KB size, 15 w.s., timing relaxed, external TA&lt;/P&gt;&lt;P&gt;# CS2 - 64MB SDRAM&lt;BR /&gt;##writemem.l 0xe0005014 0xfc006901 # OR2 32KB size, 13 rows, 9 cols, 64MB&lt;BR /&gt;##writemem.l 0xe0005010 &lt;STRONG&gt;0xf0001&lt;/STRONG&gt;861 # BR2 base address at &lt;STRONG&gt;0xF0000000&lt;/STRONG&gt;, port size 32 bit, SDRAM, valid&lt;/P&gt;&lt;P&gt;# CS2 - LED &amp;amp; Board ID&lt;BR /&gt;writemem.l 0xe0005014 0xffe0ef97 # OR2 128KB size&lt;BR /&gt;writemem.l 0xe0005010 &lt;STRONG&gt;0xf8000&lt;/STRONG&gt;801 # BR2 base address at &lt;STRONG&gt;0xF8000000&lt;/STRONG&gt;, port size 8 bit, GPCM, valid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;The source code above is auto generated code from Code Warrior 8.8&amp;nbsp;When I make a new PPC project with MPC8349E + MITX(rev1) board. You can easily find comments and code mismatches. (See red color) specially in the case of the base register. In the data sheet, 17 bits represent the base address, but the code and the comment are some correct and some are wrong. What should I trust?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 02:29:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-Warrior-8-8-Auto-Generated-Code-Error/m-p/1245982#M7765</guid>
      <dc:creator>RyanOh</dc:creator>
      <dc:date>2021-03-16T02:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Code Warrior 8.8 Auto Generated Code Error</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-Warrior-8-8-Auto-Generated-Code-Error/m-p/1247031#M7767</link>
      <description>&lt;P&gt;The initialization file provided in CodeWarrior is only used for MPC8349MDS demo board, you need to modify BRx and ORx registers according to your target board.&lt;/P&gt;
&lt;P&gt;Please refer to section "10.3.1.1 Base Registers (BR0–BR7)" and "10.3.1.2 Option Registers (OR0–OR7)" in&amp;nbsp;&lt;A href="https://www.nxp.com.cn/docs/en/reference-manual/MPC8349EARM.pdf" target="_blank"&gt;https://www.nxp.com.cn/docs/en/reference-manual/MPC8349EARM.pdf&lt;/A&gt;&amp;nbsp;to configure BRx and ORx registers according to your target board.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 08:58:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-Warrior-8-8-Auto-Generated-Code-Error/m-p/1247031#M7767</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2021-03-17T08:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Code Warrior 8.8 Auto Generated Code Error</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-Warrior-8-8-Auto-Generated-Code-Error/m-p/1247633#M7768</link>
      <description>&lt;P&gt;Thank you for your kind answer.&lt;/P&gt;&lt;P&gt;I'm using MPC8349E-MiTX (rev.1) E/V board from NXP now. (You can choose this board when creating a project in Code Warrior v8.8) I was expecting that BRx and ORx should be modified to suit my target board, but what I don't understand is the mismatch between the (Red text) source code and the comments. Obviously, there is a mismatch between the two, and I don't know which of them is correct. Should I trust the source code or the comments? It makes me confused &lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 23:31:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-Warrior-8-8-Auto-Generated-Code-Error/m-p/1247633#M7768</guid>
      <dc:creator>RyanOh</dc:creator>
      <dc:date>2021-03-17T23:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Code Warrior 8.8 Auto Generated Code Error</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-Warrior-8-8-Auto-Generated-Code-Error/m-p/1247856#M7769</link>
      <description>&lt;P&gt;According to the LAW definition, the source code is correct.&lt;/P&gt;
&lt;P&gt;# Local Bus Local Access Windows&lt;BR /&gt;#################################&lt;BR /&gt;## WINDOW 0 - FLASH&lt;BR /&gt;#writemem.l 0xe0000020 0xff000000 # LBLAWBAR1 - begining at 0xFF000000&lt;BR /&gt;#writemem.l 0xe0000024 0x80000017 # LBLAWAR1 - enable, size = 16MB&lt;/P&gt;
&lt;P&gt;# WINDOW 1 - FLASH&lt;BR /&gt;writemem.l 0xe0000028 0xff000000 # LBLAWBAR1 - begining at 0xFE000000&lt;BR /&gt;writemem.l 0xe000002c 0x80000017 # LBLAWAR1 - enable, size = 16MB&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;# WINDOW 2 - board BCSRs&lt;BR /&gt;##writemem.l 0xe0000030 0xf8000000 # LBLAWBAR2 - begining at 0xf8000000&lt;BR /&gt;##writemem.l 0xe0000034 0x8000000e # LBLAWAR2 - enable, size = 32KB&lt;/P&gt;
&lt;P&gt;# WINDOW 3 - local bus SDRAM&lt;BR /&gt;##writemem.l 0xe0000038 0xf0000000 # LBLAWBAR3 - begining at 0xf0000000&lt;BR /&gt;##writemem.l 0xe000003c 0x80000019 # LBLAWAR3 - enable, size = 64MB&lt;/P&gt;
&lt;P&gt;# PCI Local Access Windows&lt;BR /&gt;#################################&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 06:48:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-Warrior-8-8-Auto-Generated-Code-Error/m-p/1247856#M7769</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2021-03-18T06:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Code Warrior 8.8 Auto Generated Code Error</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-Warrior-8-8-Auto-Generated-Code-Error/m-p/1247888#M7770</link>
      <description>&lt;P&gt;I still don't get it. F&lt;SPAN&gt;or example,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;################################################################&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;writemem.l 0xe0000028 0xff000000&amp;nbsp; &amp;nbsp; # LBLAWBAR1 - begining at 0xFE000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;################################################################&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In this one line, the value of 0xE000_0028 is 0x&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;FF&lt;/FONT&gt;&lt;/STRONG&gt;00_0000.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The comment should be "LBLAWBAR1 - beginning at 0x&lt;FONT color="#000000"&gt;F&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;F&lt;/FONT&gt;&lt;/STRONG&gt;000000"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but the it says "LBLAWBAR1 - beginning at 0x&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;F&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;E&lt;/FONT&gt;&lt;/STRONG&gt;000000"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this right? What did I miss....?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 07:16:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-Warrior-8-8-Auto-Generated-Code-Error/m-p/1247888#M7770</guid>
      <dc:creator>RyanOh</dc:creator>
      <dc:date>2021-03-18T07:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Code Warrior 8.8 Auto Generated Code Error</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-Warrior-8-8-Auto-Generated-Code-Error/m-p/1247893#M7771</link>
      <description>&lt;P&gt;Yes, you are correct.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 07:19:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-Warrior-8-8-Auto-Generated-Code-Error/m-p/1247893#M7771</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2021-03-18T07:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Code Warrior 8.8 Auto Generated Code Error</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-Warrior-8-8-Auto-Generated-Code-Error/m-p/1250214#M7775</link>
      <description>&lt;P&gt;If my opinion is correct, then it makes sense. Problem solved. I will trust the source code, not the comment. Thank you for&amp;nbsp;good advice.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 08:01:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-Warrior-8-8-Auto-Generated-Code-Error/m-p/1250214#M7775</guid>
      <dc:creator>RyanOh</dc:creator>
      <dc:date>2021-03-23T08:01:01Z</dc:date>
    </item>
  </channel>
</rss>

