<?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 v6.4 Post-Compile TDT in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-v6-4-Post-Compile-TDT/m-p/669376#M13916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi Marshall,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;I have tested on my side using CodeWarrior for ColdFire v6.4 and it is also working:&lt;/DIV&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20438iE7957B1586AECCF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.jpg" alt="pastedImage_1.jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;DIV class=""&gt;After preprocessing the file:&lt;/DIV&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20482iCA9386E4B4AFFE8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.jpg" alt="pastedImage_2.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Aug 2017 17:01:41 GMT</pubDate>
    <dc:creator>Carlos_Mendoza</dc:creator>
    <dc:date>2017-08-15T17:01:41Z</dc:date>
    <item>
      <title>CodeWarrior v6.4 Post-Compile TDT</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-v6-4-Post-Compile-TDT/m-p/669371#M13911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I am working on implementing a feature into one of our projects, and I am running into a bit of a conundrum. I am generating a generic text file (using python) in which it deconstructs one of my Structures (and all sub-Structures) into a list of generic types&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, if I had a structure like this:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#define MAX_ARRAY_SIZE_DEFINITION 100&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define MAX_ARRAY_SIZE MAX_ARRAY_SIZE_DEFINITION&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;typedef&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;struct&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 uint_32&amp;nbsp;&amp;nbsp; checksum&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 uint_16&amp;nbsp;&amp;nbsp; sig1&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 uint_16&amp;nbsp;&amp;nbsp; sig2&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 MyStruct2 SubStruct&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;MyStruct&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;typedef&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;struct&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 uchar&amp;nbsp;&amp;nbsp; X&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 uchar&amp;nbsp;&amp;nbsp; Y&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 uint_16 Z&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;MAX_ARRAY_SIZE&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The output would look like this:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;uint_32 Checksum
uint_16 sig1
uint_16 sig2
‍‍‍‍‍‍‍uchar x
uchar y
uint_16 Z[100]&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I have is that the MAX_ARRAY_SIZE is not easily readable (and not as simple as it is defined in the code above), so there is no way for me to parse that part out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was looking through the TDT files, and ELF files to see if I could determine the array size based on those files, but I cannot get what i need from the ELF file (that i know of, been using Objdump a whole bunch but can't discern the information i need from it). So I was wondering if the TDT files held an encoded definition of the array size?&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Z" is actually a much more detailed and unique name, so i can find it exactly as-is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 17:29:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-v6-4-Post-Compile-TDT/m-p/669371#M13911</guid>
      <dc:creator>inuyashaitb</dc:creator>
      <dc:date>2017-08-07T17:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior v6.4 Post-Compile TDT</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-v6-4-Post-Compile-TDT/m-p/669372#M13912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mashall.&lt;/P&gt;&lt;P&gt;To investigate your problem, we need more information:&lt;/P&gt;&lt;P&gt;1. Your CW version: Start the IDE and click on Help | About Freescale CodeWarrior. Click on Installed Products.Save all info displayed into a txt file and upload it here&lt;/P&gt;&lt;P&gt;2. your chip part number&lt;/P&gt;&lt;P&gt;3. demo project.&lt;/P&gt;&lt;P&gt;4. problem screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your cooperation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jennie Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 05:55:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-v6-4-Post-Compile-TDT/m-p/669372#M13912</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2017-08-08T05:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior v6.4 Post-Compile TDT</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-v6-4-Post-Compile-TDT/m-p/669373#M13913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Code Warrior About" class="image-1 jive-image j-img-original" src="http://i137.photobucket.com/albums/q201/InuyashaITB/Code%20Warrior%20About_zpsfsloao6t.png" style="width: 620px; height: 339px;" /&gt;&lt;/P&gt;&lt;P&gt;Chip: MFC5282 (M5282EVB(CFM) is what i use to flash it using CF Flasher)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Demo Project: none, this is a fully-released build that we developed and built-upon the MQX RTOS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem SS: I don't think you understood what i was asking, no way to screenshot... I am asking if the .tdt files or .elf files contain information about variable array declaration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 13:19:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-v6-4-Post-Compile-TDT/m-p/669373#M13913</guid>
      <dc:creator>inuyashaitb</dc:creator>
      <dc:date>2017-08-08T13:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior v6.4 Post-Compile TDT</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-v6-4-Post-Compile-TDT/m-p/669374#M13914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marshall,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The C preprocessor macros are used automatically by the C compiler to transform your program before actual compilation, so you will need to preprocess the files so that all the substitutions are made in order to get the size of the array:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18257iE3F182D554653228/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will see that inside the generated file the MAX_ARRAY_SIZE_DEFINITION has been replaced by its value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18311i38AFA9D506437543/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 15:10:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-v6-4-Post-Compile-TDT/m-p/669374#M13914</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2017-08-10T15:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior v6.4 Post-Compile TDT</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-v6-4-Post-Compile-TDT/m-p/669375#M13915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was really hoping that would work for me. Unfortunately my pre-process did not replace all of the array definitions :\&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18287i610150DF75CD0BFF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It looks like we have different versions of software as well, maybe it was not implemented in my version?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 14:07:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-v6-4-Post-Compile-TDT/m-p/669375#M13915</guid>
      <dc:creator>inuyashaitb</dc:creator>
      <dc:date>2017-08-11T14:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior v6.4 Post-Compile TDT</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-v6-4-Post-Compile-TDT/m-p/669376#M13916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi Marshall,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;I have tested on my side using CodeWarrior for ColdFire v6.4 and it is also working:&lt;/DIV&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20438iE7957B1586AECCF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.jpg" alt="pastedImage_1.jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;DIV class=""&gt;After preprocessing the file:&lt;/DIV&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20482iCA9386E4B4AFFE8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.jpg" alt="pastedImage_2.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2017 17:01:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-v6-4-Post-Compile-TDT/m-p/669376#M13916</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2017-08-15T17:01:41Z</dc:date>
    </item>
  </channel>
</rss>

