cancel
Showing results for 
Search instead for 
Did you mean: 

option byte base address

lyeganeh9
Associate II
Posted on January 28, 2009 at 07:36

option byte base address

2 REPLIES 2
lyeganeh9
Associate II
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?

seb13_colin
Associate II
Posted on May 17, 2011 at 15:02

Hello l.yeganeh,

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