merged main trunk changes

This commit is contained in:
Markus Fröschle
2012-12-09 16:21:33 +00:00
parent 7251215f64
commit 185ca67f7d
3 changed files with 28 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/local/bin/bdmctrl -v10
#!/usr/local/bin/bdmctrl -D2
#
# firebee board initialization for bdmctrl
#
@@ -67,11 +67,23 @@ write 0xFF000104 0x710D0F00 4 # SDCR (lock SDMR and enable refresh)
write 0xFF000240 0x80000000 4 # disable watchdog arbiter
# notify flashlib that we have flash at address 0xE0000000, length 0x7FFFFF, plugin is flash29
flash 0xE0000000 flash29
flash 0xE0000000
# do not flash yet. First check if board can be initialized correctly
# load -v bas.elf
load -v ram.elf
#flash-plugin 0x10000000 0x4000 flash29.plugin
# contrary to documentation, it seems we need to erase-wait after each sector
erase 0xE0000000 0
erase-wait 0xE0000000
erase 0xE0000000 0x1000
erase-wait 0xE0000000
erase 0xE0000000 0x2000
erase-wait 0xE0000000
erase 0xE0000000 0x3000
erase-wait 0xE0000000
load -v bas.elf
#load -v ram.elf
wait
sleep 1000
sleep 100
execute