Home repair tips forum

PM Notification

You are not logged in.

Welcome, Guest
Username Password: Remember me

Search Forum

Keyword

ST40 / STb71xx JTAG interfacing
(1 viewing) (1) Guest

TOPIC: ST40 / STb71xx JTAG interfacing

Re:ST40 / STb71xx JTAG interfacing 10 years, 6 months ago #770

  • superarcan
i got stack with flashutil.c for mb676sti5197 with MX25L3255D
have no clue how to include this.

Re:ST40 / STb71xx JTAG interfacing 10 years, 6 months ago #771

  • YLG80
  • OFFLINE
  • Moderator
  • Posts: 776
  • Karma: 28
Flashutil.c cannot handle that type of serial flash memory (8 pin chip).

Re:ST40 / STb71xx JTAG interfacing 10 years, 6 months ago #772

  • YLG80
  • OFFLINE
  • Moderator
  • Posts: 776
  • Karma: 28
You should rather use u-boot for your SPI flash.



From daggi-duck
With U-Boot you have a full flash chip support for reading, erasing and writing of NAND, NOR and SPI flash chips.



From STLINUX
For SPI Serial Flash

In the case of SPI serial flash, U-boot will automatically erase the flash, prior to writing to it. Hence, users may just use the eeprom write command without explicitly having to erase the SPI serial flash device at all.

MB680> nfs $load_addr /export/u-boot.bin
MB680> eeprom write $load_addr 0 $filesize

Re:ST40 / STb71xx JTAG interfacing 10 years, 4 months ago #826

  • goustmk
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Karma: 0
Hi there guys im happy that im back on this forum.... i was not active long time excuse me for that i was not in my country...

So i have another problem i've got a Hyundai stb DVB-S with Sti5517 i see that it has the jtag port od the board so i don't know the pinouts so can anyone help me how to manage this stb here is some pic of the stb...

I have the fth4 module i've been used this module so can help me about connect the module to this kind stb.

STB: Hyundai HSS-3169NA
CPU: STI5517FUB
FLASH: GL032A90FFIS3/ SPANSION

Sorry if I'm off topic....
Thank You agin
http://imageshack.us/photo/my-images/225/img1239x.jpg/
http://imageshack.us/f/225/img1237d.jpg/

Here are pics...

Re:ST40 / STb71xx JTAG interfacing 10 years, 3 months ago #847

  • ltrifonov
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
Hi all !

Recently i get DVB-S2 receiver Hyundai SH-3000.
It was too hard to find any info about it, but after research i found that inside it is same as Triax-Hirschmann shd900. I was able to reflash my Hyundai with latest firmware for Triax-Hirschmann shd900, and it works fine.

After this, I started to look inside firmware file and found this:

cx24116 - tunner
m29w160et - flash
STb7100 - CPU
MB411 - mainboard
firmware size is 8 MB.

original firmware: http://www.triax-gmbh.de/upload/shd900fwv144.zip
inside look: http://postimage.org/image/stijyl7o/

Is it possible with such jtag interface, to dump my current flash content,
then make some tests with flashing uboot etc... (i think it will run linux)
and then restore original contents of my flash? (firmware)

Thanks in advance!
Last Edit: 10 years, 3 months ago by ltrifonov.

Re:ST40 / STb71xx JTAG interfacing 10 years, 3 months ago #848

  • YLG80
  • OFFLINE
  • Moderator
  • Posts: 776
  • Karma: 28
Yes it should work with the USB interface.
Your flash is a Top Boot Block type and a similar one (M29W160BT) is included in the Burner utility.
You should first check if ther is a JTAG connector type on that board and its type.

Re:ST40 / STb71xx JTAG interfacing 10 years, 2 months ago #865

  • lucx
Hi guys,

i got this DVB receiver CISCO:8485DVB

CPU - STI7101
Flash - GL256P11FF

I want to conect trough jtag to this receiver because it stops booting. And i think jtag connector is that betwen power source and ram chip, is a connector with 20 pin here imageshack.us/photo/my-images/6/jtaghead1.jpg/.
I'am not able to determine the right pin connection. I made an schematic with tension on pins and connected resistors.
I must say that I did the usb clone adaptor with FT4232H and tested with config pins from howto pdf with no luck.?
Can some one help me to determine the right conection for jtag to this stb?
stb_conn_ok.png
Attachments:

