Skip to content

Avi+ the repair forum

Share your repair tips, hacks and tricks !
 

PRIVATE MESSAGES uddeIM PM

You are not logged in.

Repair Tips in electronic
tt_flash.c (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: tt_flash.c
#36
admin (Admin)
Admin
Posts: 7
graphgraph
User Online Now Click here to see the profile of this user
Sti5517 flash dump 8 Months, 1 Week ago Karma: 0  
Hi there @YLG80.

Testing with the def file below:
As soon as I start jkeys, I get "Error reading from IRD (DCU peek)", which I think is normal (so I've read), and I carried on. Clicked OK and chose the IRD Model (STB_with_STi5517LWA); the M58LW032C flash comes up on top right field and I try to "Save Mem"; choose path file and upon clicking "Save" I get "Error reading from memory". Click OK, looks like it's reading but saved file is empty (0 bytes).
Same procedure with wall.exe, either already running before jkeys or after, I get the same error...
QUOTE:

Thanks for your help.
Quote:
Originally Posted by YLG80
OK, let's go !

What kind of error do you get when you launch jkeys ?

Your jkeys definition file should contain the following lines related to your CPU and Flash
:
//
// Microprocessor Definitions:
// Definiciones de Microprocesador:

Micro, 1, 1, "STi5518MVB-X", 0xd405041, 0xfffffff
Micro, 2, 1, "STi5518", 0xd502041, 0xfffffff
Micro, 3, 1, "STi5517LWA", 0xd41f041, 0xfffffff
Micro, 4, 1, "STi5516FWB-X", 0xD41D041, 0xfffffff
Micro, 5, 1, "STi5510", 0xd4cd041, 0xfffffff
Micro, 6, 1, "STi5508", 0xd402041, 0xfffffff
Micro, 7, 1, "STi5505", 0xd4cb041, 0xfffffff
Micro, 8, 1, "STi5500", 0xd4c9041, 0xfffffff
Micro, 9, 1, "ST20-GP6", 0x5196041, 0xfffffff
Micro, 10, 1, "ST20-TP4", 0x5198041, 0xfffffff
Micro, 11, 1, "ST20-TP3", 0x5194041, 0xfffffff
Micro, 12, 1, "ST20-TP2", 0x5193041, 0xfffffff
Micro, 13, 2, "LSI SC2000", 0x400006d, 0xfffffff

// Unknown Devices:

Micro, 14, 1, "Unknown ST device", 0x041,0xfff
Micro, 15, 2, "Unknown LSI device", 0x06d, 0xfff

// ================================================== ==========================
// ===================IRD=Definitions/IRD=Flash=Definitions====================
// =======DO=NOT=EDIT=HERE=FOR=FFFF/FFFF(JEDEC)=ERRORS!=SEE=NEXT=SECTION=======
// ================================================== ==========================


IRD, 3, "STB_with_STi5517LWA", 3, 3, 1, 1, 2, 2, 0x7FFFFF40, 0x7FFFFF44, 0x7FFFBFE0, 0x7FFFFFA8, 0x7FFDFFF4, 0x7FFDFFF8, "10E", 3, 4
IRDFlash, 3, "M58LW032C", 0x8822, 0x7FC00000, 0x400000, 2, 2, 0


// ================================================== ==========================
// ===============Flash=Definitions/Flash=Sector=Definitions===================
// ===================EDIT=HERE=FOR=FFFF/FFFF(JEDEC)=ERRORS====================
// ================================================== ==========================

// STB with STi5517ALW and flash M58LW032C
Flash, 3, "M58LW032C",0x8822, 0x400000, 1, 1, 0, 2, 32, 0
Sector, 3, 32, 0, 0x20000 // 128 KByte 32 Sectors

// ================================================== ==========================
// =========================Flash=Manufacturer=Codes= ==========================
// ================================================== ==========================


FlashMfg, 0x01, "AMD"
FlashMfg, 0x4, "Amic"
FlashMfg, 0x1F, "ATMEL"
FlashMfg, 0xAD, "Hynix"
FlashMfg, 0x89, "Intel"
FlashMfg, 0xB0, "Intel"
FlashMfg, 0xC2, "MX"
FlashMfg, 0x00000, "Sharp"
FlashMfg, 0xBF, "SST"
FlashMfg, 0x20, "STMicro"
FlashMfg, 0x98, "Toshiba"


// ================================================== ==========================
// ================================================== ==========================
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#37
admin (Admin)
Admin
Posts: 7
graphgraph
User Online Now Click here to see the profile of this user
Re:Sti5517 flash dump 8 Months, 1 Week ago Karma: 0  
When you launch jkeys, does it recognize the CPU or does it display
'Unknown ST device"?

Also look at the Slugworth post copy below:
from http://www.rdi-board.com/showthread.php?p=742753
[quote]
This is a post from Slugworth

Peek errors are usually due to a bad ground between pc and receiver or the jtag wires too long or twisted.
Slugworth Rule of arm: Jtag wires should be shorter than your arm.
In st20 research I have noticed that using nRST instead of TRST works better with jkeys for dumping flash for some reason.You have to tie TRST high thru a 100 ohm resistor I use pin 12 on the lpt1 db25.
./..
[quote]
 
Report to moderator   Logged Logged  
 
Last Edit: 2009/11/24 21:57 By admin.
  The administrator has disabled public write access.
#38
9u4rk (User)
Expert Boarder
Posts: 106
graph
User Offline Click here to see the profile of this user
Re:Sti5517 flash dump 8 Months, 1 Week ago Karma: 0  
Hi guys.

When I launch jkeys it does recognize the CPU (Device ID -> 0x2D41F041 and Device -> STi5517LWA) so I assume my jtag connections should be ok.
However, I noticed that when trying to measure the voltage on RST board pin, it looks like the board resets. Plus, reading this:
QUOTE:
[...] using nRST instead of TRST works better with jkeys for dumping flash for some reason.You have to tie TRST high thru a 100 ohm resistor I use pin 12 on the lpt1 db25 [...]

made up my mind about start using nRST instead of nTRST and keeping the latter pulled up to Vcc through a 100 ohm resistor.
I'm going to change it accordingly and let you know the results soon.
Thx.

Best regards.
 
Report to moderator   Logged Logged  
 
Last Edit: 2009/11/24 23:16 By 9u4rk. Reason: Correction.
  The administrator has disabled public write access.
#39
slugworth (User)
Expert Boarder
Posts: 88
graphgraph
User Offline Click here to see the profile of this user
Re:Sti5517 flash dump 8 Months, 1 Week ago Karma: 3  
Take many dumps of flash and compare with a hex editor to make sure all
dumps are identical.I read about people experimenting and only taking 1 dump
of flash- if you manage to erase the flash you must have something good to flash
back in.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#40
9u4rk (User)
Expert Boarder
Posts: 106
graph
User Offline Click here to see the profile of this user
Re:Sti5517 flash dump 8 Months, 1 Week ago Karma: 0  
Hi guys.

Very good advice, @slugworth. Will definitely do so!
Thx!

Best regards.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#41
slugworth (User)
Expert Boarder
Posts: 88
graphgraph
User Offline Click here to see the profile of this user
Re:Sti5517 flash dump 8 Months, 1 Week ago Karma: 3  
Jkeys will only dump the flash on the sti5517,but will work using pin 17
instead of pin 19 of a 20pin jtag.This uctap wiring would be needed for a
uctap/st20 toolset solution to jtagging the sti5517 anyway,so might as well
utilize it.
Toolset compliments of the forum boss. http://rapidshare.com/files/310373061/5517ftaci100B.zip
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#42
9u4rk (User)
Expert Boarder
Posts: 106
graph
User Offline Click here to see the profile of this user
Re:Sti5517 flash dump 8 Months, 1 Week ago Karma: 0  
Hi guys.

Well, since I connected nRST to db25/5 and nTRST to db25/12, looks like jKeys resets the board when "Detect" is clicked or the jTag is re-connected but still no flash dump. Keep getting the same error...
Can there be a software block on these flashes?
Running out of test ideas...

Best regards.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#43
9u4rk (User)
Expert Boarder
Posts: 106
graph
User Offline Click here to see the profile of this user
Re:Sti5517 flash dump 8 Months, 1 Week ago Karma: 0  
Hi guys.

Thank you all. You've been really helpful...
QUOTE:
[...] Toolset compliments of the forum boss. http://rapidshare.com/files/310373061/5517ftaci100B.zip [...]

Best regards.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#44
slugworth (User)
Expert Boarder
Posts: 88
graphgraph
User Offline Click here to see the profile of this user
Re:Sti5517 flash dump 8 Months, 1 Week ago Karma: 3  
Like stated before,dcu peek errors are always either insufficient ground
between receiver and pc or wires too long/twisted.
I would add another ground wire between pc case and receiver.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#45
9u4rk (User)
Expert Boarder
Posts: 106
graph
User Offline Click here to see the profile of this user
Re:Sti5517 flash dump 8 Months, 1 Week ago Karma: 0  
Hi guys.

I will redo the connections and will try to get a shorter printer cable (maybe I'll shorten this one...), but only tomorrow for it's getting late and tomorrow is a working day.

Best regards.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#46
YLG80 (Moderator)
Moderator
Posts: 99
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Birthdate: 1954-10-19
Re:Sti5517 flash dump 8 Months, 1 Week ago Karma: 2  
You should try also to launch jkeys upon reset.

You switch your STB OFF.
Then you switch it ON and immediately launch JKEYS.

The DCU mode needs to be activated during a reset pulse.
This is more easy during a cold reset.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#47
YLG80 (Moderator)
Moderator
Posts: 99
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Birthdate: 1954-10-19
Re:Sti5517 flash dump 8 Months, 1 Week ago Karma: 2  
I've added the PM capability, the very little button under the avatar.
Of course I'd like to avoid displaying the email and other confidential information
related to the users.
If you remark something wrong in the PM please let me know. I will immediately change the appropriate parameters.(there are so many !)
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#48
9u4rk (User)
Expert Boarder
Posts: 106
graph
User Offline Click here to see the profile of this user
Re:Sti5517 flash dump 8 Months, 1 Week ago Karma: 0  
Hi guys.

Nice one on both previous posts, @YLG80...
Also tried the way you stated on your post #46 and the behaviour was the same.

Today's been one of those days. Anything that I lay my hands on, turns into trash...
Anyway, I managed to redo connections but haven't tested it yet.

One thing though: - this board has a 10 pin jTag and looks like it's connected differently than your 10 pin jTag. Attached you'll find what I've been using (it's been given by a friend)...

Best regards.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#49
YLG80 (Moderator)
Moderator
Posts: 99
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Birthdate: 1954-10-19
Re:Sti5517 flash dump 8 Months, 1 Week ago Karma: 2  
Here attached is a schematic of the Vestel Sti5105 board.
On the top right you will see a 10 pin JTAG connector.
I've 4 STB's with 20 pin JTAG connector so I don't know about the 10 pin version.
Here is another 10 pin JTAG connector found in a document.
 
Report to moderator   Logged Logged  
 
Last Edit: 2009/11/26 22:56 By YLG80.
  The administrator has disabled public write access.
#50
YLG80 (Moderator)
Moderator
Posts: 99
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Birthdate: 1954-10-19
Re:Sti5517 flash dump 8 Months, 1 Week ago Karma: 2  
Here is the file (STi5105 board schematic)
File Attachment:
File Name: schematic_Sti5105_VESTEL.zip
File Size: 290659
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#51
9u4rk (User)
Expert Boarder
Posts: 106
graph
User Offline Click here to see the profile of this user
Re:Sti5517 flash dump 8 Months, 1 Week ago Karma: 0  
Hi guys.

Just what I meant, the connection points are not in the same positions.
Thx for the info.

If I get the processor ID and Device data correct, the connections must be OK...
Going for tests again now, will come back later.

Best regards.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#52
YLG80 (Moderator)
Moderator
Posts: 99
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Birthdate: 1954-10-19
Re:Sti5517 flash dump 8 Months ago Karma: 2  
What is the version of JKEYS that you are using ?

You could try also that flash def (64 sectors)

Code:

// STB with STi5517ALW and flash M58LW032C Flash, 3, "M58LW032C",0x8822, 0x400000, 1, 1, 0, 2, 64, 0 Sector, 3, 64, 0x0, 0x10000 // 64 KByte 64 Sectors
 
Report to moderator   Logged Logged  
 
Last Edit: 2009/11/27 10:52 By YLG80.
  The administrator has disabled public write access.
#53
9u4rk (User)
Expert Boarder
Posts: 106
graph
User Offline Click here to see the profile of this user
Re:Sti5517 flash dump 8 Months ago Karma: 0  
Hi guys.

The jKeys version is 2.9.11 (Build 026).
Connections redone and still the same problem. Also tried with previous flash conf, no luck...
Tried dumping the eeprom and it worked (with error nags, probably due to wrong eeprom choosing, but got something out of it...).
Maybe flash's got some protection I'm not aware of that prevents access to it...

Best regards.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#54
YLG80 (Moderator)
Moderator
Posts: 99
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Birthdate: 1954-10-19
Re:Sti5517 flash dump 8 Months ago Karma: 2  
Jkeys version : should be OK

Flash
Yes, I've seen in the datasheet that this M58LW032x has a lock/protection mode.
That protection is activated by software, changing one register value.
So I guess it needs some utility to unlock it.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#55
YLG80 (Moderator)
Moderator
Posts: 99
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Birthdate: 1954-10-19
Re:Sti5517 flash dump 8 Months ago Karma: 2  
I have found this unusual procédure on Polish website for the Sti5516. (STi5517 is similar with more features)
Launch jkeys

enter 7FC00000 in the start field and 400000 in the bytes field

Click on flash programming - should display the correct flash type and DCU trap functional at the bottom of the window

I guess you have to change the base addres to 7FC00000 and Click on Read

What type of STB is it ?
Is ther any RS232 utility to update the soft? If yes it could perhaps be used to change the flash lock status.
 
Report to moderator   Logged Logged  
 
Last Edit: 2009/11/27 15:01 By YLG80.
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop