2010-07-26 11:46 AM
Accessing EEPROM with Cosmic compiler
2011-05-17 06:09 AM
Hi,
The problem was that I was not 'unlocking' the EEPROM before writing to it. I needed to #include the stm8s_flash.h file at the beginning and then the code to write to the eeprom looked like: ....... FLASH_Unlock(FLASH_MEMTYPE_DATA); Cstd = Cstd *factor; FLASH_Lock(FLASH_MEMTYPE_DATA); .......... where Cstd is the variable in eeprom.