报错码:
.\Objects\LV-template.axf: Error: L6200E: Symbol TM1640_display multiply defined (by tm1640_1.o and tm1640.o).
.\Objects\LV-template.axf: Error: L6200E: Symbol TM1640_Init multiply defined (by tm1640_1.o and tm1640.o).
.\Objects\LV-template.axf: Error: L6200E: Symbol TM1640_display_add multiply defined (by tm1640_1.o and tm1640.o).
.\Objects\LV-template.axf: Error: L6200E: Symbol TM1640_led multiply defined (by tm1640_1.o and tm1640.o).
.\Objects\LV-template.axf: Error: L6200E: Symbol TM1640_start multiply defined (by tm1640_1.o and tm1640.o).
.\Objects\LV-template.axf: Error: L6200E: Symbol TM1640_stop multiply defined (by tm1640_1.o and tm1640.o).
.\Objects\LV-template.axf: Error: L6200E: Symbol TM1640_write multiply defined (by tm1640_1.o and tm1640.o).
分析:多个TM1640的函数被重复定义(multiply defined)
检查了TM1640相关的.C和.h文件,检查了调用TM1640函数的程序,其中并未重复定义;
解决:keil的设置Manage Project Items 中重复添加了TM1640.c文件,删除后错误消失。