sb5100 flash wont program, always 0xFF
-
- Junior Member
- Posts: 14
- Joined: Thu May 13, 2010 3:42 pm
sb5100 flash wont program, always 0xFF
I made the mistake of interrupting the flashing of an SB5100
power cycle, could not be identified by jtagusb
followed the 3.3v instructions. after a few passes, it finally worked... sort of
now can read/write at normal speeds, and seems to succeed, but verify fails.
whatever is written, by program, or sprogram, reading those same bytes always returns 0xff
if i edit the first row of ram, then write it, then read it back, the edits are still there
if i do the same with any flash area, write seems to succeed, read always retursn 0xFF
what can i try next?
ive tried the debrick method included in sb5100 script
ive tried both method 1 and method 2 scripts from here in the forum.
power cycle, could not be identified by jtagusb
followed the 3.3v instructions. after a few passes, it finally worked... sort of
now can read/write at normal speeds, and seems to succeed, but verify fails.
whatever is written, by program, or sprogram, reading those same bytes always returns 0xff
if i edit the first row of ram, then write it, then read it back, the edits are still there
if i do the same with any flash area, write seems to succeed, read always retursn 0xFF
what can i try next?
ive tried the debrick method included in sb5100 script
ive tried both method 1 and method 2 scripts from here in the forum.
-
- Junior Member
- Posts: 17
- Joined: Sat Feb 21, 2009 4:35 pm
detect
ldram 9fc00000 (Select the 2mb dump file)
poke fffe230c 3
poke fffe2304 0
poke fffe2300 a
poke fffe2300 9
poke fffe2300 9
poke fffe2300 9
poke fffe2300 9
poke fffe2300 9
poke fffe2300 9
poke fffe2300 9
poke fffe2300 9
poke fffe2300 1c
detect (if detect couldn't detect flash chip the first time)
program 9fc00000 200000
ldram 9fc00000 (Select the 2mb dump file)
poke fffe230c 3
poke fffe2304 0
poke fffe2300 a
poke fffe2300 9
poke fffe2300 9
poke fffe2300 9
poke fffe2300 9
poke fffe2300 9
poke fffe2300 9
poke fffe2300 9
poke fffe2300 9
poke fffe2300 1c
detect (if detect couldn't detect flash chip the first time)
program 9fc00000 200000
-
- Junior Member
- Posts: 14
- Joined: Thu May 13, 2010 3:42 pm
This is one of the methods that I tried, which didnt not helpivan242 wrote:detect
ldram 9fc00000 (Select the 2mb dump file)
poke fffe230c 3
poke fffe2304 0
poke fffe2300 a
poke fffe2300 9
poke fffe2300 9
poke fffe2300 9
poke fffe2300 9
poke fffe2300 9
poke fffe2300 9
poke fffe2300 9
poke fffe2300 9
poke fffe2300 1c
detect (if detect couldn't detect flash chip the first time)
program 9fc00000 200000
the other, unsuccessful one was:
detect
ldram boot
erase boot
sprogram boot
echo Power off and on SB5100
pause
detect
ldram 9fc00000
program 9fc00000 200000
cmpram 9fc00000 200000
-
- Junior Member
- Posts: 14
- Joined: Wed Feb 24, 2010 2:43 pm
did u make the hard reset and thensuteny0r wrote:This is one of the methods that I tried, which didnt not help
the other, unsuccessful one was:
detect
ldram boot
erase boot
sprogram boot
echo Power off and on SB5100
pause
detect
ldram 9fc00000
program 9fc00000 200000
cmpram 9fc00000 200000
detect and then put the original flash backup dude
-
- Junior Member
- Posts: 14
- Joined: Wed Feb 24, 2010 2:43 pm
no men do this Power ON run a wire from the 3.3v leg of the power rectifier closest to the flash chip.suteny0r wrote:if by 'hard reset' you mean 'power off then on, the target', as the script comment indicates.. yes.
multiple times.
To pin 1 of the Jtag port (header removed for clarity) (the #1 Pin has a square pad on both sides of the PCB, Top RH in this picture).
Hold it there for a couple of seconds.
Then run the 3.3v wire across each one of the Jtag pins quickly, the lights on the modem will falsh quickly) and you may even see a small spark (normal, but explains why you don't hold the 3.3v wire on the rest of the pins for long, 1 second "hit" is fine)
Leave the modem powered on and connect the Jtag.
now open the JtagUtility or but ever ur using and then try the original backup u did before mod the modem ok
1.detect
2.ldram 9fc10000
3.program 9fc10000 130000
and if u see a writing error try to turn the modem off and quickly connected back fast u can this is the way it work with me on SB5100
-
- Junior Member
- Posts: 14
- Joined: Wed Feb 24, 2010 2:43 pm
no men do this Power ON run a wire from the 3.3v leg of the power rectifier closest to the flash chip.suteny0r wrote:if by 'hard reset' you mean 'power off then on, the target', as the script comment indicates.. yes.
multiple times.
To pin 1 of the Jtag port (header removed for clarity) (the #1 Pin has a square pad on both sides of the PCB, Top RH in this picture).
Hold it there for a couple of seconds.
Then run the 3.3v wire across each one of the Jtag pins quickly, the lights on the modem will falsh quickly) and you may even see a small spark (normal, but explains why you don't hold the 3.3v wire on the rest of the pins for long, 1 second "hit" is fine)
Leave the modem powered on and connect the Jtag.
now open the JtagUtility or but ever ur using and then try the original backup u did before mod the modem ok
1.detect
2.ldram 9fc10000
3.program 9fc10000 130000
and if u see a writing error try to turn the modem off and quickly connected back fast u can this is the way it work with me on SB5100
-
- Junior Member
- Posts: 14
- Joined: Thu May 13, 2010 3:42 pm
I smell a troll. :/EuroDJ wrote:no men do this Power ON run a wire from the 3.3v leg of the power rectifier closest to the flash chip.
To pin 1 of the Jtag port (header removed for clarity) (the #1 Pin has a square pad on both sides of the PCB, Top RH in this picture).
Hold it there for a couple of seconds.
Then run the 3.3v wire across each one of the Jtag pins quickly, the lights on the modem will falsh quickly) and you may even see a small spark (normal, but explains why you don't hold the 3.3v wire on the rest of the pins for long, 1 second "hit" is fine)
Leave the modem powered on and connect the Jtag.
now open the JtagUtility or but ever ur using and then try the original backup u did before mod the modem ok
1.detect
2.ldram 9fc10000
3.program 9fc10000 130000
and if u see a writing error try to turn the modem off and quickly connected back fast u can this is the way it work with me on SB5100
-
- Junior Member
- Posts: 14
- Joined: Thu May 13, 2010 3:42 pm
fixed it
after doing the 3.3v pin 2 trick, and the script of pokes, i got the flash to identify again, but programming failed. always thought it wrote, and verify showed that it did not.
turns out, the answer was to slow it down to 'speed 2'
works perfectly.
i suspect that perhaps the root cause was that the usbjtagNT can't reliably work at speed 0, with all sb5100s. more importantly, it seems not to be able to tell when it's not successful.
this afternoon, it had bricked a second modem. this one without me having done anything wrong (like interrupting a flash).
I suggest adding this to the debrick faq, and adding to the documentation.
turns out, the answer was to slow it down to 'speed 2'
works perfectly.
i suspect that perhaps the root cause was that the usbjtagNT can't reliably work at speed 0, with all sb5100s. more importantly, it seems not to be able to tell when it's not successful.
this afternoon, it had bricked a second modem. this one without me having done anything wrong (like interrupting a flash).
I suggest adding this to the debrick faq, and adding to the documentation.
-
- Junior Member
- Posts: 8982
- Joined: Mon Jul 18, 2005 9:33 pm
Speed 2 works when you use DMA mode. If you use non-DMA mode (DEBUG ON) speed 0 works.suteny0r wrote:after doing the 3.3v pin 2 trick, and the script of pokes, i got the flash to identify again, but programming failed. always thought it wrote, and verify showed that it did not.
turns out, the answer was to slow it down to 'speed 2'
works perfectly.
i suspect that perhaps the root cause was that the usbjtagNT can't reliably work at speed 0, with all sb5100s. more importantly, it seems not to be able to tell when it's not successful.
this afternoon, it had bricked a second modem. this one without me having done anything wrong (like interrupting a flash).
I suggest adding this to the debrick faq, and adding to the documentation.
This is not problem of NT. It is the CPU is not initialized properly when no boot is programmed. Actually I have tested SB5101 with JTAG clock up to 24M and worked. But if the memory is not initialized then "sprogram" using DMA will run more stable with speed 2.
-
- Junior Member
- Posts: 14
- Joined: Thu May 13, 2010 3:42 pm
I noticed the bricked modem stayed in DEBUG mode.usbbdm wrote:Speed 2 works when you use DMA mode. If you use non-DMA mode (DEBUG ON) speed 0 works.
This is not problem of NT. It is the CPU is not initialized properly when no boot is programmed. Actually I have tested SB5101 with JTAG clock up to 24M and worked. But if the memory is not initialized then "sprogram" using DMA will run more stable with speed 2.
what is the proper method to ensure that it does not initialize in DEBUG mode?
btw, are EuroDJ's suggestions as ridiculous and destructive as they sound? Do you ban users for such pranks?
fyi, http://www.virustotal.com/ indicates that both usbjtagNT.exe contains 'suspicous' behavior, and usbjtag.exe in fact, contains malware/trojans. You may wish to investigate, as it casts your product in an unflattering light.
-
- Junior Member
- Posts: 8982
- Joined: Mon Jul 18, 2005 9:33 pm
If modem is bricked I suggest you debrick it with DEBUG ON. That is much stable to debrick than the non DEBUG mode.suteny0r wrote:I noticed the bricked modem stayed in DEBUG mode.
what is the proper method to ensure that it does not initialize in DEBUG mode?
btw, are EuroDJ's suggestions as ridiculous and destructive as they sound? Do you ban users for such pranks?
fyi, http://www.virustotal.com/ indicates that both usbjtagNT.exe contains 'suspicous' behavior, and usbjtag.exe in fact, contains malware/trojans. You may wish to investigate, as it casts your product in an unflattering light.
To force it to DEBUG ON mode, use
"tap c"
"tap a ffffffff"
After you see DEBUG ON then detect the CPU and flash, if you can detect the flash, use erase boot
sprogram boot
to program the boot.
Then power off on the modem and you now can use normal program.
Another method is use the script to poke the modem to initialize the memory then you can direct use "program"
Anyway I hope the script comes with the software will help you debrick it properly.
For the software USB JTAG NT no longer play with the host file you I do not know why it is report as an issue. It is simply packed to prevent someone clone again and claim copyright. For old USBJTAG 0.31 (if you can still find it). the host is removed but copyright cannot be removed. It is copyrighted usbjtag.com. Old USB JTAG had been stopped for 1.5 years and I no longer care what it does.
-
- Junior Member
- Posts: 14
- Joined: Thu May 13, 2010 3:42 pm
Why is the 5100 no-dma, and the 5101 dma?suteny0r wrote:I noticed the bricked modem stayed in DEBUG mode.
what is the proper method to ensure that it does not initialize in DEBUG mode?
btw, are EuroDJ's suggestions as ridiculous and destructive as they sound? Do you ban users for such pranks?
fyi, http://www.virustotal.com/ indicates that both usbjtagNT.exe contains 'suspicous' behavior, and usbjtag.exe in fact, contains malware/trojans. You may wish to investigate, as it casts your product in an unflattering light.
can this be changed with a console command?
if one way or the other is more reliable, but possibly a little slower, i would have liked the default to be the more conservative of the two
Who is online
Users browsing this forum: No registered users and 1 guest