Build script of MQX4.1.1 for GCC improvement

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Build script of MQX4.1.1 for GCC improvement

464 Views
gaetancarlier
Contributor I

Hello,

May I suggest some imporvements to do on gcc buildscript/Makefile ?

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:

_timer_create_component (...) at mqx/source/kernel/timer.c:241

(gdb) print KERNEL_TIMER

No symbol "KERNEL_TIMER" in current context.

This is due to optimizations done by GCC (even if optimlization level is set to 0 (-O0)).

By modifying mqx/build/<board>/make/tools/gcc_arm.mak, it is possible to solve this kind of error by replacing "-g2" occurrences by "-ggdb -g3"

After rebuilding all MQX and application, I have this:

_timer_create_component (...) at mqx/source/kernel/timer.c:241

(gdb) print KERNEL_TIMER

$1=4

Best regards,

Gaëtan.

Message was edited by: Gaetan CARLIER

Tags (4)
0 Kudos
Reply
1 Reply

358 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Gaetan, thank you for sharing your solution in the community, I will reproduce it and submit a report if necessary.

Any time you think you find a bug I recommend to submit a Service Request at our web page www.freescale.com/support ,  technical support team can evaluate the case and report it to development team.


Have a great day,
Daniel

0 Kudos
Reply