From 25d341b48f71d6fb246e9fbfb22ef09d715c032e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Sun, 9 Dec 2012 10:23:48 +0000 Subject: [PATCH] code does now flash with bdmctrl and runs with FireTOS and EmuTOS --- mcf5474.bdm | 11 +++++++++++ sources/startcf.S | 1 - sources/sysinit.c | 4 ++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/mcf5474.bdm b/mcf5474.bdm index 02f9f0f..4b116f0 100755 --- a/mcf5474.bdm +++ b/mcf5474.bdm @@ -70,6 +70,17 @@ write 0xFF000240 0x80000000 4 # disable watchdog arbiter flash 0xE0000000 # 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 ram.elf wait diff --git a/sources/startcf.S b/sources/startcf.S index f544dc3..6188337 100644 --- a/sources/startcf.S +++ b/sources/startcf.S @@ -18,7 +18,6 @@ _rom_header: */ bra.s _rom_entry // Short jump to the real entry point .short 0x4ef9 // Fake jmp instruction - /* The second long is the initial PC */ .long _rom_entry // Real entry point diff --git a/sources/sysinit.c b/sources/sysinit.c index 4f6f67f..93dd8ff 100644 --- a/sources/sysinit.c +++ b/sources/sysinit.c @@ -798,6 +798,10 @@ void initialize_hardware(void) { init_gpio(); init_serial(); init_slt(); + + xprintf("\r\nBaS_gcc for FireBee v 0.1\r\n", 0, 0); + xprintf("initializing hardware...\r\n"); + init_fbcs(); init_ddram(); init_fpga();