This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

configuring SDCard for stellaries

Hi, I am working with stellaris Lauchpad based on LM4F120H5QR ( default of launchpad) and using an SDCard as storage device. I started my project using the example of sdcard () and it compiled perfectly. Since we are working with filesymtem we need a specific drive for the sdcard, when we verify the dual-disk-driver.c we didn´t found this definition


#ifdef DISK0_EK_LM4f232
#define DRIVE0_DRIVER "mmc-ek-lm4f232.c"
#define DRIVE0_TIMERPROC

 

that is needed for us to access the processor. Then my question is which drive is the sdcard example using? And where it was defined the drive to be used?

About my project, the compilation detected the following problems:

**** Build of configuration Debug for project SPI_TESTE ****

C:\ti\ccsv5\utils\bin\gmake -k all
'Building target: SPI_TESTE.out'
'Invoking: ARM Linker'
"C:/ti/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --define=TARGET_IS_BLIZZARD_RA1 --diag_warning=225 --display_error_number -z --stack_size=256 -m"SPI_TESTE.map" --heap_size=0 -i"C:/ti/ccsv5/tools/compiler/tms470_4.9.5/lib" -i"C:/ti/ccsv5/tools/compiler/tms470_4.9.5/include" --reread_libs --warn_sections --display_error_number --rom_model -o "SPI_TESTE.out" "./spi_master.obj" -l"libc.a" -l"C:\StellarisWare\driverlib\ccs-cm4f\Debug\driverlib-cm4f.lib" "../lm4f120h5qr.cmd"
<Linking>

undefined first referenced
symbol in file
--------- ----------------
CmdLineProcess ./spi_master.obj
UARTStdioInit ./spi_master.obj
UARTgets ./spi_master.obj

>> Compilation failure
UARTprintf ./spi_master.obj
disk_timerproc ./spi_master.obj
f_getfree ./spi_master.obj
f_mount ./spi_master.obj
f_open ./spi_master.obj
f_opendir ./spi_master.obj
f_read ./spi_master.obj
f_readdir ./spi_master.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "SPI_TESTE.out" not built
gmake: *** [SPI_TESTE.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

And in my code is defined:


#include <string.h>
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "driverlib/fpu.h"
#include "driverlib/gpio.h"
#include "driverlib/interrupt.h"
#include "driverlib/rom.h"
#include "driverlib/sysctl.h"
#include "driverlib/systick.h"
//#include "grlib/grlib.h"
#include "utils/cmdline.h"
#include "utils/uartstdio.h"
#include "third_party/fatfs/src/ff.h"
#include "third_party/fatfs/src/diskio.h"
#include "utils/ustdlib.c"

Why are these erros apearing since the includes are well defined? Thanks a lot, best regards