Topic : Option bytes definition

Forum : ST7/STM8

Original Post
Post Information Post
March 18, 2010 - 3:16pm
Guest

For my project I use STVD with raisonance tooling. I have a question considering the option bytes, these
are defined in stm8l15x_ob.asm file as

cseg at 04800h
db 0AAh ;OPT0 Read-Out Protection (ROP)
db 000h ;OPT1 User Boot-Code size (UBC)
db 000h ;OPT2 Reserved
db 000h ;OPT3 Independent watchdog option
db 000h ;OPT4 Number of stabilization clock cycles for HSE and LSE oscillators
db 001h ;OPT5 Brownout reset (BOR)
db 055h ;OPT6 Bootloader option bytes (OPTBL)
db 0AAh ;OPT7 Bootloader option bytes (OPTBL)
end

However when I include the stm8l15x_ob.asm in my project and start debugging through the Rlink in STVD I cannot connect to the target anymore, only when I remove the stm8l15x_ob.asm from the project the debugging works fine, why is this?

Am I doing something wrong, should the option bytes be defined otherwise?

Replies
Post Information Post
+1
0
-1
March 18, 2010 - 4:32pm
Raisonance Support Team

Hi,

For the ST tools (STVD, STVP), the option bytes must be defined in other ways. (in the project options, I think)
Please look at the doc of STVD for more information, or ask ST support.

For the Raisonance software tools (Ride, RFlasher, STM8_pgm), the option bytes are little more than data at 0x4800 and you could define them using the asm file like you explain... I guess you took this file from an example made for Ride?

Best Regards,

Vincent