[Problem gelöst, FBF neu geflasht über JTag] FBF7050, adam2 Bootloader deadlock?

Dear Feadi:

Thanks alot for you informations and advices.
But my fritzbox currently not work yet.
I execute your program ..so If fritzbox off that return 0000000000 for IMPCODE
But if Fritzbox ON that returt FFFFFFFF0 code to me....
Try it few time but i don`t know why don`t work.

But i`m try with previous WRT program...
That is found the IMPCODE and JTAG Version sometime but Freez in Watchdog disabling or Flash programming. :)
I don`t know I must buy another or can recover it !!!

What you thinking about that?

Thanks alot again.
 
hello Amandegar,

do you build the 'resistor only interface'? this interface works well for the FBF7050 and FBF, but not for a FBF with a Spartan. So you have to build an interface with level shifting capabilities. the program dont freezes anymore, with such an interface.

regards, Feadi

Edit: the correct value for R4 is 100 Ohm.
 

Anhänge

  • jtag-interface.png
    jtag-interface.png
    13.8 KB · Aufrufe: 378
Zuletzt bearbeitet:
Dear feadi:

I`m working with resistor only interface.
Ok i`m try to recover with the level shifting interface.

Can i replace 74hc573 by 74hc244 or other 3state buffer....

Sincerely,
Amir Hossein Mandegar.
 
yes, you can replace the 573 as long as you use a HC type.

best regards, Feadi
 
Feadi?

Hi Feadi,

wie hast du die 7140 per JTAG nun flashen können?
Könntest du eine kurze Anleitung dazu geben und was der Unterschied zum Jtaggen bei der 7050 ist?

@all
Ich bräuchte einen gesicherten Bootloader (MTD3) von einer 7140 /41 oder 7170, bitte, bitte ;)
Könnte die hier jemand posten bzw. mir per PN zukommen lassen?
Anleitung:
Auslesen über Telnet mit
mkdir /var/backup
cp /dev/mtd3 /var/backup/mtd3.bin

tftp Server auf PC starten (z.b. TFTP32 Freeware)
Auf der 7170 Telnet:
cd /var/backup
tftp -p -l mtd3.bin 192.168.xx IP des PC


THX !
Angelo
 
Hallo Angelo,

gut dass ich alles notiert habe ;)

So habe ich die FBF von Alpamayo geflasht:
- connect jtag cable & poweron FBF
- rename the bootloader to CUSTOM.BIN
- start this command: 'wrt.exe -backup:custom /instrlen:5 /instrprefix:9 /dataprefix:2 /window:90000000 /start:90000000 /length:10000'


Also, die Unterschiede zur 7050 sind:
- Levelshift-Interface wird benötigt (ist aber auch bei der 7050 zu empfehlen)
- bei der 7141 wird "/instrprefix:9 /dataprefix:2" benötigt (bei 7050 "/instrprefix:4 /dataprefix:1")

Die Befehle "/instrprefix" und "/dataprefix" habe ich selber in die Software reinprogrammiert. Quellcode dazu gebe ich auch frei, wenn gewünscht.

Hier was ich bisher herausgefunden habe, bezüglich JTag:
Code:
FBF
{
	instructionregister length is 5 TDI->(FBFCPU 5)->TDO
	CPU ChipID is 0x0000100F
	EJTag impcode is 0x41404000
}

FBF7050
{
	instructionregister length is 9 TDI->(FBFCPU 5, AVM Coprocessor 4)->TDO
	CPU ChipID is 0x0000100F
	EJTag impcode is 0x41404000
}

FBF7141
{
	instructionregister length is 14 TDI->(FBFCPU 5, ??? 1, XC3S250E 8)->TDO
	CPU ChipID is 0x0000100F
	EJTag impcode is 0x41404000
}

Zu der FBF7141 interessiert mich sehr, was der IC mit dem einzelnen Bit in der JTag-Chain macht, der kann ja nur BYPASS und einen anderen Befehl.

Gruß, Feadi
 
Picture for connecting 7140?

Hi.

Is there some information and picture for making connection on a 7140?

Flemming
 
feadi schrieb:
Hello Flemming,

you need this interface cable:
http://www.ip-phone-forum.de/attachment.php?attachmentid=14008&d=1172595303

