modified to incorporate printf routine
This commit is contained in:
17
mcf5474.bdm
17
mcf5474.bdm
@@ -6,7 +6,7 @@ open $1
|
||||
reset
|
||||
|
||||
# notify flashlib that we have flash at address 0xE0000000, length 0x7FFFFF, plugin is flash29
|
||||
flash 0xE0000000 flash29
|
||||
#flash 0xE0000000 flash29
|
||||
# do not flash yet. First check if board can be initialized correctly
|
||||
|
||||
# set VBR
|
||||
@@ -15,11 +15,15 @@ write-ctrl 0x0801 0x00000000
|
||||
# Turn on MBAR at 0xFF00_0000
|
||||
write-ctrl 0x0C0F 0xFF000000
|
||||
|
||||
# Turn on MMUBAR at 0xFF04_0000
|
||||
#write-ctrl 0x0008 0xFF000001
|
||||
#write 0xFF000008 0x00000000 4
|
||||
|
||||
# Turn on RAMBAR0 at address FF10_0000
|
||||
write-ctrl 0x0C04 0xFF100035
|
||||
write-ctrl 0x0C04 0xFF100007
|
||||
|
||||
# Turn on RAMBAR1 at address FF10_1000
|
||||
write-ctrl 0x0C05 0xFF101035
|
||||
write-ctrl 0x0C05 0xFF101001
|
||||
|
||||
# Init CS0 (BootFLASH @ E000_0000 - E07F_FFFF 8Mbytes)
|
||||
write 0xFF000500 0xE0000000 4
|
||||
@@ -44,8 +48,5 @@ write 0xFF000104 0xE10D0004 4 # SDCR + IREF (first refresh)
|
||||
write 0xFF000100 0x008D0000 4 # SDMR (write to LMR)
|
||||
write 0xFF000104 0x710D0F00 4 # SDCR (lock SDMR and enable refresh)
|
||||
|
||||
# load -v ram.s19 # unfortunately, this seems to work only with elf files
|
||||
load -v bas.s19.elf # TODO: bdmctrl tries to flash but doesn't succed. Don't know why yet
|
||||
#load -v ram.s19.elf
|
||||
sleep 60000
|
||||
execute 0x1000000
|
||||
load -v ram.s19.elf
|
||||
execute 0x10000000
|
||||
|
||||
Reference in New Issue
Block a user