From b7197791ff4bb43cca9b4188d4d4aac495af634e Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 16 Aug 2011 15:06:39 +0000 Subject: [PATCH] Fixed for Kinetis build with DEBUG on git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3885 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/kinetis/kinetis_start.c | 8 ++++++-- arch/arm/src/kinetis/kinetis_vectors.S | 4 ---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/src/kinetis/kinetis_start.c b/arch/arm/src/kinetis/kinetis_start.c index 1baa5e6260..d976e5b2c2 100644 --- a/arch/arm/src/kinetis/kinetis_start.c +++ b/arch/arm/src/kinetis/kinetis_start.c @@ -51,6 +51,7 @@ #include "up_internal.h" #include "kinetis_internal.h" +#include "kinetis_smc.h" /**************************************************************************** * Private Definitions @@ -122,12 +123,15 @@ void __start(void) } #endif - /* Perform clock and Kinetis module initialization */ + /* Perform clock and Kinetis module initialization (This depends on + * RAM functions having been copied to RAM). + */ kinetis_clockconfig(); /* Configure the uart and perform early serial initialization so that we - * can get debug output as soon as possible. + * can get debug output as soon as possible (This depends on clock + * configuration). */ kinetis_lowsetup(); diff --git a/arch/arm/src/kinetis/kinetis_vectors.S b/arch/arm/src/kinetis/kinetis_vectors.S index 017483bb2f..ff252c91a1 100644 --- a/arch/arm/src/kinetis/kinetis_vectors.S +++ b/arch/arm/src/kinetis/kinetis_vectors.S @@ -44,10 +44,6 @@ /************************************************************************************************ * Preprocessor Definitions ************************************************************************************************/ -# define KINETIS_FLASH_BASE 0x00000000 /* –0x0fffffff Program flash and read- - define KINETIS_SRAML_BASE 0000 /* –0x1fffffff SRAM_L: Lower SRAM - * (ICODE/DCODE) */ - /* Memory Map: * * 0x0000:0000 - Beginning of FLASH. Address of vectors