cancel
Showing results for 
Search instead for 
Did you mean: 

Running Bootloader from Bank1 and trying to load new application to Bank0

rganti
Associate II
Posted on May 13, 2008 at 17:06

Running Bootloader from Bank1 and trying to load new application to Bank0

1 REPLY 1
rganti
Associate II
Posted on May 17, 2011 at 09:53

It doesn't succeed in writing the new application at Bank0 (0x00080000).

91x_init.s

-------------

LDR R6, =0x54000004 ; non boot bank size

LDR R7, =0x6 ; 512K

STR R7, [R6]

LDR R6, =0x5400000C ; boot bank address = Bank 1

LDR R7, =0x00 ; 0x0

STR R7, [R6]

LDR R6, =0x54000010 ; non boot bank address = Bank 0

LDR R7, =0x20000 ; 0x10000 = 4x 0x4000

STR R7, [R6]

LDR R6, =0x54000018 ; enable Non Boot bank

LDR R7, =0x18

STR R7, [R6]