cancel
Showing results for 
Search instead for 
Did you mean: 

How can I program option bytes with Segger Flasher ST7

guray2
Associate II
Posted on September 28, 2007 at 07:15

How can I program option bytes with Segger Flasher ST7

3 REPLIES 3
guray2
Associate II
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.

luca239955_st
Associate III
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

guray2
Associate II
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