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.

Problem with stellaris compilation

Hi, I am working with stellaris Lauchpad based on LM4F120H5QR ( default of launchpad) and after compeling my code I have the follow error:

**** 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

 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

 

>> Compilation failure

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 ****


Does anyone has an ideia of why this error is appearing? My code is attached. Thanks

3872.SPI_TESTE.rar

  • It looks like you forgot to include utils/ustdlib.c, the FatFS file system code from third_party/fatfs/src and an associated SDCard driver. You don't say what storage device you are using but, assuming it's an SDCard, you can find some examples under third_party/fatfs/port as a starting point. I would recommend looking at ek-lm4f232h5qd.c and using this as your example because likely all that you will need to do to get it running on a suitably-modified LaunchPad is fix up the SPI pin definitions for your particular board wiring.