Page 1 of 1

Compile error MMC over SPI driver

Posted: Sat Jan 12, 2013 3:42 pm
by alexblack
I am using current trunk of ChibiOS and can't compile project with MMC over SPI driver, because there is no declaration of mmcsdGetCapacity function:

Code: Select all

...
515 /* Determine capacity.*/
516  if (read_CxD(mmcp, MMCSD_CMD_SEND_CSD, mmcp->csd))
517    goto failed;
518  mmcp->capacity = mmcsdGetCapacity(mmcp->csd);
519  if (mmcp->capacity == 0)
520    goto failed;
...

Error[Li005]: no definition for "mmcsdGetCapacity" [referenced from G:\ARM_IAR\gps_info\Debug\Obj\mmc_spi.o]

Re: Compile error MMC over SPI driver

Posted: Sat Jan 12, 2013 4:25 pm
by Tectu
Is this the first and only error you're getting or do you get some undefined reference errors as well? In that case: Did you enable the correspoding subsystem in the halconf.h?


~ Tectu

Re: Compile error MMC over SPI driver

Posted: Sat Jan 12, 2013 4:33 pm
by alexblack
Tectu wrote:Is this the first and only error you're getting or do you get some undefined reference errors as well?
~ Tectu

I did not include file 'mmccsd.c' in my project, perhaps it was not in the previous version of the OS when I tested the driver.
Thanks, now all OK.