Skip to main content
Visitor II
September 28, 2007
Question

How can I program option bytes with Segger Flasher ST7

  • September 28, 2007
  • 3 replies
  • 823 views
Posted on September 28, 2007 at 07:15

How can I program option bytes with Segger Flasher ST7

    This topic has been closed for replies.

    3 replies

    guray2Author
    Visitor II
    September 26, 2007
    Posted on September 26, 2007 at 12:11

    Hello All,

    I have a problem with Segger Flasher ST7 programmer.Flasher ST7 requires option bytes within .hex file.I'm using cosmic c compiler for software development and could not find how can I include option bytes in .hex file while compiling the c code.

    Can anybody help me.

    Thank you.

    Visitor II
    September 28, 2007
    Posted on September 28, 2007 at 06:33

    option bytes are not like other bytes at different addresses -> putting them in the hex file is not ''logical'' (and is not the solution used by most st7 programming tools).

    This being said, if you really want to have some constants (option bytes value) in your hex, you can just declare them in C or in the linker file.

    Hope it helps.

    Regards,

    Luca

    guray2Author
    Visitor II
    September 28, 2007
    Posted on September 28, 2007 at 07:15

    Dear Luca,

    Thank you for your interest.

    I wrote the problem to Segger support team and they told me that, ''You must connect a target device to Flasher ST7 and then read the option bytes from the target and then edit the option bytes in dupm mode as you need and then save the file and merge the file with your source file.''

    I think this method is unusual, but it works.

    Best Regards.

    Guray