Re:ST40 / STb71xx JTAG interfacing 10 years, 2 months ago #866

  • duxzero
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 1
Just follow the instructions in the HOWTO_JTAG_Interface_STMCLT_Clone_rev1.pdf guide by YLG80 earlier in this thread.

If you have done something wrong, I guess you just have swapped TDI/TDO and perhaps TrigOut/TrigIn. This can be a common mistake... since what is marked TDI on the JTAG port should actually be connected to TDO on the JTAG interface (same with TrigIn/TrigOut).

Re:ST40 / STb71xx JTAG interfacing 10 years, 2 months ago #867

  • lucx
Hello,

thank you for replay,
but i conected from this howto HOWTO_JTAG_Interface_STMCLT_Clone_rev1.pdf, pin to pin from 1 to 20 is ok like this?? or i have to swap tdi with tdo? and wich one is TrigIn?
Last Edit: 10 years, 2 months ago by .

Re:ST40 / STb71xx JTAG interfacing 10 years, 2 months ago #868

  • YLG80
  • OFFLINE
  • Moderator
  • Posts: 776
  • Karma: 28
Hello Lucx
You should investigate why your stb does not boot.(perhaps a Power Supply problem)
Check if each voltage is present.
Perhaps it's stuck in a reset state which would prevent the jtag interface to work.
Try to check the reset state first on the jtag connector
It looks odd to me that you find 0V on pin 19.
Is that really 0V or a value near 0V like 0.7V or so.
If it's OV you could have a 0 ohm resistor connected to ground near the JTAG connector.
If you have a scope you could probe these pins while initiating a JTAG session and see if they are going high.

Re:ST40 / STb71xx JTAG interfacing 10 years, 2 months ago #869

  • lucx
Hello,

I did some tests with tdi and tdo inverted here is output from debug sesion pastebin.com/hxNiuLJj and back again with tdi and tdo like beafore and I see now that is working but i have another problem, here is output from console pastebin.com/WBFSCFdW, and what means this error:

#
SDI [ERROR] :: [SERVER] serviceASEMode: Sentinel not found (0xffffffff != 0xbeefface)
#
SDI [ERROR] :: [SERVER] sdi_Attach: Unable to service target after attaching

because it stops with this error :
#
SDI [ERROR] :: [SERVER] serviceASEMode: Sentinel not found (0xffffffff != 0xbeefface)
#
SDI [ERROR] :: [SERVER] sdi_Attach: Unable to service target after attaching
#
SDI [ERROR] :: [SERVER] processSDICommand: sdi_Attach failed
#
SDI [ERROR] :: Command SDI_ATTACH failed (0)

??

Re:ST40 / STb71xx JTAG interfacing 10 years, 2 months ago #870

  • eoin
Hello,

it looks great!! so I tried, too. but some problems.

noname.jpg


This is my MProg3.5 configuration.
I used FT2232D. But not work.

E:\code\examples\bare\getstart>sh4xrun -c sh4tp -t STMC1000A:mb618:st40 -e hello
.out
SHDEBUG [ERROR] :: Unknown name for STMC target STMC1000A
Unable to connect to remote target STMC1000A:mb618:st40
You can't do that when your target is `exec'
The program is not being run.


Somebody help me.
Attachments:

Re:ST40 / STb71xx JTAG interfacing 10 years, 2 months ago #872

  • lucx
Hi,

tray with sh4xrun -c sh4tp -t STMC1000_A:mb618:st40 -e hello

Re:ST40 / STb71xx JTAG interfacing 10 years, 2 months ago #873

  • eoin
Hi,

I already did but not changed.
Is FT2232D working? I checked the datasheet and found something.
2232D has not same function with 2232H.

Re:ST40 / STb71xx JTAG interfacing 10 years, 2 months ago #874

  • lucx
Hello,

Should not be a problem, FT2232H has 3v3 limit on io and FT2232d has 1v8 on io, you should check drivers connectons.

Re:ST40 / STb71xx JTAG interfacing 10 years, 2 months ago #875

  • eoin
Thank you for your help.

OK, then. One more question.
As you know, I attached my configuration about MProg.
Basic Details, USB Power Options, USB Serial Number Control and USB Remote Wakeup are OK. I found some information about these from HOWTO_JTAG_Interface document. But, FT2232C/D Options is some difference things.

I can't understand this options. So, tried everything but failed. Did I miss something? My PC is Win7 x64.

Re:ST40 / STb71xx JTAG interfacing 10 years, 2 months ago #877

  • lucx
eoin wrote:
Are you sure that in your configuration:

Side A -> Hardware -> Opto isolated
should not be
Side A -> Hardware -> RS232 UART ?

and put this for serial number : STMCLT1000, I dont know if it realy maters but ..
Hello,

it looks great!! so I tried, too. but some problems.



This is my MProg3.5 configuration.
I used FT2232D. But not work.

E:\code\examples\bare\getstart>sh4xrun -c sh4tp -t STMC1000A:mb618:st40 -e hello
.out
SHDEBUG [ERROR] :: Unknown name for STMC target STMC1000A
Unable to connect to remote target STMC1000A:mb618:st40
You can't do that when your target is `exec'
The program is not being run.


Somebody help me.
Last Edit: 10 years, 2 months ago by .

Re:ST40 / STb71xx JTAG interfacing 10 years, 2 months ago #878

  • lucx
Hello,

me with my problems again .

is possible to connect to console like this:

USB from STB to serial <-serial link rs232-> serial to USB for PC?
it will work?
Because my stb has only usb ports!

It was a stupid thing to ask!!
But how can i connect to console to this STB.
Last Edit: 10 years, 2 months ago by .

Re:ST40 / STb71xx JTAG interfacing 10 years, 2 months ago #879

  • YLG80
  • OFFLINE
  • Moderator
  • Posts: 776
  • Karma: 28
Some receivers have a RS232 port at the SCART connector pin 10,12 and 14 (GND). Some uses TTL (0/5V) signal levels and need external level convertes for real RS232 levels, some have build in level converters for real RS232 levels (-10V/+10V).

Re:ST40 / STb71xx JTAG interfacing 10 years, 2 months ago #880

  • YLG80
  • OFFLINE
  • Moderator
  • Posts: 776
  • Karma: 28
@lucx

I've read your logs.
You perhaps have a memory configuration problem.
You should have a look at Duxzero post in the ST40 / STb71xx JTAG s/w stuff thread.

He mentioned he had to modify the makefile and mb442.h in order to match with his stb configuration


Where mb442_27_config have to match whatever config suits your board best.
Look inside the Makefile (scroll down almost at the bottom) to see all SH4 supported boards.
I had to do some modifications to the mb442 header file too.
The header is found in /opt/STM/STLinux-2.4/devkit/sources/u-boot/u-boot-sh4/include/configs/mb442.h
The modifications I had to make to have it working with my board was to make it use UART3 instead of UART2.
By default it sends console output to the first serial port, on my board that port is used by the front processor (I believe) and the second port UART3 (/dev/ttyAS1) is the RS232 serial port on the backside of the STB.
The other changes I made was changing CFG_SDRAM_SIZE to 0x080000000 (it was 0x040000000) and CFG_MAX_FLASH_SECT to 256 (was 128 I think). I know these changes can actually be added to the Makefile too adding them as parameters to the board config, but I did it the quick way and edited the mb442.h.
If the compilation completed successfully you should now have 4 new files in your directory. uboot uboot.bin uboot.map and uboot.srec. The file we want here is uboot, which is the ELF file.
To keep things nice and tidy move these files to the ...target/u-boot folder.
Last Edit: 10 years, 2 months ago by YLG80.
Time to create page: 1.75 seconds
Sizler icin kurdugumuz sitemizde yabanci diziler ve film arsivi ile birlikte gunluk burc yorumlari son dakika haberler bulunur Dizimag Hayata dair herseyi sizlere gosteriyoruz. Hemen sitemize girip eglencenize bakabilir zamaninizi guzel gecirebilirsiniz.