Error: L6218E: Undefined symbol m_tmr (referred from rt_task.o) 的解决

如题Keil MDK编译错误的解决。


详细编译过程和结果如下:


Build target 'MCB1700'

custom translating Web.inp...
Custom: C:\Keil\ARM\bin\fcarm @Web\Web.inp
FCARM FILE CONVERTER V2.50
Completed 19 File(s), Ratio 88%
compiling WEB.C...
linking...
.\Obj\Http_demo.axf: Error: L6218E: Undefined symbol m_tmr (referred from rt_task.o).
.\Obj\Http_demo.axf: Error: L6218E: Undefined symbol mp_stk (referred from rt_task.o).
.\Obj\Http_demo.axf: Error: L6218E: Undefined symbol mp_stk_size (referred from rt_task.o).
.\Obj\Http_demo.axf: Error: L6218E: Undefined symbol mp_tcb (referred from rt_task.o).
.\Obj\Http_demo.axf: Error: L6218E: Undefined symbol mp_tcb_size (referred from rt_task.o).
.\Obj\Http_demo.axf: Error: L6218E: Undefined symbol mp_tmr_size (referred from rt_task.o).
.\Obj\Http_demo.axf: Error: L6218E: Undefined symbol os_active_TCB (referred from rt_task.o).
.\Obj\Http_demo.axf: Error: L6218E: Undefined symbol os_fifo (referred from rt_task.o).
.\Obj\Http_demo.axf: Error: L6218E: Undefined symbol os_fifo_size (referred from rt_task.o).
.\Obj\Http_demo.axf: Error: L6218E: Undefined symbol os_idle_demon (referred from rt_task.o).
.\Obj\Http_demo.axf: Error: L6218E: Undefined symbol os_maxtaskrun (referred from rt_task.o).
.\Obj\Http_demo.axf: Error: L6218E: Undefined symbol os_stackinfo (referred from rt_task.o).
.\Obj\Http_demo.axf: Error: L6218E: Undefined symbol os_flags (referred from hal_cm3.o).
.\Obj\Http_demo.axf: Error: L6218E: Undefined symbol os_error (referred from rt_system.o).
.\Obj\Http_demo.axf: Error: L6218E: Undefined symbol os_trv (referred from rt_system.o).
.\Obj\Http_demo.axf: Error: L6218E: Undefined symbol os_rrobin (referred from rt_robin.o).
.\Obj\Http_demo.axf: Error: L6218E: Undefined symbol os_tmr_call (referred from rt_timer.o).
Not enough information to list image symbols.
Finished: 1 information, 0 warning and 17 error messages.
".\Obj\Http_demo.axf" - 17 Error(s), 0 Warning(s).

Target not created


其实很好解决,就是RTX_Conf_CM.c没有加入到工程编译引起的 ("Include in Target Build")。

原因是工程从不带OS改到使用RL-RTX时候这个RTX_Conf_CM.c没有加入编译范围引起的。

你可能感兴趣的:(Error: L6218E: Undefined symbol m_tmr (referred from rt_task.o) 的解决)