7140's pinout is equal to 7050's:
http://feadispace.fe.funpic.de/FBF7050/FBF7050-PINOUT.jpg

make this connections:
FBF - CABLE
TDI -> TDI
cTDO -> TDO
TMS -> TMS
TCK -> TCK
3v3 -> 300 Ohm -> TRST
3v3 -> 300 Ohm -> cTRST

best regards,
Feadi


Thanks for responce.

Is anybody success the on a 7140?

And you using the wrt.exe or wrt54g.exe?

I want to send/write the ADAM2 loader to my 7140.

Regards
Flemming
 
Speedport

Hi Feadi,

ich habe nun mal versucht, einen Speedport 701V auszulesen.
Den JTAG Anschluss konnte man ohne Probleme finden und verkabeln.
Die CPU wurde auch gefunden, allerdings funktioniert bei mir das WRT nur sporadisch, meistens stürzt das Programm mit einem GPF in WinXP ab (siehe Log unten).
Hab alles schon versucht, andere Kiste etc., immer das Gleiche.
Wenn er dann mal durchkommt, findet er meine Flash-Sorte nicht (8MB MX29LV640M). Hab dann mal mit /fc:32 einen ähnlichen, im WRT vorhandenen Flash erzwungen, dann bekomme ich zwar 64k geliefert, allerdings nur Müll.
Ideen?

Code:
wrt.exe -backup:custom /instrlen:5 /instrprefix:9 /dataprefix:2 /window:90000000 /start:90000000 /length:10000

====================================
WRT54G/GS EJTAG Debrick Utility v4.5
====================================

Probing bus ... Power up now...
Done

Instruction Length set to 5

CPU Chip ID: 00000000000000000001000000001111 (0000100F)
*** Found a TI AR7WRD TNETD7300* Rev 1 CPU chip ***

reading IMPCODE register... 00000000000000000000000000000000 (00000000)
reading IMPCODE register... 10100000110000000000000000000000 (A0C00000)
reading IMPCODE register... 01000000000000000100000000000000 (40004000)
reading IMPCODE register... 01000001010000000100000000000000 (41404000)
reading IMPCODE register... 01000001010000000100000000000000 (41404000)
reading IMPCODE register... 01000001010000000100000000000000 (41404000)
reading IMPCODE register... 01000001010000000100000000000000 (41404000)
reading IMPCODE register... 00000001010000000100000000000000 (01404000)
reading IMPCODE register... 01000001010000000100000000000000 (41404000)
reading IMPCODE register... 01000001010000000100000000000000 (41404000)
    - EJTAG IMPCODE ....... : 01000001010000000100000000000000 (41404000)
    - EJTAG Version ....... : 2.6
    - EJTAG DMA Support ... : No

Issuing Processor / Peripheral Reset ... Done
Enabling Memory Writes ... Skipped
Halting Processor ... <Processor Entered Debug Mode!> ... Done
Clearing Watchdog ...


Absturz mit GPF




wrt.exe -backup:custom /instrlen:5 /instrprefix:9 /datapre
fix:2 /window:90000000 /start:90000000 /length:10000

====================================
WRT54G/GS EJTAG Debrick Utility v4.5
====================================

Probing bus ... Power up now...
Done

Instruction Length set to 5

CPU Chip ID: 00000000000000000001000000001111 (0000100F)
*** Found a TI AR7WRD TNETD7300* Rev 1 CPU chip ***

reading IMPCODE register... 00000000000000000000000000000000 (00000000)
reading IMPCODE register... 00000001010000000100000000000000 (01404000)
reading IMPCODE register... 01000001010000000100000000000000 (41404000)
reading IMPCODE register... 01000001011000000110000000000000 (41606000)
reading IMPCODE register... 01000001010000000100000000000000 (41404000)
reading IMPCODE register... 10000001010000000100000000000000 (81404000)
reading IMPCODE register... 01000001011000000100000000000000 (41604000)
reading IMPCODE register... 01000001010000000100000000000000 (41404000)
reading IMPCODE register... 11111111111111111111111111111111 (FFFFFFFF)
reading IMPCODE register... 01000001010000000100000000000000 (41404000)
    - EJTAG IMPCODE ....... : 01000001010000000000000000000000 (41400000)
    - EJTAG Version ....... : 2.6
    - EJTAG DMA Support ... : Yes

