Topic : option bytes

Forum : ST7/STM8

Original Post
Post Information Post
October 15, 2009 - 11:11am
Guest

hi all
can someone please tell me how can I set the option bytes, couldn't find it in the project properties window.
I don't want the application to program the option byte, I would like to set a constant size to the UBC area.

forgot to add:
I'm using a REva starter kit with:
- a REva motherboard v3.3 with RLink
- a REva STM8S208RB daughter board.
- Windows XP, Service Pack 3
- Ride Ver. 7.24.09.0251
- RKit-STM8 Ver. 2.24.09.0238
activated for 16K code.

thank you
Igal

Replies
Post Information Post
+1
0
-1
October 26, 2009 - 11:23am
Guest

ok, found the STM8_OB.asm file

+1
0
-1
March 1, 2010 - 5:26pm
Guest

What is the best way to program option bytes at compile/program time instead of at run time when programming in C? Should I just include an ASM file like STM8_OB.asm in the project or is there another way? I didn't see any #pragma definitions or other compiler/linker directives for this. Thanks.

+1
0
-1
March 1, 2010 - 5:30pm
Raisonance Support Team

Hi,

STM8_OB.asm like in the example is the best way. (if there was a better way, we would have used it in the example ;) )

For the programmer/debugger, option bytes are little more than data to program at address x4800...

Best Regards,

Vincent