Topic : How program OPtion Byte with Ride on STM8 device

Forum : ST7/STM8

Original Post
Post Information Post
June 4, 2012 - 6:19pm
Guest

Him Gentlemen.
I start to play again with RIDE in my small spare time. I move from ST7 lite into STM8_903 device . This device is much much better and solid and a lot cheeper then ST7Lite. A little difficult to manage is the package ,TSSOP20.
I play with ADC ,Timer5 , timer 1 PWM and have fun with all IO's, great.
Now i want to use internal LSI oscillator 128Khz to reduce at minimum power consumption, to enable it i need to modify option byte.
On ST7 device in programming window , not debug, there is button to read and modify option byte. In STM8 there is something similar but not so user frendly like ST7, i did not find the easy way to programm it.
Please may I have detail steps of what I need to do to program option byte and use the LSI oscillator.
Thanks Giampaolo.

Replies
Post Information Post
+1
0
-1
June 5, 2012 - 9:09am
Raisonance Support Team

Hi,

We don't provide this as a GUI for STM8 because it has caused too many problems on ST7. (customers programming wrong values, etc.)

So with STM8 you simply have to build your application with the Option Bytes values at the corresponding addresses. This is usually done using an assembler file in the project like any other source file. Then your Option Bytes will be stored in the same hex file as your Flash code. Please see the example projects provided with Ride.

Best Regards,

Vincent

+1
0
-1
July 29, 2012 - 4:16pm
Guest

Thank Vincent.
Just looking into example help me on the problem, is very simple!
I was able to change option bie adding one extra ADC port to my device available with AFR bit setup.
I complete this project succeffully.

Thank for the help.

+1
0
-1
August 3, 2012 - 9:58am
Guest

I am using stm8s005c6, i read that getting started manual of stm8 & i gave the connection too as per the mnaual. BUt i am not able to flash my kit. Please help me to sort out this problem.

+1
0
-1
August 3, 2012 - 3:33pm
Guest

Error : Cannot communicate with the device !

HI,
I am using STM8s005c6 target board & R-link Programmer. I am getting an error like this:

Check the SWIM cable connection and check all the needed pin connections on the SWIM connector.

If the application code uses Swim Disable and Reset pin as Output or has disabled SWIM Clock Divider:
Try Now to SWITCH OFF and ON the application Power Supply while NRST Reset pin is forced low.

Suggest me a solution for this problem.

+1
0
-1
August 6, 2012 - 6:42am
Guest

Hi,
I tried with an another kit of the same STM8S005C6, it started flashing, but the procedure been followed is similar like the older one. Now I got another problem, the IC in the target board is getting heated. What might be the reason?? I am using an external power supply. The IC is getting heated within a minute after switching ON the power supply, but i can able to flash the kit. Suggest me some solutions for this.

+1
0
-1
August 6, 2012 - 10:12am
Raisonance Support Team

Hi,

All this looks like hardware problems on the board.

Is it your own board or a commercial board?

If it is your own then I suggest you have it checked by ST support. (or here but they know this better than us)
If it is a commercial board then you should ask to whoever designed and sold it to you.

Best Regards,

Vincent