CG814WG v2 XML

This forum discuss about how to JTAG different devices.
CAPONE
Junior Member
Posts: 5011
Joined: Sat Dec 27, 2008 3:25 pm

Post by CAPONE »

geoneo111, Check your PM.
"If you give a man a fish you feed him for a day. If you teach a man to fish you feed him for a lifetime."
geoneo111
Junior Member
Posts: 17
Joined: Thu Sep 25, 2014 12:44 pm

Post by geoneo111 »

Thanks. It's the same as what Carlito's Way posted. You're saying that it worked for you? To read and restore stock and flash firmware to it?
I'm redoing one from scratch. So far, it's different from this. I'm almost done. I just have to test it. I'm just using the CM right now and don't want to mess it up.
geoneo111
Junior Member
Posts: 17
Joined: Thu Sep 25, 2014 12:44 pm

Post by geoneo111 »

I tested my file and it writes the stock to it but it fails when I verify. I'm getting "Compare data Failed address 9E7FFC80, target 20, PC memory FF"
It also bricks it when I try to flash firmware on it. Oh, well!
CAPONE
Junior Member
Posts: 5011
Joined: Sat Dec 27, 2008 3:25 pm

Post by CAPONE »

geoneo111 wrote:I tested my file and it writes the stock to it but it fails when I verify. I'm getting "Compare data Failed address 9E7FFC80, target 20, PC memory FF"
It also bricks it when I try to flash firmware on it. Oh, well!
I can check on my end. this one has the 8MB flash?
"If you give a man a fish you feed him for a day. If you teach a man to fish you feed him for a lifetime."
geoneo111
Junior Member
Posts: 17
Joined: Thu Sep 25, 2014 12:44 pm

Post by geoneo111 »

Thanks Capone. Yes this has an 8MB flash.

This is my file that I did from scratch but it's not good for flashing firmware. I did this based on the device information in the modem. Maybe someone can improve on it.

<Test>
<Name>CG814WGV2</Name>
<Cat>Modem</Cat>
<Protocol>EJTAG</Protocol>
<Endian>Big</Endian>
<IRLength>5</IRLength>
<DMA>Yes</DMA>
<ProbTrap>1</ProbTrap>
<Programram>0x80400000</Programram>
<Memorys>
<Memory>
<Name>Image2</Name>
<Type>1</Type>
<Address>0x9E000000</Address>
<Size>0x3E0000</Size>
</Memory>
<Memory>
<Name>Log</Name>
<Type>1</Type>
<Address>0x9E3E0000</Address>
<Size>0x20000</Size>
</Memory>
<Memory>
<Name>Boot</Name>
<Type>1</Type>
<Address>0x9E400000</Address>
<Size>0x20000</Size>
</Memory>
<Memory>
<Name>Image1</Name>
<Type>1</Type>
<Address>0x9E420000</Address>
<Size>0x3C0000</Size>
</Memory>
<Memory>
<Name>Config</Name>
<Type>1</Type>
<Address>0x9E7E0000</Address>
<Size>0x20000</Size>
</Memory>
<Memory>
<Name>Firmware2</Name>
<Type>1</Type>
<Address>0x9E000000</Address>
<Size>0x130000</Size>
</Memory>
<Memory>
<Name>Firmware1</Name>
<Type>1</Type>
<Address>0x9E420000</Address>
<Size>0x130000</Size>
</Memory>
</Memorys>
<Inits>
<Init>
<Address>0xFFFE0224</Address>
<Value>0x0</Value>
</Init>
<Init>
<Address>0xFFFE2300</Address>
<Value>0x1A</Value>
</Init>
<Init>
<Address>0xFFFE2304</Address>
<Value>0x0</Value>
</Init>
<Init>
<Address>0xFFFE2308</Address>
<Value>0x8040</Value>
</Init>
<Init>
<Address>0xFFFE230C</Address>
<Value>0x3</Value>
</Init>
<Init>
<Address>0xFFFE2310</Address>
<Value>0x4824</Value>
</Init>
</Inits>
</Test>
CAPONE
Junior Member
Posts: 5011
Joined: Sat Dec 27, 2008 3:25 pm

Post by CAPONE »

I can flash Firmware with no problem to This Device.
"If you give a man a fish you feed him for a day. If you teach a man to fish you feed him for a lifetime."
geoneo111
Junior Member
Posts: 17
Joined: Thu Sep 25, 2014 12:44 pm

Post by geoneo111 »

With yours or mine? Either way I think I might have taken a bad stock from the get go.
CAPONE
Junior Member
Posts: 5011
Joined: Sat Dec 27, 2008 3:25 pm

Post by CAPONE »

geoneo111 wrote:With yours or mine? Either way I think I might have taken a bad stock from the get go.
You may have ended with a Bad Backup. I am able to program Haxo or Stock firmware with no problems.

I did fail to mention, that on this particular modem, I only Use the USBJtag Nt application, not the UJModem application for programming.
"If you give a man a fish you feed him for a day. If you teach a man to fish you feed him for a lifetime."
geoneo111
Junior Member
Posts: 17
Joined: Thu Sep 25, 2014 12:44 pm

Post by geoneo111 »

Yeah, I'm back with this...

After redoing the xml file based on device (memory) information I'm able to flash to all the sections (Image2,log,booth,Image1 & config) but when it comes to AllFlash i get a memory error. "Compare data Failed address 9E7FFC80, target 20, PC memory FF".
When I created the XML by choosing New Target XML, I CopyFrom the old CG814WGV2 and left the Program Memory the same (0x80400000). Maybe that's my problem? Any help would be appreciated. Just trying to make the perfect xml.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests