I like to learn howto use much better the scrip lenguaje used in USBJTAG(nt) software... chicking some scrip like dct2500.usp, I found many command but let's see this one first...
I like to learn howto use much better the scrip lenguaje used in USBJTAG(nt) software... chicking some scrip like dct2500.usp, I found many command but let's see this one first...
CAPONE wrote:Is seams like a Check or Instruction Not a COMMAND.
Look Here
if CMPRAM == 0 that means echo program failed goto continue
if TRAP == 1 Software is Instructed to goto restoreloop
CMPRAM == 0 significa si la comparacion es exacta osea que no hay diferencia.. continue... de lo contrario... hace otra cosa... ese comando lo entiendo bien.
Pero el TRAP cuando hay que usarlo o porque se usa ?
Creo que tiene que ver con el estado del usbjtag(nt) o del device que se este probando. . . no se algo de eso.. seria bueno si alguien tiene mejor conocimiento lo compartiera con los menos favorecidos...
Sorry for el spanglish... se me acabo el ingles
Keep Trying . . . !
Note: If you believe is much better in the spanish seccion . . you can move it. I posted here because many more people share in english.
begin:
cls
if TRAP == 1
echo You need power off on the box
goto continue
endif
/////////////////////////////////////////////
// DP 301-013 1 Chip Script
/////////////////////////////////////////////
begin:
cls
if TRAP == 1
echo You need power off on the box
goto continue
endif
/////////////////////////////////////////////
// DP 301-013 1 Chip Script
/////////////////////////////////////////////
Keep Trying . . . !
There is no easy way to detect the power. But you can send detect and see if CPU ID is detected. If it is then power is on.
begin:
cls
if TRAP == 1
echo You need power off on the box
goto continue
endif
/////////////////////////////////////////////
// DP 301-013 1 Chip Script
/////////////////////////////////////////////
echo 1. Backup flash and eeprom
echo 2. Restore flash and eeprom
echo 3. Debrick (When normal programming not working)
echo 4. Firmware Testing (Cloning)
echo 5. Exit
option 1 backup 2 restore 3 end 4 testing 5 end
backup:
detect
wait 800
echo backup flash
getram firm
save firm
echo back eeprom
getram eeprom
save eeprom
goto continue
restore:
detect
wait 800
echo restore flash
[b][color=red]flashchk[/color] 7FC00000
if FLASHSET == 0[/b]
echo flash not defined
goto continue
endif
ldram firm
erase firm
sprogram firm
wait 1000
cmpram firm
if CMPRAM == 0
echo program failed
goto continue
endif
echo restore eeprom
ldram eeprom
program eeprom
cmpram eeprom
restoreloop:
echo Please power off/on the box
pause
if TRAP == 1
goto restoreloop
endif
goto begin
debrick:
echo Use jumper to short J200. Then power on the box.
pause
detect
wait 800
tap c
tap a ffffffff
wait 1000
if DEBUG == 0
echo Please try again
goto continue
endif
echo Remove the jumber
pause
detect
if FLASHSET == 0
echo flash not defined
goto continue
endif
erase boot
echo Load proper boot
ldram boot
checkmdw 90000000
if MEMORY != 1000018f
echo Your boot code does not seems to be right.
goto continue
endif
sprogram boot
scmpram boot
if CMPRAM == 0
echo Please power off/on the box and try to debrick again
endif
debrickloop:
echo Power off/on the box. Then use normal restore method to program the box.
pause
if DEBUG == 1
goto debrickloop
goto begin
testing:
detect
wait 800
echo restore flash
flashchk 7FC00000
if FLASHSET == 0
echo flash not defined
goto continue
endif
echo Firmware testing
getram firm
ldram privaty
erase firm
sprogram firm
wait 800
cmpram firm
if CMPRAM == 0
echo program failed
goto continue
endif
goto restoreloop
endif
continue:
pause
goto begin
end:
This command "flashchk" is used to check if we got detect right the FLASH or only if the Defenition is right ?
In the original i see the value was 90000000 and this is the starting address for memory but in the DP301-013 the starting address is 7FC00000 thats is why i change and work.
usbbdm wrote:There is some description in the pdf manual. Has anyone read it?
many times over i've read it...it EXPLAINS alot. and you can tell by alot of questions here that NOT MANY have actually read it. there is a VAULT of knowledge in it that's for sure. everything from explaining things that can be done to the COMMANDS people require to send...but does it tell you how to write scripts in it? it's been awhile so i don't have it memorized..lol...
The basic script command are show in the help.
The "control" command include "if" "goto" command. I hope this is not hard to understand giving that we have several script examples.