问题现象如下:
02_Usart\02_Usart.axf: Error: L6200E: Symbol staus multiply defined (by gpio.o and main.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
解决方法:
检查所有.h 头文件,只能声明某个函数,某个结构体、枚举、共用体类型,不能定义实体对象,如果需要,请放在相应的.c文件中。
例如:
/*xxx.h */
typedef enum {
KEY_DOWN,
KEY_UP,
KEY_RESET
}KeyStaus;
/*xxx.c*/
KeyStaus staus;