2017-04-12 1:17 AM
Hello,
I am trying to write value 7 to eeprom data memory area. My code is below..
/* MAIN.C file
* * Copyright (c) 2002-2005 STMicroelectronics */#include 'STM8S003F3P.h'
unsigned int *ptr=(unsigned int *)0X4000;
main(){while (1){if(!(FLASH_IAPSR & (1<<3))){
FLASH_DUKR=0XAE; FLASH_DUKR=0X56; *ptr++=7; FLASH_IAPSR &=~(1<<3); }}}But there is no value written to eeprom. Further please let me know how to chek eeprom data in stvd or stvp .
2017-04-14 7:22 AM
Hello,
You can use the following links to get help and more informations :
Official documentation STMicroelectronics:
and
Youtube tutorials :
Kind regards,
Simon
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.