diff --git a/cpu/mcf52x2/start.S b/cpu/mcf52x2/start.S
index 260a09a..c086ca7 100644
--- a/cpu/mcf52x2/start.S
+++ b/cpu/mcf52x2/start.S
@@ -160,7 +160,7 @@ _copy_flash:
_flashbar_setup:
/* Initialize FLASHBAR: locate internal Flash and validate it */
move.l #(CFG_INT_FLASH_BASE + CFG_INT_FLASH_ENABLE), %d0
- movec %d0, %RAMBAR0
+ movec %d0, %FLASHBAR
jmp _after_flashbar_copy.L /* Force jump to absolute address */
_flashbar_setup_end:
nop
@@ -168,7 +168,7 @@ _after_flashbar_copy:
#else
/* Setup code to initialize FLASHBAR, if start from external Memory */
move.l #(CFG_INT_FLASH_BASE + CFG_INT_FLASH_ENABLE), %d0
- movec %d0, %RAMBAR0
+ movec %d0, %RAMBAR1
#endif /* (TEXT_BASE == CFG_INT_FLASH_BASE) */
arch/m68k/cpu/mcf52x2/config.mk ifneq (,$(findstring CONFIG_M5282,$(is5282))) 56 PLATFORM_CPPFLAGS += -m5307
export ARCH=m68k
export CROSS_COMPILE=m68k-elf-
make M5282EVB_config ARCH=m68k CROSS_COMPILE=/usr/local/bin/m68k-elf-
make M5282EVB_config make all #endif
The below shows the results. Later, I changed to the makefile to use -m5307 instead of -mcpu= and the make chokes on the assembly keyword %RAMBAR1. I changed this to %RAMBAR, and now the make compiles everything but when the link runs it errors on duplicate subroutines.
I feel that all these problems are related to the m68k toolchain I use (m68k-uclinux 4.2.4)
vim common/Makefile
XCOBJS-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o
becomes
COBJS-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o
|