Compile error MMC over SPI driver

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
alexblack
Posts: 277
Joined: Mon Sep 24, 2012 3:52 pm
Been thanked: 33 times

Compile error MMC over SPI driver

Post 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]
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Re: Compile error MMC over SPI driver

Post 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
alexblack
Posts: 277
Joined: Mon Sep 24, 2012 3:52 pm
Been thanked: 33 times

Re: Compile error MMC over SPI driver

Post 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.
Post Reply