I'm currently working on loading new firmware on the AT91R40008-66AU chip using j-link. I'm having issues being able to not only load new firmware to the chip but also erase anything loaded on the chip. It currently shows that it completed erasing but when I check it using another utility the tools still has whatever firmware that was loaded to it still on it.
Also sometimes it returns with an error code -1. Also I can't seem to successfully load .hex and .bin files using the batch file method. I do know that we need to set the power on in the batch file script so that's not the issue.
Here is what I have so far:
if JTAG
device ARM7
power on
hwinfo
speed 30
r
w4 0xFFE00000 0x0100253D
w4 0xFFE00024 0x00000006
w4 0xFFE00020 0x00000001
speed 4000
erase
//loadfilec:\images\filename.hex
//loadfile \\winvatar\firmware\firmware_install\filename.bin,0x1010000
r
go
//exit
Can someone help with this?
Also sometimes it returns with an error code -1. Also I can't seem to successfully load .hex and .bin files using the batch file method. I do know that we need to set the power on in the batch file script so that's not the issue.
Here is what I have so far:
if JTAG
device ARM7
power on
hwinfo
speed 30
r
w4 0xFFE00000 0x0100253D
w4 0xFFE00024 0x00000006
w4 0xFFE00020 0x00000001
speed 4000
erase
//loadfilec:\images\filename.hex
//loadfile \\winvatar\firmware\firmware_install\filename.bin,0x1010000
r
go
//exit
Can someone help with this?