This forum discuss about how to JTAG different devices.
ricktendo
Junior Member
Posts: 133 Joined: Sat Nov 29, 2014 12:41 pm
Post
by ricktendo » Tue Mar 08, 2016 6:21 am
Trying to make a config for the E1500 but instead of JTAG I want to do a SPI version, here is my config (I stripped out all of the jtag stuff but I may have removed too much)
Code: Select all
<Test>
<Name>E1500SPI</Name>
<Cat>Router</Cat>
<Protocol>SPIFLASH</Protocol>
<Endian>Big</Endian>
<Memorys>
<Memory>
<Name>CFE</Name>
<Type>1</Type>
<Address>0x9C000000</Address>
<Size>0x40000</Size>
</Memory>
<Memory>
<Name>KERNEL</Name>
<Type>1</Type>
<Address>0x9C040000</Address>
<Size>0x7B0000</Size>
</Memory>
<Memory>
<Name>NVRAM</Name>
<Type>1</Type>
<Address>0x9c7F0000</Address>
<Size>0x10000</Size>
</Memory>
</Memorys>
</Test>
Here is the error I get when trying to ID
Code: Select all
http://www.usbjtag.com/vbforum ef,40,80
usbbdm
Junior Member
Posts: 8979 Joined: Mon Jul 18, 2005 9:33 pm
Post
by usbbdm » Tue Mar 08, 2016 6:46 pm
ricktendo wrote: Trying to make a config for the E1500 but instead of JTAG I want to do a SPI version, here is my config (I stripped out all of the jtag stuff but I may have removed too much)
Code: Select all
<Test>
<Name>E1500SPI</Name>
<Cat>Router</Cat>
<Protocol>SPIFLASH</Protocol>
<Endian>Big</Endian>
<Memorys>
<Memory>
<Name>CFE</Name>
<Type>1</Type>
<Address>0x9C000000</Address>
<Size>0x40000</Size>
</Memory>
<Memory>
<Name>KERNEL</Name>
<Type>1</Type>
<Address>0x9C040000</Address>
<Size>0x7B0000</Size>
</Memory>
<Memory>
<Name>NVRAM</Name>
<Type>1</Type>
<Address>0x9c7F0000</Address>
<Size>0x10000</Size>
</Memory>
</Memorys>
</Test>
Here is the error I get when trying to ID
Code: Select all
http://www.usbjtag.com/vbforum ef,40,80
What flash is this? Does it have JTAG port? It is always better to use JTAG port than direct SPI programming.
usbbdm
Junior Member
Posts: 8979 Joined: Mon Jul 18, 2005 9:33 pm
Post
by usbbdm » Tue Mar 08, 2016 6:48 pm
ricktendo
Junior Member
Posts: 133 Joined: Sat Nov 29, 2014 12:41 pm
Post
by ricktendo » Wed Mar 09, 2016 5:40 am
That video is with EJTAG connection, I prefer to connect to and power the SPI chip directly (because its easier to connect my soic8 test clip than to solder in that teeny, tiny jtag port)
What am I doing wrong with my config that the chip is not recognized?
usbbdm
Junior Member
Posts: 8979 Joined: Mon Jul 18, 2005 9:33 pm
Post
by usbbdm » Wed Mar 09, 2016 8:58 am
ricktendo wrote: That video is with EJTAG connection, I prefer to connect to and power the SPI chip directly (because its easier to connect my soic8 test clip than to solder in that teeny, tiny jtag port)
What am I doing wrong with my config that the chip is not recognized?
OK, then post your chip info. You might need to add the flash to the xml.
ricktendo
Junior Member
Posts: 133 Joined: Sat Nov 29, 2014 12:41 pm
Post
by ricktendo » Wed Mar 09, 2016 9:14 am
Winbond 25Q64BVSIG
Here is a pic I snapped with my usb microscope
http://i.imgur.com/djMuKLq.jpg
Edit: here is the stuff I stripped out or edited from the EJTAG config
Code: Select all
<IRLength>5</IRLength>
<DMA>No</DMA>
<ProbTrap>1</ProbTrap>
<LVMode>1</LVMode>
<Programram>0x80200000</Programram>
<SPIFlash>1</SPIFlash>
<SPIData>bcm5300spi.dat</SPIData>
<Inits>
<Init>
<Address>0x18000040</Address>
<Value>0x80000403</Value>
</Init>
</Inits>
Side by side config comparison:
http://i.imgur.com/bUorR14.png
usbbdm
Junior Member
Posts: 8979 Joined: Mon Jul 18, 2005 9:33 pm
Post
by usbbdm » Wed Mar 09, 2016 11:57 am
Go to tools and new spi flash. Clone it from any 2564 and enter the id as ef,40,80 and you are ready to go.
ricktendo
Junior Member
Posts: 133 Joined: Sat Nov 29, 2014 12:41 pm
Post
by ricktendo » Wed Mar 09, 2016 4:13 pm
WOW that was so easy, works like a charm now
Code: Select all
Copyright (C) 2010-2015
USB JTAG NT 0.77
Target: E1500SPI
-flshdct 9c000000
Found Address= 9c000000 W25Q64CV
-getram 9c000000 800000
Time 00:00:08 (.978)
Also: I still do not understand the "Init" trick you do to remove the first 32 bytes from tomato firmware, can you explain how it works a bit more?
usbbdm
Junior Member
Posts: 8979 Joined: Mon Jul 18, 2005 9:33 pm
Post
by usbbdm » Thu Mar 10, 2016 2:44 pm
Just remove the first 32 bytes.
You can use ldram with address minus 32 or save with address offset 32.
Or you can use external hex editor to do so.
Users browsing this forum: No registered users and 1 guest