OpenEdv-开源电子网

标题: 求助STM8S903K3定义@eeprom不能编译通过 [打印本页]

作者: BG4RFF    时间: 2017-3-22 21:09
标题: 求助STM8S903K3定义@eeprom不能编译通过
STM8S903K3定义了@EEPROM unsigned char memorySecurity[] = { 0b00000111, 0xff, 0xff, 0xff };

然后编译通不过
#error clnk Debug\cardtest.lkf:1 symbol _FLASH_CR2 not defined ((C:\Program Files\COSMIC\FSE_Compilers\CXSTM8\Lib\libm0.sm8)eeprom.o )
#error clnk Debug\cardtest.lkf:1 symbol _FLASH_NCR2 not defined ((C:\Program Files\COSMIC\FSE_Compilers\CXSTM8\Lib\libm0.sm8)eeprom.o )
#error clnk Debug\cardtest.lkf:1 symbol _FLASH_IAPSR not defined ((C:\Program Files\COSMIC\FSE_Compilers\CXSTM8\Lib\libm0.sm8)eeprom.o )

是需要加什么头文件吗?
使用库开发模式,已经添加使用了FLASH
请高手指点
另外STM8S903K3怎么解除保护,用STlinkV2不能怎么擦除?

作者: BG4RFF    时间: 2017-3-22 21:09
问题已解决
重装comsic后就莫名的OK了
作者: BG4RFF    时间: 2017-3-22 21:12
Hardware configuration set to <ST-LINK on USB with STM8S903K3 plugged in and SWIM protocol>.
Blank check before programming (when available) is OFF
Verify after programming is ON.
Clear memory before loading a file is ON.
Erase device memory before programming (when available) is OFF
Display a popup window when an error occurs is ON.
Log activity is OFF
> Programming  PROGRAM MEMORY area...
Cut Version and Revision of device: 1.2
Error : The device is protected
Operation aborted
Error : < PROGRAM MEMORY programming failed.
Error : < Operation aborted.




欢迎光临 OpenEdv-开源电子网 (http://openedv.com/) Powered by Discuz! X3.4