AnsweredAssumed Answered

Processor Expert sdhc module fails to compile

Question asked by giacomopetrini on Nov 5, 2014
Latest reply on Mar 21, 2015 by ChrisTango

Using KSDK 1.0.0 on KDS1.1.1 all updated.

I add a fsl_sdhc component in my processor expert project.

I generate the code.

I try to compile it and fails giving me this error:

arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -gdwarf-2 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections  -g3 -gdwarf-2 -D"CPU_MK64FN1M0VLL12" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/hal/mcg" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/hal/sim/MK64F12" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/hal/sim" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/hal/osc" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/system/clock/MK64F12" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/system/clock" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/hal/port" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/system/interrupt" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/system/interrupt/src" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/hal/gpio" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/drivers/gpio" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/drivers/gpio/src" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/drivers/gpio/common" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/CMSIS/Include" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/CMSIS/Include/device" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/CMSIS/Include/device/MK64F12" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/utilities" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/utilities/src" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/startup" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/startup/MK64F12/gcc" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/startup/MK64F12" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/Generated_Code/System" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/Sources" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/Sources/fatfs" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/Sources/Adafruit" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/Generated_Code" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/drivers/sdhc" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/hal/lptmr" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/osa" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/hal/i2c" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/drivers/i2c/common" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/drivers/i2c/i2c_master" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/drivers/i2c/i2c_master/src" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/drivers/i2c/i2c_slave" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/drivers/i2c/i2c_slave/src" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/hal/uart" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/drivers/uart/common" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/drivers/uart" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/drivers/uart/src" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/hal/pit" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/drivers/pit" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/drivers/pit/src" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/drivers/pit/common" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/hal/sdhc" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/drivers/sdhc/src" -I"C:/Users/jack/Dropbox/MBD/Progetti/TwingTec/Firmware/twing_workspace/Firmware/SDK/platform/drivers/sdhc/common" -std=gnu99 -MMD -MP -MF"SDK/platform/drivers/pit/common/fsl_pit_common.d" -MT"SDK/platform/drivers/pit/common/fsl_pit_common.o" -c -o "SDK/platform/drivers/pit/common/fsl_pit_common.o" "../SDK/platform/drivers/pit/common/fsl_pit_common.c"

../SDK/platform/drivers/sdhc/src/fsl_sdhc_driver.c: In function 'SDHC_DRV_Reset':

../SDK/platform/drivers/sdhc/src/fsl_sdhc_driver.c:430:19: error: 'SDHC_RESET_ALL' undeclared (first use in this function)

     if (!(mask & (SDHC_RESET_ALL | SDHC_RESET_DATA | SDHC_RESET_CMD)))

 

It seems that it can't find "sdhc.h" that is in <project_path>/SDK/platform/drivers/sdhc but it is there!!!!

 

Any ideas?

 

Thanks

Best Regards

Giacomo

Outcomes