<?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 Macros while Debugging in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Macros-while-Debugging/m-p/626353#M13628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;CW10.6 for PE USB Multilink Universal debugger and while deugging I am getting the error as below .If this is because of some settings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;header.h&lt;/STRONG&gt; contains "&lt;STRONG&gt;#define VALUE (5)&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;Then &lt;STRONG&gt;main.c&lt;/STRONG&gt; includes the header file, then contains the code "&lt;STRONG&gt;foo = VALUE;&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;But if I'm debugging, I am not able to read the value in Expression window it shows "Target Request failed: Failed".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whether any settings for Macros ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Sep 2016 00:46:28 GMT</pubDate>
    <dc:creator>preetuabraham</dc:creator>
    <dc:date>2016-09-17T00:46:28Z</dc:date>
    <item>
      <title>Macros while Debugging</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Macros-while-Debugging/m-p/626353#M13628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;CW10.6 for PE USB Multilink Universal debugger and while deugging I am getting the error as below .If this is because of some settings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;header.h&lt;/STRONG&gt; contains "&lt;STRONG&gt;#define VALUE (5)&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;Then &lt;STRONG&gt;main.c&lt;/STRONG&gt; includes the header file, then contains the code "&lt;STRONG&gt;foo = VALUE;&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;But if I'm debugging, I am not able to read the value in Expression window it shows "Target Request failed: Failed".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whether any settings for Macros ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2016 00:46:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Macros-while-Debugging/m-p/626353#M13628</guid>
      <dc:creator>preetuabraham</dc:creator>
      <dc:date>2016-09-17T00:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Macros while Debugging</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Macros-while-Debugging/m-p/626354#M13629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am able to read other variables but not Macros.Other variables when read in Expression window it shows the value in any of the format&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2016 00:47:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Macros-while-Debugging/m-p/626354#M13629</guid>
      <dc:creator>preetuabraham</dc:creator>
      <dc:date>2016-09-17T00:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Macros while Debugging</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Macros-while-Debugging/m-p/626355#M13630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Makros are handled by the preprocessor of the compiler (see &lt;A class="link-titled" href="https://en.wikipedia.org/wiki/C_preprocessor" title="https://en.wikipedia.org/wiki/C_preprocessor"&gt;C preprocessor - Wikipedia, the free encyclopedia&lt;/A&gt;&amp;nbsp;) and are not visible any more to the compiler (the preprocessor does a kind of textual replacement). That's why you don't see them as debug symbols during debugging. This is normal for C/C++ compilers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2016 06:15:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Macros-while-Debugging/m-p/626355#M13630</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2016-09-17T06:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Macros while Debugging</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Macros-while-Debugging/m-p/626356#M13631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the updateI have one more clarifications regarding ,say for eg:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In one of the function,this is one of the execuatble&lt;/P&gt;&lt;P&gt;PTADD = AllLinesAsInputs ;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* Data Direction, Port A, Bits 0 - 7 Inputs */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;#define AllLinesAsInputs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 and&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;#define&amp;nbsp;&amp;nbsp; PTADD _PTADD.PortData&amp;nbsp;are defined in .h files ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;so while debugging I placed a breakpoint in the function where the above executable line is present and then tried to read the values in Expression window while debugging &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;,it shows that the variable PTADD&amp;nbsp; "Target Request failed: Failed" in expression window,so my clarification is whether the variable PTADD&amp;nbsp;gets the value &lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;0x00 ,even though it does not show during debugging &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 16:13:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Macros-while-Debugging/m-p/626356#M13631</guid>
      <dc:creator>preetuabraham</dc:creator>
      <dc:date>2016-09-19T16:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macros while Debugging</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Macros-while-Debugging/m-p/626357#M13632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erick,&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;&lt;P&gt;Thanks for the updateI have one more clarifications regarding ,say for eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In one of the function,this is one of the execuatble&lt;/P&gt;&lt;P&gt;PTADD = AllLinesAsInputs ;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* Data Direction, Port A, Bits 0 - 7 Inputs */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;#define AllLinesAsInputs 0x00 and &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;#define PTADD _PTADD.PortData are defined in .h files ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;so while debugging I placed a breakpoint in the function where the above executable line is present and then tried to read the values in Expression window while debugging &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;,it shows that the variable PTADD "Target Request failed: Failed" in expression window,so my clarification is whether the variable PTADD gets the value &lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;0x00 ,even though it does not show during debugging &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 16:14:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Macros-while-Debugging/m-p/626357#M13632</guid>
      <dc:creator>preetuabraham</dc:creator>
      <dc:date>2016-09-19T16:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Macros while Debugging</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Macros-while-Debugging/m-p/626358#M13633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The compiler will 'see':&lt;/P&gt;&lt;P&gt;_PTADD.PortData = 0x00;&lt;/P&gt;&lt;P&gt;(have a read at &lt;A class="link-titled" href="https://mcuoneclipse.com/2015/11/23/preprocessor-listing-for-gnu-gcc-with-gnu-arm-eclipse-plugins/" title="https://mcuoneclipse.com/2015/11/23/preprocessor-listing-for-gnu-gcc-with-gnu-arm-eclipse-plugins/"&gt;https://mcuoneclipse.com/2015/11/23/preprocessor-listing-for-gnu-gcc-with-gnu-arm-eclipse-plugins/&lt;/A&gt;&amp;nbsp; to 'see' what the compiler is using).&lt;/P&gt;&lt;P&gt;So you do not have a variable/symbol PTADD: it is _PTADD.&lt;/P&gt;&lt;P&gt;It even might be that _PTADD is yet another macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 06:11:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Macros-while-Debugging/m-p/626358#M13633</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2016-09-20T06:11:33Z</dc:date>
    </item>
  </channel>
</rss>

