SDHC failed to build on frdmk64 on KSDK2.0

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SDHC failed to build on frdmk64 on KSDK2.0

728件の閲覧回数
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 返信

640件の閲覧回数
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 件の賞賛
返信