Topic : Unable to program ST72F561K6 from REVA V3.3

Forum : ST7/STM8

Original Post
Post Information Post
December 30, 2008 - 12:08pm
Guest

I am trying to program a target board with ST72F561K6 by using embedded RLINK from REVA V3.3, however I am unable to communicate with the target.

I modified a sample code from raisonance to generate a hex file and tried to burn it on my target through RIDE 7, RFLASHER and STVP. (all latest versions downloaded yesterday.) The target didnt respond in all 3 for reading, erasing the memory or option bytes. Also tried some Option byte combinations (some that made sense and some that didnt !!) none have worked so far. I keep getting an error on the lines of "cannot communicate with target" - STVP/ "cannot reset in ICC mode" - RIDE7 & RFLASHER .

I went through other topics in this forum and have cross-checked all connections on my board and Option byte settings that were suggested.
The supply, Reset ckt, osc ckt, decoupling caps and ICC connections (on REVA as well as target) etc. .........

Initially I started off with a fully populated board, now I got another board assembled with minimum connections.( power supply, controller, ICC, reset, osc. and decoupling caps.)

After going through the ICC protocol i saw that some pulses are sent on ICC_DATA line while ICC_CLK stays low, but using a scope on my board I just observed a transition from high->low and then low_/high, on ICC_CLK while pulses are present on ICC_DATA.
How can I verify this? I suspect that the ICC_CLK line on my embedded RLINK is faulty.

I have used the same embedded RLINK to program another target board with STM32F103VBT6 without any issues however this is my first time with ST7.

Replies
Post Information Post
+1
0
-1
December 31, 2008 - 10:26am
Guest

Are you using the 24 pin connector ? If yes, did you remove the daughter board ? If yes, please check whether the connections comply with http://www.raisonance.com/Forum/punbb/viewtopic.php?id=2449
Please check the following part:
********************************
ICC connectors
********************************

signal | 10pts(ICC) | 24 pts(RLink3)
| |
GND | 1,3,5,10 | 3,4,10,17,19,21,22
ICCDATA | 2 | 6
ICCCLK | 4 | 7
RST | 6 | 9
VCC | 7 | 1
ICCSEL/VPP | 8 | 18
12MHz | 9 | 20

Thanks

+1
0
-1
December 31, 2008 - 11:18am
Guest

I dont have a daughterboard for ST7( wish I had one just to verify the ICC comm link... The SWJTAG works fine.... i checked it).

I modified an FRC to give me a 6 pin ICC connector (standard 10 pin ICC connector was too big for my application), and yes, I have checked all my connections again.

Can u help me verify the ICC comm on embedded RLINK before I get a new RLINK. Most of the distributors that I kno are on vacation so I dont see it coming soon.

<<
After going through the ICC protocol i saw that some pulses are sent on ICC_DATA line while ICC_CLK stays low, but using a scope on my board I just observed a transient from high->low and then a log curve from low_/high, on ICC_CLK while the pulses are present on ICC_DATA.
How can I verify this? I suspect that the ICC_CLK line on my embedded RLINK is faulty.
>>

+1
0
-1
December 31, 2008 - 11:35am
Guest

I am not the right person for the details of ICC (I only know the general principles...). My colleagues will be back on Monday.

You wrote that you use a 6-pin connector. Which pin did you discard?
Some hints:
1. Vpp is required for HDFlash (12V).
2. Problems are often linked to the RESET handling. How the rst pin is handled on your board ?

+1
0
-1
December 31, 2008 - 12:43pm
Guest

Hi Francis,

Any fresh ideas are welcome at this point....

"......6 pin ICC connector....." was a typo, it should have been "7 pin ICC connector"

I have a 10 pin cable coming from the 24 pin REVA connector on embedded RLINK. This connector terminates in a 7 pin connector on the target board (4 gnd lines from 10 pin FRC terminated in 1 gnd line on target connector).

The connections on 7 pin connector on my board look like this.............

pin description
1 ICC_CLK
2 ICC_DATA
3 RESET
4 VPP
5 12MHz clk
6 VCC
7 GND

I have tried the following combinations on reset pin.
10k , 0.01uF
4.7K, 0.1uF
4.7K only
0.1uF only
no component.
(having a handy soldering iron helps a lot)

thanks.

+1
0
-1
December 31, 2008 - 1:32pm
Guest

up to now everything looks nice.

More hints:
1. Clock frequency: what is it on your board ? RLink provides a 12MHz clock source for the board without external crystal (running on an internal RC). But there is no internal RC on the ST72561.. Moreover, the 561 features an internal PLL that could be a problem..
2. I have checked the schematic of the embedded RLink, and it is quite simple. I don't see why the problem could be with ICC_CLK. I believe that ICC_CLK is managed by software for handshaking (by both the RLink and the ST7). A wrong reset could be the cause. Vpp/IccSel must be connected (at least at the reset time) to run the embedded monitor. Do you follow the ICC interface recommended by ST (search for "Typical ICC Interface" in the datasheet of the ST72561) ?

+1
0
-1
January 1, 2009 - 10:05am
Guest

I had an external crystal of 8MHz before - no response from target after being changed to 12 MHz.
"...there is no internal RC on the ST72561...". dont know how I had missed that.

"...internal PLL that could be a problem....." - In what way? How can I fix it?

RESET pulse looks fine on the scope.

Vpp is connected, but it switches beteween 5V and 0V depending on reset sequence. Shouldnt it be at 12V?

I have followed "Typical ICC Interface" except that my connector is 7 instead of 10 pin.

+1
0
-1
January 2, 2009 - 10:06am
Guest

Vpp is 12V only when programming. Everything seems ok. It should work. Don't know if we'll find the solution today. We will probably have to wait until Monday. Sorry.

+1
0
-1
January 2, 2009 - 12:14pm
Guest

Hi Amey

I can not help you more deeply concerning ICC signals but reading your post I think there is one thing that need to be clarified:
In your pin description the pin 5 (12 MHz clk) is connected and after in your post you say you use a 8 or 12 MHz crystal.
This pin 5 is to be connected when you want the RLink to send a 12 MHz clk to the target so can you confirm that when you use external crystal this pin is not connected.

Matloub

+1
0
-1
January 5, 2009 - 8:04am
Guest

Initially I had an 8MHz crystal onboard, later replaced it with a 12MHz one.
I then tried using 12MHz from RLINK with the 12MHz crystal still onboard.

Ill try 12MHz clk without crystal later... I guess the connection should look somewhat like OSC1->12MHz, OSC2->GND.
If that doesnt work then all I can do is wait for a new RLINK.

I appreciate your help -> Francis & matloub.

Thanks.

+1
0
-1
January 14, 2009 - 6:02am
Guest

<>
I sent my target board to STMICRO for verification and they found no problems with it, so I guess the problem is with REVA ICC comm.
Is it possible for Raisonance to send me a new tool?
Rlink seems to be taking forever to be delivered.
I have enquired with other distributors here and none of them have Rlink or REVA in stock.

thanks.