Issuing Processor / Peripheral Reset ... Done
Enabling Memory Writes ... Skipped
Halting Processor ... <Processor Entered Debug Mode!> ... Done
Clearing Watchdog ... Done

Probing Flash at (Flash Window: 0x90000000) ... 1 flash vendorID:144 deviceID:0
2 flash vendorID:65535 deviceID:65535
3 flash vendorID:144 deviceID:65535
1 flash vendorID:152 deviceID:32768
2 flash vendorID:144 deviceID:0
3 flash vendorID:0 deviceID:0
1 flash vendorID:65535 deviceID:0
2 flash vendorID:144 deviceID:0
3 flash vendorID:144 deviceID:0
Done

*** Unknown or NO Flash Chip Detected ***

 *** REQUESTED OPERATION IS COMPLETE ***

exit...Drücken Sie eine beliebige Taste . . .


Mal läufts bis hierher, mal nicht...

Danke,
Angelo
 
@Flemming:

I flashed a 7141 a few weeks ago. the 7140 is actually the same, except for the lan port.

@angelo:

IMHO hast Du Reflexionen im Kabel. Das erkennt man an diesen Bithüpfern:
Code:
reading IMPCODE register... 01000001010000000100000000000000 (41404000)
reading IMPCODE register... 00000001010000000100000000000000 (01404000)

- welches Kabel hast Du gebaut?
- hast Du Veränderungen vorgenommen?
- kannst Du ein Foto vom Aufbau machen, und hier posten?

Gruß, Feadi
 
Reflexionen

Hi,

ich habe einen vorhandenen Xilinx Programmer genommen, Beschreibung etc. gibts hier
http://cgi.ebay.de/ws/eBayISAPI.dll?ViewItem&item=330108811905
(keine Werbung, hab den dort nur vor einem halben Jahr gekauft).
PDF-Anleitung könnte ich zukommen lassen.

Was kann ich gegen die Reflexionen machen?
Ich hab den Programmer nun schon öfter benutzt, ohne Probleme...
Muss ich die Kabel kürzen (z.Zt. ca. 15cm zur FB)?

Und was hat es mit dem Absturz vom wrt.exe auf sich?


Gruss,
Angelo
 
@feadi
I made the connection on my 7140 exactly as at the picture from the 7050. Fuerthermore I follow your description,(*look down) but when I connect the 25Parallel to my pc nothing happend?

I got a lot of FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF and nothing more???

(*)
FB -> PC
-------------------------------
TDI -> 100 ohm -> TDI
cTDO -> 100 ohm -> TDO
TMS -> 100 ohm -> TMS
TCK -> 100 ohm -> TCK
3v3 -> 100ohm -> TRST
3v3 -> 100ohm -> cTRST

I USE DIRECT CONNECT NO TTL! BETWEEN

My cable is maximum 20 cm long!

/Flemming
 
@ Angelo:

Der Absturz entsteht durch ein Bufferoverflow. Dieser wiederum ist eine Folge der Reflexionen. Das kommt dadurch, dass der Programmierer der WRT-Software diese nicht gegen fehlerhafte Speicherzugriffe abgesichert hat.
Wenn aber die Reflexionen weg sind, verschwinden auch die GPFs.

Zu dem Xilinx Programmer, den Du benutzt:
- ist dieser auch auf der Unterseite (mit SMD Teilen) bestückt?
- hast Du ein Schaltplan dazu?
- das Kabel von dem Programmer zur FBF hast Du selber gebaut, richtig?

Wenn Du einen Schaltplan hast, poste ihn. Daran kann ich sehen ob der Programmer ausreichend terminiert ist. Das Kabel vom Programmer zur FBF wäre der nächste mögliche Refelxionsverursacher. Aber nicht entmutigen lassen, Du steht ganz dicht vor dem Ziel. ;)

@ Flemming:

Direct connection from PC to FBF does _not_ work. Because the PC's parallel port operates on 5 V levels, and the FBF on 3,3 V Levels. So you need an interface with levelshift-capabilities.

This interface does levelshifting:
http://www.ip-phone-forum.de/attachment.php?attachmentid=14008&d=1172595303

