SDHC failed to build on frdmk64 on KSDK2.0

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

SDHC failed to build on frdmk64 on KSDK2.0

727 次查看
phonghocle
NXP Employee
NXP Employee

Hello friends,

I am working on SDHC module for frdmk64f on KSDK2.0 downloaded from nxp website. I can run the "sdcard_polling" example successfully with ADMA2 mode. But when I enable ADMA1 mode (I've added a macro FSL_SDHC_ENABLE_ADMA1 to the project) and use ADMA1 to transfer the data, it failed to build the example. I got the errors "identifier SDHC_ADMA1_DESCRIPTOR_TYPE_TRANSFER is undefined (at fsl_sdhc.c file, line 1057) " and "identifier SDHC_ADMA1_DESCRIPTOR_END_MASK is undefined (at fsl_sdhc.c file, line 1057)". I think, these macro may be "kSDHC_Adma1DescriptorTypeTransfer" and "kSDHC_Adma1DescriptorEndFlag". But when I update them and run it again, it went to hardfault. Could you please help me to check this issue?

Thanks and Best Regards,

Phong Le

0 项奖励
回复
1 回复

639 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Phong:

I put the define into fsl_sdhc.h, it can build successfully.

#define FSL_SDHC_ENABLE_ADMA1  

I have tried with SDK_2.0_FRDM-K64F and SDK_2.1_FRDM-K64F, both are OK.

Could you try it again?

Regards

Daniel

0 项奖励
回复