按照 '图文并茂教你在keil下搭建RT-thread最小系统工程' 编译不过的问题

最近在学习keil和RT-thread,按照图文并茂教你在keil下搭建RT-thread最小系统工程.pdf操作,出现编译不过的情况。

可能是由于所用的keil版本和rt thread版本不同导致的,现记录一下。

keil5.16

rt-thread-2.1.0


添加:

..\..\RT-Thead\components\drivers\include\drivers

..\..\RT-Thead\components\drivers\include


error:

Build target 'test'
linking...
..\obj\test.axf: Error: L6218E: Undefined symbol rt_completion_done (referred from serial.o).
..\obj\test.axf: Error: L6218E: Undefined symbol rt_completion_init (referred from serial.o).
..\obj\test.axf: Error: L6218E: Undefined symbol rt_completion_wait (referred from serial.o).
..\obj\test.axf: Error: L6218E: Undefined symbol rt_data_queue_init (referred from serial.o).
..\obj\test.axf: Error: L6218E: Undefined symbol rt_data_queue_peak (referred from serial.o).
..\obj\test.axf: Error: L6218E: Undefined symbol rt_data_queue_pop (referred from serial.o).
..\obj\test.axf: Error: L6218E: Undefined symbol rt_data_queue_push (referred from serial.o).
Not enough information to list image symbols.
Finished: 1 information, 0 warning and 7 error messages.
"..\obj\test.axf" - 7 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:02


修正方法:

将..\RT-Thead\components\drivers\src 下面的.c文件全部添加到工程


你可能感兴趣的:(RT-thread,STM32)