STVD not handling EEPROM data correctly
I have an issue when I am using STVD with Cosmic to write a value to EEPROM and read it back.
Example code :
/* MAIN.C file
*
* Copyright (c) 2002-2005 STMicroelectronics
*/
#include "stm8s.h"
#include "stm8s_flash.h"
@eeprom unsigned char eeValue;
unsigned char ucTemp;
main()
{
FLASH_Unlock(FLASH_MEMTYPE_DATA);
FLASH_ProgramByte(eeValue, 0xAB);
FLASH_Lock(FLASH_MEMTYPE_DATA);
ucTemp = FLASH_ReadByte(eeValue);
}
STVD assembler shows value being written to 0x0000 rather than start of EEPROM at 0x4000.
Cosmic have examined files and have determined that compilation was correct and the elf and map files are OK and they believe that STVD is not handling correctly.
STVD version is 4.3.12
Has anyone got a fix?
