[En-Nut-Discussion] Fw: MMC problem: undefined reference to `devNplMmc0'

Piotr Bocian piterb at op.pl
Wed Feb 25 20:13:03 CET 2009


Hello,
I have a problem with MMC card when I'm trying to compile example from http://www.ethernut.de/en/documents/phat.html . When I add a code: 

#include <dev/nplmmc.h>

(...)

/* Register the MMC block device. */
if (NutRegisterDevice(&devNplMmc0, 0, 0)) {
    /* Handle error */
}

and I want to "make all" in WinAvr I get an error:
mc_phat.o: In function `NutAppMain':
mmc_phat.c:(.text+0x6e): undefined reference to `devNplMmc0'
mmc_phat.c:(.text+0x70): undefined reference to `devNplMmc0'

I suspect it's something with adding libraries but I don't know how to check what it's wrong exactly.

I'm using Ethernut 4.7.4 on this board: http://www.propox.com/products/t_124.html?lang=en , with following configuration file:

PLATFORM = "MMNET01"
AVR_GCC = ""
MCU_ATMEGA128 = ""
RTL_BASE_ADDR = "0xFF00"
NUTMEM_START = "0x100"
NUTMEM_RESERVED = "64"
NUTXMEM_SIZE = "60928"
NUTXMEM_START = "0x1100"
NUT_CPU_FREQ = "16000000"

Thanks in advance for any help!

Piotr


More information about the En-Nut-Discussion mailing list