best regards,
Feadi

Edit: the correct value for R4 is 100 Ohm.
 
@Feadi.
Thanks for information; I will try making the construction:)
//Flemming
 
Hi Angelo,

an dem Schaltplan, den Du mir (per EMail) geschickt hast, sehe ich dass das Design eine eher schlechte noise-immunity hat. Dadurch kann es ganz plötzlich zu unerklärlichen Störungen kommen. Das ist an sich nicht schlimm, aber das Ding könnte eines schönen Tages plötzlich rumspinnen.

Also gegen die Reflexionen kann ich Dir jetzt drei einfache Sachen vorschlagen:
- verflechte das Verbindungskabel (das vom Programmer zur FBF), und/oder
- setze in die TCK-Leitung noch einen Widerstand (seriell), ca. 200-300 Ohm, dieser _muss_ umbedingt so nah wie überhaupt möglich an die FBF.
- wenn das noch nicht hilft kannst Du noch ein Kondensator (2,2 nF) in die TCK-Leitung reinbauen, an diese Stelle:
PC -> Kabel -> Programmer -> Kabel -> Widerstand(ca. 200-300 Ohm) -> >>Kondensator(2,2 nF)<< -> FBF.
Der zweite Anschluss des Kondensators muss mit GND verbunden werden (diese Verbindung sollte so kurz wie überhaupt möglich sein, ala 'geiz ist geil')

Ob die Veränderungen erfolgreich sind, kannst Du mit dieser Version von WRT(siehe Anhang) herausfinden. Starte dazu das Programm so: 'wrt.exe -reflex-test /instrlen:5 /instrprefix:9 /dataprefix:2'. Du muss dort nur darauf achten dass die ausgegebenen Werte immer gleich sind. Keinesfalls sollten Bithüpfer auftreten.

Wenn die Reflexionen weg sind, musst Du mir die VendorID und DeviceID von dem Flash-IC schicken, dann kann ich das Programm um diesen erweitern.

Viel Erfolg wünscht:
Feadi
 

Anhänge

  • wrt.zip
    143.5 KB · Aufrufe: 93
@fradi

I cant get it to work:-( I made the construction with the 74HC573 but somthing is not what I hope it will be.

Is there some different 7140 and 7141.

When I start the wrt it detect nothing and I have only FFFFFFFFFFFFFFFFFFFFF
as feedback?

Baybe I destroy my 7140 when I only use the resistor solution(without the 74HC573)?

Do you have some sugestion?

/Flemming
 
flemse schrieb:
Is there some different 7140 and 7141.

No, there are no differences except for the lan port. but this have no effect on the jtag interface.

flemse schrieb:
Baybe I destroy my 7140 when I only use the resistor solution(without the 74HC573)?

theoretically this could be possible, but i don't think so.

do you own a digicam? if yes, make a picture of your interface, and post this picture here.

you have to check your interface, use an Ohm-Meter for that. check all pins, that should be connected. and after that, check all pins that should not be connected.
if all connections are fine, check the resistance between GND and 3v3, this resistance should be high (this test makes sure, that there is no shortcut between GND and 3v3).

if your interface passes all this tests, do this:
- connect it to your pc
- supply power to 3v3 and GND
- (don't connect the interface to your FBF)
- start feadi-jtag.exe, and press '2 <return>'
- now take a Volt-Meter an measure the voltage on TDO, TMS and TCK.
- press '134 <return>', an measure again
- press '5 <return>', tell me the result
- connect TDO and TDI
- press '5 <return>' again, tell me the result

best regards,
Feadi
 
@Feadi.

Thanks I try it tomorrow:)

/Flemming
 
@Feadi

You are 100% the best:)
Your "mod" program have found the error for me!
The error is that the resistor to pin 13 on the parallel port to the pc must be max 100ohm! I have 300ohm and that can't change the value!
I use your program to find the error.

Now I can use the wrt flasher:) :) :)

20 min and my 7140 is working again:))))))))))))))

Thanks Feadi werry mutch!
You have helped me and I am sorry that i can't help you.

Regards
Flemming
 

Statistik des Forums

Themen
245,753
Beiträge
2,239,188
Mitglieder
372,948
Neuestes Mitglied
b0041920
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.