Post by usbbdm on Mar 27, 2005 11:42:57 GMT -5
Here are some example to use the USB BDM.
1. Backup firmware (PH7/PH8)
reset 1
init
getram 400000 200000
savecode
2. Backup firmware (PH6)
reset 1
go (or press F5)
break (after the box finish its diagnostics)
getram 400000 200000
savecode
3. Backup/Restore NVRAM (all platform)
backup
reset 1
init
getram 200000 40000
savenv
Restore
reset 1
init
ldram 200000
setram 200000 40000
4. Program flash (PH7/PH8)
reset 1
init
ldram 400000 (select the firmware you want to download)
program (select proper flash type)
reset (reset the box without BDM)
5. Program flash (PH6)
reset 1
go (or press F5)
break (after the box finish its diagnostics)
ldram 400000 (select the firmware you want to download)
program (select proper flash type)
reset (reset the box without BDM)
6. Reset PPV ( all platform) (use 3 to backup your NVRAM first)
Check your PPV status by go to diagnostic screen under "General" and the number of purchase is not 0.
reset 1
go (or press F5)
break (after the box finish its diagnostics)
go= address of clear memory
reset
Check your PPV status.
Here are the address of clear PPV. If you are not sure post your firmware use 1 or 2, or go to diagnostic to check your firmware version.
Firmware "07.93, address=43089E
Firmware "07.44" address =42A91E
Firmware "07.85" address=43080E
Firmware "07.54" address=42E618
Firmware "07.22" address=430142
Firmware "06.73" address=425382
7. Run your small applications. (For advance user only).
Use assembly create .s file
assemble and generate binary file. Make sure your application runs between range $D00000-$EF0000.
eg. your application called snifferspi.bin runs at $D80000, length 400
reset 1
init
ldram d80000
setram d80000 200
go= d80000 (or t=d80000)
1. Backup firmware (PH7/PH8)
reset 1
init
getram 400000 200000
savecode
2. Backup firmware (PH6)
reset 1
go (or press F5)
break (after the box finish its diagnostics)
getram 400000 200000
savecode
3. Backup/Restore NVRAM (all platform)
backup
reset 1
init
getram 200000 40000
savenv
Restore
reset 1
init
ldram 200000
setram 200000 40000
4. Program flash (PH7/PH8)
reset 1
init
ldram 400000 (select the firmware you want to download)
program (select proper flash type)
reset (reset the box without BDM)
5. Program flash (PH6)
reset 1
go (or press F5)
break (after the box finish its diagnostics)
ldram 400000 (select the firmware you want to download)
program (select proper flash type)
reset (reset the box without BDM)
6. Reset PPV ( all platform) (use 3 to backup your NVRAM first)
Check your PPV status by go to diagnostic screen under "General" and the number of purchase is not 0.
reset 1
go (or press F5)
break (after the box finish its diagnostics)
go= address of clear memory
reset
Check your PPV status.
Here are the address of clear PPV. If you are not sure post your firmware use 1 or 2, or go to diagnostic to check your firmware version.
Firmware "07.93, address=43089E
Firmware "07.44" address =42A91E
Firmware "07.85" address=43080E
Firmware "07.54" address=42E618
Firmware "07.22" address=430142
Firmware "06.73" address=425382
7. Run your small applications. (For advance user only).
Use assembly create .s file
assemble and generate binary file. Make sure your application runs between range $D00000-$EF0000.
eg. your application called snifferspi.bin runs at $D80000, length 400
reset 1
init
ldram d80000
setram d80000 200
go= d80000 (or t=d80000)