KBoot Compile Failure

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

KBoot Compile Failure

420 次查看
rogerpease
Contributor III

../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

标签 (1)
0 项奖励
1 回复

308 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

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.

pastedImage_0.png

(2) Please add all the header file paths here :

pastedImage_1.png


Have a great day,
Alice

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励