21 lines
536 B
Plaintext
21 lines
536 B
Plaintext
//connect to device
|
|
// NEED to specify -device AMA3B2KK-KBR (for Apollo3P) or -device AMA3B1KK-KBR/KCR (for Apollo3) from command line
|
|
si SWD
|
|
speed 1000
|
|
r
|
|
sleep 10
|
|
|
|
// download image to 0x80000 - **** Change this based on device flashmap ****
|
|
loadbin sbl.bin 0x80000 //load the SBL binary into temp location in flash
|
|
// Set up OTA Descriptor at 0xF0000 // **** Change this based on device flashmap ****
|
|
w4 0xF0000 0x80003
|
|
w4 0xF0004 0xFFFFFFFF
|
|
// Set up OTAPointer
|
|
w4 0x40020264 0xF0003
|
|
// Reset POI
|
|
w4 0x40000004 0x1B
|
|
|
|
|
|
// quit
|
|
qc
|