Skip to main content
Visitor II
January 28, 2009
Question

option byte base address

  • January 28, 2009
  • 2 replies
  • 800 views
Posted on January 28, 2009 at 07:36

option byte base address

    This topic has been closed for replies.

    2 replies

    lyeganeh9Author
    Visitor II
    May 17, 2011
    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?

    Visitor II
    May 17, 2011
    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