Posted on May 17, 2011 at 15:02 Hi I need to access option byte. optionbyte base address in the stm8_map.h file is 0x5067. but in memory map and document is 0x4800. which is it right?
The option bytes are in fact located at the end of EEPROM memory area at adress 0x4800. It's here that the option bytes are programed by the tools (STVP or STVD). So to read option bytes you just have to read this address. If you want to write the option bytes (while application is running), please refer to the in-application programming (IAP) chapter of the STM8S Reference manual. Best regards, Seb