STVD+Cosmic CxSTM8 32K 4.3.4(石皮 角刀牛 片反)
;==========================================
__eep_wall_data[__window_x].__eep_window_ptr += 1;
或
__eep_wall_data[__window_x].__eep_window_ptr++;
这样写都有问题,如果后面所示,如下面所写则编译通过
__eep_wall_data[__window_x].__eep_window_ptr = 1;
这是变量定义:
@eeprom struct __eep_wall
{
unsigned char __eep_out_fx; //输出换向
unsigned char __eep_out_lx; //输出类型
unsigned char __eep_wk_sb_k; //外控开关类型
unsigned char __eep_window_ptr; //保存通道位置
unsigned char __eep_window[__cst_window_len][__cst_code_len]; //保存8个通道号
unsigned int __eep_crc16; //数据CRC16校验结果
} __eep_wall_data[3] =
{
0
}
;
那位知道是怎么回事?
看其他人写EEPROM都用:*((@far u8*) Address) = Data;不知道是何原因?
谢谢!
;==========================================
cgstm8.exex 已停止工作(提不窗口显示)
----------- Project 2010-05-21-mk100-stm8s103f2 - STM8 Cosmic - Configuration Debug -------------
Removing intermediate files ... Done!
----------- Project 2010-05-21-mk100-stm8s103f2 - STM8 Cosmic - Configuration Debug -------------
Compiling main.c...
cxstm8 +debug -pxp -no -l +mods0 -pp -i"C:\Program Files\COSMIC\CXSTM8\Hstm8" -clDebug\ -coDebug\ main.c
main.c:
;==================
这段是红色字体
The command: "cxstm8 +debug -pxp -no -l +mods0 -pp -i"C:\Program Files\COSMIC\CXSTM8\Hstm8" -clDebug\ -coDebug\ main.c " has failed, the returned value is: 1
exit code=1.
;==================
2010-05-21-mk100-stm8s103f2.elf - 2 error(s), 0 warning(s) |