stm8l151c8 COSMIC代码问题

2019-07-14 16:50发布

----------- Project 2018-10-16-dz0017-09-开窗控制器-三路输出-24v - STM8 Cosmic - Configuration Debug -------------
Removing intermediate files ... Done!

----------- Project 2018-10-16-dz0017-09-开窗控制器-三路输出-24v - STM8 Cosmic - Configuration Debug -------------

Compiling main.c...
cxstm8 +mods0 +debug -pxp -no -pp -l -i"C:Program Files (x86)COSMICFSE_CompilersCXSTM8Hstm8"  -clDebug -coDebug main.c
main.c:

Compiling stm8_interrupt_vector.c...
cxstm8 +mods0 +debug -pxp -no -pp -l -i"C:Program Files (x86)COSMICFSE_CompilersCXSTM8Hstm8"  -clDebug -coDebug stm8_interrupt_vector.c
stm8_interrupt_vector.c:

Running Linker
clnk -m Debug2018-10-16-dz0017-09-开窗控制器-三路输出-24v.map -l"C:Program Files (x86)COSMICFSE_CompilersCXSTM8Lib"  -o Debug2018-10-16-dz0017-09-开窗控制器-三路输出-24v.sm8 Debug2018-10-16-dz0017-09-开窗控制器-三路输出-24v.lkf
#error clnk Debug2018-10-16-dz0017-09-开窗控制器-三路输出-24v.lkf:1 symbol _FLASH_NCR2 not defined ((C:Program Files (x86)COSMICFSE_CompilersCXSTM8Liblibm0.sm8)eeprom.o )
The command: "clnk -m Debug2018-10-16-dz0017-09-开窗控制器-三路输出-24v.map -l"C:Program Files (x86)COSMICFSE_CompilersCXSTM8Lib"  -o Debug2018-10-16-dz0017-09-开窗控制器-三路输出-24v.sm8 Debug2018-10-16-dz0017-09-开窗控制器-三路输出-24v.lkf " has failed, the returned value is: 1
exit code=1.

2018-10-16-dz0017-09-开窗控制器-三路输出-24v.elf - 2 error(s), 0 warning(s)

STM8L151C8
只有:

/* Flash control register 1 */
DEF_8BIT_REG_AT(FLASH_CR1,0x5050);

/* Flash control register 2 */
DEF_8BIT_REG_AT(FLASH_CR2,0x5051);

/* Flash Program memory unprotection register */
DEF_8BIT_REG_AT(FLASH_PUKR,0x5052);

/* Data EEPROM unprotection register */
DEF_8BIT_REG_AT(FLASH_DUKR,0x5053);

/* Flash in-application programming status register */
DEF_8BIT_REG_AT(FLASH_IAPSR,0x5054);


就没有:FLASH_NCR2
怎么搞?谢谢!
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。