中级会员
 
- 积分
- 401
- 金钱
- 401
- 注册时间
- 2012-12-30
- 在线时间
- 41 小时
|
ffconf.h已经配置好
..\USER\main.c(105): error: #513: a value of type "char *" cannot be assigned to an entity of type "TCHAR *"
..\USER\main.c(109): error: #167: argument of type "char *" is incompatible with parameter of type "const TCHAR *"
..\USER\main.c(119): error: #513: a value of type "unsigned short *" cannot be assigned to an entity of type "char *"
..\USER\main.c(160): error: #167: argument of type "char *" is incompatible with parameter of type "const TCHAR *"
..\USER\main.c(241): error: #167: argument of type "char *" is incompatible with parameter of type "const TCHAR *"
..\USER\main.c(248): warning: #167-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
出错点为f_open(&Fil, "mm\\deg.txt", FA_READ);,f_open原型为
FRESULT f_open (
FIL *fp, /* Pointer to the blank file object */
const TCHAR *path, /* Pointer to the file name */
BYTE mode /* Access mode and file open mode flags */
)
在启用USE_LFN后TCHAR被定义为16位unsigned short型,而f_open(&Fil, "mm\\deg.txt", FA_READ);传入的路径名被解释为char类型,导致参数不匹配,看到别人好像没出这个问题啊,求高手指点。 |
|