Topic : St7lite29 and internal oscillator: problem!

Forum : ST7/STM8

Original Post
Post Information Post
April 30, 2009 - 2:02pm
Guest

It's possible use Rlink with internal oscillator?
I have see the post in FAQ:
http://www.raisonance.com/Forum/punbb/viewtopic.php?id=2347
but not work.
I suppose is beacause I use intenal clock and not external oscillator, correctly?
Solution?

thanks

Replies
Post Information Post
+1
0
-1
April 30, 2009 - 4:20pm
Raisonance Support Team

Hi,

The selection of the internal oscillator is made by the programming of the option bytes. See the device reference manual from ST for what these bytes mean, and the GettingStartedSTM8 for how to program them with Ride/RLink.

Please describe your problem more precisely. What are you trying to achieve? Do you want the ST7Lite29 to run on its internal RC? Do you want it to use the 12MHz clock from RLink? From your board? How do you observe that it does not work?

Best Regards,

Vincent

+1
0
-1
April 30, 2009 - 4:49pm
Guest

OK:
my Rlink is connected to micro with 5 pin.
Vcc from board, 5V.
Reset pull-upped with 10K at Vcc.
IccData pull-upped with 10K at Vcc. (I have try also without pull-up).
IccCLK pull-upped with 10K at Vcc. (I have try also without pull-up).
GND.
In my ST7lite29 OSC1 and OSC2 is connected at GND, I use internal clock.

Now I use Indart Programmer but I don't like it, I want use Rlink, fantastic with ST72325.
When I try to program or debug, Visual Develop of ST freezing, I must kill it!

I suppose OSC1 must connected to Rlink.

+1
0
-1
April 30, 2009 - 5:20pm
Raisonance Support Team

Hi,

You must connect OSC1 to RLink only if you want to use the external clock of the ST7Lite29, which is not you case.
If you are working with internal RC, OSC1 and OSC2 can be connected to ground, that should not be a problem.
And even if your ST7 has no clock, STVD should not freeze.
In fact, the problem you describe is possibly not related to a clocking issue at all.

Please check that you are using the latest version of STVD. (search the ST website)
Please also try to connect to the ST7 using STVP or RFlasher, to see if it makes a difference.
What setting for ICC entry are you using? (enable/disable option bytes) Can you try the other setting?
Do you have other ST7Lite boards (demo boards, ...) to test the RLink?
Do you manage to connect to the ST7 on this same board using InDart?

Best Regards,

Vincent

+1
0
-1
May 4, 2009 - 10:24am
Guest

Thanks!
I had wire cut! The reset was floating.
Now I can program it, I have again problem with debug...