<?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 Build script of MQX4.1.1 for GCC improvement in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Build-script-of-MQX4-1-1-for-GCC-improvement/m-p/366298#M12089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;May I suggest some imporvements to do on gcc buildscript/Makefile ?&lt;/P&gt;&lt;P&gt;When MQX is debugged using GDB (I use gcc-arm-none-eabi-4_8_3-2014q1 with GDB 7.6.0 as version GCC 4.8.3 seems to be the default version to build MQX 4.1.1), following error occurs:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;_timer_create_component (...) at mqx/source/kernel/timer.c:241&lt;/P&gt;
&lt;P&gt;(gdb) print KERNEL_TIMER&lt;/P&gt;
&lt;P&gt;No symbol "KERNEL_TIMER" in current context.&lt;/P&gt;

&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is due to optimizations done by GCC (even if optimlization level is set to 0 (-O0)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By modifying mqx/build/&amp;lt;board&amp;gt;/make/tools/gcc_arm.mak, it is possible to solve this kind of error by replacing "-g2" occurrences by "-ggdb -g3"&lt;/P&gt;&lt;P&gt;After rebuilding all MQX and application, I have this:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;_timer_create_component (...) at mqx/source/kernel/timer.c:241&lt;/P&gt;
&lt;P&gt;(gdb) print KERNEL_TIMER&lt;/P&gt;
&lt;P&gt;$1=4&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Gaëtan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Gaetan CARLIER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2014 08:31:00 GMT</pubDate>
    <dc:creator>gaetancarlier</dc:creator>
    <dc:date>2014-09-15T08:31:00Z</dc:date>
    <item>
      <title>Build script of MQX4.1.1 for GCC improvement</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Build-script-of-MQX4-1-1-for-GCC-improvement/m-p/366298#M12089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;May I suggest some imporvements to do on gcc buildscript/Makefile ?&lt;/P&gt;&lt;P&gt;When MQX is debugged using GDB (I use gcc-arm-none-eabi-4_8_3-2014q1 with GDB 7.6.0 as version GCC 4.8.3 seems to be the default version to build MQX 4.1.1), following error occurs:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;_timer_create_component (...) at mqx/source/kernel/timer.c:241&lt;/P&gt;
&lt;P&gt;(gdb) print KERNEL_TIMER&lt;/P&gt;
&lt;P&gt;No symbol "KERNEL_TIMER" in current context.&lt;/P&gt;

&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is due to optimizations done by GCC (even if optimlization level is set to 0 (-O0)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By modifying mqx/build/&amp;lt;board&amp;gt;/make/tools/gcc_arm.mak, it is possible to solve this kind of error by replacing "-g2" occurrences by "-ggdb -g3"&lt;/P&gt;&lt;P&gt;After rebuilding all MQX and application, I have this:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;_timer_create_component (...) at mqx/source/kernel/timer.c:241&lt;/P&gt;
&lt;P&gt;(gdb) print KERNEL_TIMER&lt;/P&gt;
&lt;P&gt;$1=4&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Gaëtan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Gaetan CARLIER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 08:31:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Build-script-of-MQX4-1-1-for-GCC-improvement/m-p/366298#M12089</guid>
      <dc:creator>gaetancarlier</dc:creator>
      <dc:date>2014-09-15T08:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Build script of MQX4.1.1 for GCC improvement</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Build-script-of-MQX4-1-1-for-GCC-improvement/m-p/366299#M12090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaetan, thank you for sharing your solution in the community, I will reproduce it and submit a report if necessary.&lt;/P&gt;&lt;P&gt;Any time you think you find a bug I recommend to submit a Service Request at our web page &lt;A href="http://www.freescale.com/webapp/sps/site/homepage.jsp?nodeId=05"&gt;www.freescale.com/support&lt;/A&gt; ,&amp;nbsp; technical support team can evaluate the case and report it to development team.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 01:25:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Build-script-of-MQX4-1-1-for-GCC-improvement/m-p/366299#M12090</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2014-09-16T01:25:03Z</dc:date>
    </item>
  </channel>
</rss>

