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 to generate project CCS to Stellaris Lauchpad



Hi Friend, 

I'm starting work with stellaris Lauchpad based on LM4F120H5QR ( default of launchpad), after test some examples of Stellaris Ware , I decide start develop my real application. In my university project I need read/write SD card, then my first step is: Test SPI. 

Then to start I got a link  to build a new project : http://processors.wiki.ti.com/index.php/Creating_new_CCS_v5_Project_with_Stellarisware 

I executed step by step of this procedure. After finished this procedure, I change code main.c (empty default of project ) to  C:\StellarisWare\examples\peripherals\ssi  (spi_master.c) because I need communication with SD card then I need to be SPI HOST. 

When I compiled this code I have the follow error:

GPIOPinTypeUART ./spi_master.obj
SSIBusy ./spi_master.obj
SSIConfigSetExpClk ./spi_master.obj
SSIDataGet ./spi_master.obj
SSIDataGetNonBlocking ./spi_master.obj
SSIDataPut ./spi_master.obj
SSIEnable ./spi_master.obj
SysCtlClockGet ./spi_master.obj
SysCtlClockSet ./spi_master.obj
SysCtlPeripheralEnable ./spi_master.obj
UARTStdioInit ./spi_master.obj
UARTprintf ./spi_master.obj

this for me meaning that compiler can't find files .c, and if I include this on code this problem is solved and other problems start.

I would like to help. someone can build this project for me or send informations that what is a correct procedures to get periferical devices code and build a new Project, I need this very very fast. Someone can help me8371.novotest2.rar

Attached has my code, someone can show me what I need to do to compile this code. Thanks too much and very sucess for everyone.6505.novotest2.rar

  • Henrique,

    Make sure you are #including the right files, and that the files are in your PATH. Also if you are in a real hurry don't create a new project, just copy an existing project and write code in it. This is the fastest way to get the settings right.

    -Austin

  • The "${SW_ROOT}/driverlib/ccs-cm4f/Debug?driverlib-cm4f.lib" is not a valid path for peripheral driver library (Project->Properties->Build->ARM Linker->File Search Path).

    Furthermore your project does not contain UART routines (utils/uartstudio.c  uartstudio.h) that are not part of driver library (you can copy-paste them from sample projects).

    Regards,
    Maciej 

  • Hi Austin, thanks for you suggestions, I will use this strategy in last time, I want to understand how I build all project because later I need to optimization this project too much. 

    I verify all includes and every is inside my project. 

    Thanks for you attention and best regards 

  • 1) add driverlib as a dependency(Properties->build->dependencies)

    2) add stellarisware\ to #include path (properties->Build->ARM Compiler->Include Options->add dri to #include search path), add c:\Stellarisware

    3) issues with include uartstdio.h, just change it to uartstdio.c and everything works

    -Austin

  • Hi Maciej. thanks for you attention., 

    then I have verify my project and I utils/uartstudio.c and .h in my project, attached pictures with this image, Then I didnt understand your answer, I check path project>....>arm linker, and I didnt find File search path link. 

    Can you try compile my project and verify with configuration is rigth. Thanks for you attention and best regards 

  • I have followed your recomendations but the program still didn´t work. The following problems were pointed:

    undefined                        first referenced
      symbol                                    in file
    ---------                                 ----------------
    GPIOPinConfigure           ./spi_master.obj

    >> Compilation failure
    GPIOPinTypeSSI                ./spi_master.obj
    GPIOPinTypeUART            ./spi_master.obj
    SSIBusy                                ./spi_master.obj
    SSIConfigSetExpClk          ./spi_master.obj
    SSIDataGet                          ./spi_master.obj
    SSIDataGetNonBlocking   ./spi_master.obj
    SSIDataPut                           ./spi_master.obj
    SSIEnable                             ./spi_master.obj
    SysCtlClockGet                    ./spi_master.obj
    SysCtlClockSet                    ./spi_master.obj
    SysCtlPeripheralEnable     ./spi_master.obj
    SysCtlPeripheralPresent   ./spi_master.obj
    UARTCharGet                      ./spi_master.obj
    UARTCharPut                      ./spi_master.obj
    UARTConfigSetExpClk      ./spi_master.obj
    UARTEnable                        ./spi_master.obj

  • Your project is not linked with driverlib. This is what you have: "${SW_ROOT}/driverlib/ccs-cm4f/Debug?driverlib-cm4f.lib"

    The question mark is obviously an error.

    Maybe you need to clock show advanced settings? It should look like that (well the path must be set for your installation directory):

  • Congratulations!!!!!Thanks tooo much I will start test device here. THanks again 

  • Maciej, thanks too much to solve compilation problem. 

    I executed project, and when I start debug of launchpad, and give play the CCS return the follow error: 

    and after this error I press play again and firmware transmitte correct using serial and SPI interfaces. 

    Can you help me understand this problem. 

    Thanks too much and have a good day.

  •  Replace

        return(0);

    with

        for(;;);

        return(0);

    When you return from main you go to hidden, mysterious parts of code...