code does now flash with bdmctrl and runs with FireTOS and EmuTOS

This commit is contained in:
Markus Fröschle
2012-12-09 10:23:48 +00:00
parent 39a67d3382
commit 570f61471d
3 changed files with 15 additions and 1 deletions

View File

@@ -70,6 +70,17 @@ write 0xFF000240 0x80000000 4 # disable watchdog arbiter
flash 0xE0000000 flash 0xE0000000
# do not flash yet. First check if board can be initialized correctly # do not flash yet. First check if board can be initialized correctly
#flash-plugin 0x10000000 0x4000 flash29.plugin
erase 0xE0000000 0
erase-wait 0xE0000000
erase 0xE0000000 0x1000
erase-wait 0xE0000000
erase 0xE0000000 0x2000
erase-wait 0xE0000000
erase 0xE0000000 0x3000
erase-wait 0xE0000000
blank-chk 0xE0000000 0x0
load -v bas.elf load -v bas.elf
#load -v ram.elf #load -v ram.elf
wait wait

View File

@@ -18,7 +18,6 @@ _rom_header:
*/ */
bra.s _rom_entry // Short jump to the real entry point bra.s _rom_entry // Short jump to the real entry point
.short 0x4ef9 // Fake jmp instruction .short 0x4ef9 // Fake jmp instruction
/* The second long is the initial PC */ /* The second long is the initial PC */
.long _rom_entry // Real entry point .long _rom_entry // Real entry point

View File

@@ -798,6 +798,10 @@ void initialize_hardware(void) {
init_gpio(); init_gpio();
init_serial(); init_serial();
init_slt(); init_slt();
xprintf("\r\nBaS_gcc for FireBee v 0.1\r\n", 0, 0);
xprintf("initializing hardware...\r\n");
init_fbcs(); init_fbcs();
init_ddram(); init_ddram();
init_fpga(); init_fpga();