Build script of MQX4.1.1 for GCC improvement

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Build script of MQX4.1.1 for GCC improvement

792 次查看
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

标记 (4)
0 项奖励
回复
1 回复

686 次查看
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 项奖励
回复