本帖最后由 FSL_TICS_A 于 2014-6-4 11:37 编辑
KL25例程 从官网上面下载的例程,编译有错误,怎么办
我现在正想学习加速度计那里,结果官方网站上的程序编译,有错误,这是怎么回事
我的是CW10.6,希望有个好心人能够给我一份KL25评估板的加速度计程序,可以用PC显示加速度计值的程序
编译的错误是下面的
**** Build of configuration FLASH for project accelerometer_demo ****
"D:\\sdudy\\CW10.6\\CW MCU v10.6\\gnu\\bin\\mingw32-make" -j8 all
'Building target: accelerometer_demo.elf'
'Executing target #12 accelerometer_demo.elf'
'Invoking: ARM Ltd Windows GCC C Linker'
"D:/sdudy/CW10.6/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" @"accelerometer_demo.args" -o"accelerometer_demo.elf"
D:/sdudy/CW10.6/CW MCU v10.6/MCU/ARM_GCC_Support/ewl/lib/armv6-m\libuart.a(uart_console_io.o): In function `__init_uart_console':
ARM_GCC_Support/ewl/EWL_C/src/sys/uart_console_io.c:200: undefined reference to `InitializeUART'
D:/sdudy/CW10.6/CW MCU v10.6/MCU/ARM_GCC_Support/ewl/lib/armv6-m\libuart.a(uart_console_io.o): In function `__read_console':
ARM_GCC_Support/ewl/EWL_C/src/sys/uart_console_io.c:93: undefined reference to `ReadUARTN'
D:/sdudy/CW10.6/CW MCU v10.6/MCU/ARM_GCC_Support/ewl/lib/armv6-m\libuart.a(uart_console_io.o): In function `__init_uart_console':
ARM_GCC_Support/ewl/EWL_C/src/sys/uart_console_io.c:200: undefined reference to `InitializeUART'
D:/sdudy/CW10.6/CW MCU v10.6/MCU/ARM_GCC_Support/ewl/lib/armv6-m\libuart.a(uart_console_io.o): In function `__write_console':
ARM_GCC_Support/ewl/EWL_C/src/sys/uart_console_io.c:151: undefined reference to `WriteUARTN'
mingw32-make: *** [accelerometer_demo.elf] Error 1 |