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.

CCS - StellarisWare Driver Libraries - Definition Problem



Hi all;

I succesfully debug and run example projects on stellaris lm4f120xl board. but i want to write these examples from scratch. so i followed this tutorial :

http://processors.wiki.ti.com/index.php/Creating_new_CCS_v5_Project_with_Stellarisware.

But somehow ccs began to has trouble with header files. when i build my code i get this result : 

i get rid of boolean error after i include the gpio.c file but i stuck with this error (#20 identifier "GPIO_PA0_U0RX" is undefined )

Do you have any suggestions??

Thanks 

Erdem

  • Erdem Varer said:
    i get rid of boolean error after i include the gpio.c file

    Including the gpio.c file into your main.c will lead to duplicate symbols errors from the linker. Instead you should #include <inc/hw_types.h> as the first include to get the tBoolean type from the hw_types.h file.
    Erdem Varer said:
    but i stuck with this error (#20 identifier "GPIO_PA0_U0RX" is undefined )
    The driverlib/pin_map.h include file uses conditional compilation to select the pin mapping for the Stellaris device in use. To make the definitions visible for the LM4F120H5QR on the lm4f120xl board, in the  CCS Project Properties -> Build -> Arm Compiler -> Predefined Symbols add  PART_LM4F120H5QR to the list of Pre-defined names. This step is missing from the tutorial!

  • Thanks Chester, that solved my problem

    Erdem