AnsweredAssumed Answered

KBoot Compile Failure

Question asked by Roger Pease on May 25, 2015

../Sources/Bootloader/flash_cache_clear.c:121:28: error: 'FMC_BASE' undeclared (first use in this function)

     BW_FMC_PFB0CR_CINV_WAY(FMC_BASE, ~0);

                            ^

../Sources/Bootloader/flash_cache_clear.c:121:28: note: each undeclared identifier is reported only once for each function it appears in

make: *** [Sources/Bootloader/flash_cache_clear.o] Error 1

 

Yet, flash_cache_clear.h calls:

 

#include "fsl_device_registers.h"

 

I added a  #define CPU_MK22FN128VDC10 (not the processor I'm using.. still evaluating).

 

which calls #include "devices/system/MK22F12810.h"

 

which appears to define FMC_BASE on line 2209.

#define FMC_BASE                                 (0x4001F000u)

 

If I go to that line in flash_cache_clear.c and click 'F3' Eclipse even finds it.

 

I am using Kinetis Design Studio

 

Attaching a project file..  appreciate any insights...

 

I am using Kinetis Design Studio 3.0.0....

 

Thanks,

 

Roger

Original Attachment has been moved to: BootLoaderTest.zip

Outcomes