../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
Hello Roger,
Maybe the reason of structure of the header file .
(1) I create a now header file "test.h" , then copy that macro to it , then build , there will be have not this error.
(2) Please add all the header file paths here :
Have a great day,
Alice
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------