main.c- #include "STM8S103F.h"
- main()
- {
- while(1);
- }
- #ifdef USE_FULL_ASSERT
- void assert_failed(u8* file, u32 line)
- {
- while (1)
- {
- }
- }
- #endif
复制代码 error- ----------- Project led - STM8 Cosmic - Configuration Debug -------------
- Compiling ..\src\main.c...
- cxstm8 +mods0 +debug -pxp -no -pp -l -i..\..\..\..\stmicroelectronics\st_toolset\include -i..\lib\inc -i..\src -i"C:\Program Files\COSMIC\CXSTM8_\Hstm8" -i"D:\Program Files\workspace_lib\led\STVD\LIB\INC" -i"D:\Program Files\workspace_lib\led\STVD\SRC" -i"D:\Program Files\workspace_lib\led\STVD\LIB" -clDebug\ -coDebug\ ..\src\main.c
- ..\src\main.c:
- Running Linker
- clnk -l"C:\Program Files\COSMIC\CXSTM8_\Lib" -l"D:\Program Files\workspace_lib\led\STVD\LIB\INC" -l"D:\Program Files\workspace_lib\led\STVD\LIB\SRC" -l"D:\Program Files\workspace_lib\led\STVD\LIB" -l"D:\Program Files\workspace_lib\led\STVD" -o Debug\led.sm8 -l..\lib -mDebug\led.map Debug\led.lkf
- #error clnk Debug\led.lkf:1 symbol _assert_failed not defined (Debug\stm8s_adc1.o Debug\stm8s_awu.o Debug\stm8s_beep.o Debug\stm8s_clk.o Debug\stm8s_exti.o Debug\stm8s_flash.o Debug\stm8s_gpio.o Debug\stm8s_i2c.o Debug\stm8s_itc.o Debug\stm8s_iwdg.o Debug\stm8s_rst.o Debug\stm8s_spi.o Debug\stm8s_tim1.o Debug\stm8s_tim2.o Debug\stm8s_uart1.o Debug\stm8s_wwdg.o )
- The command: "clnk -l"C:\Program Files\COSMIC\CXSTM8_\Lib" -l"D:\Program Files\workspace_lib\led\STVD\LIB\INC" -l"D:\Program Files\workspace_lib\led\STVD\LIB\SRC" -l"D:\Program Files\workspace_lib\led\STVD\LIB" -l"D:\Program Files\workspace_lib\led\STVD" -o Debug\led.sm8 -l..\lib -mDebug\led.map Debug\led.lkf " has failed, the returned value is: 1
- exit code=1.
- led.elf - 2 error(s), 0 warning(s)
复制代码 想问下这个是什么原因引起的错误?
|
样例程序完全没有问题。
评分
查看全部评分