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.

Code Compose Studio compilation error

Other Parts Discussed in Thread: CCSTUDIO

Hello,

 I'm new to CCStudio and TMS470R1 microprocessor.

 I'm learning how to use Code Compose Studio Version: 4.1.3.00038  to compile and debug a very simple C program. The microprocessor that I'm using is TMS470R1VF689.

 I'm able to use IAR software to write a simple code to blink LEDs but having problem using the CCStudio.

 Can anyone please explain to me what is wrong here?

 

--------------------------------------------------------------------------------------------------------------------------------

Software Tool: Code Compose Studio Version: 4.1.3.00038

Microprocessor: TMS470R1VF689.

Here, I'm trying to program a very simple code to blink a LED by toggling pin GIOA2, but I got the following code compilation error using the CCStudio.

The following is my main routine that contains a very simple code as below:

//
// TMS470R1VF689PZA
// -----------------
// /|\| |
// --|RST |
// | |
// LED1<--|GIOA4 |
// | |
// -----------------
//
//
// Hooi Miin Soo
// Oct 2010
// Built with Code Composer Studio Version: 4.1.3
//**************************************************
#include "gio/gio470.h"
#include "system.h"
#include "device.h"

SYSTEM_ST *SYS_Ptr = (SYSTEM_ST *) SYSTEM ;

void main(void)
{
// Init SYSCLK
SYS_Ptr->RCLKSRC_UN.RCLKSRC_ST.RTI1SRC_B4 = 8; //clock source 8 i.e VClk
SYS_Ptr->RCLKSRC_UN.RCLKSRC_ST.RTI1DIV_B2 = 0; //div the clk source 0 by 1



GIO_PortInit_V(0x000000FF, 0x000000FF, Port0); // Set GIOA to output direction

//*************************
// Loop forever.
for (;;)
{
volatile unsigned int i;

GIO_PinModify_V(Pin4, PortIoOutHigh, Port0) ; // Toggle GIOA4 high

i = 50000; // Delay
do (i--);
while (i != 0);

GIO_PinModify_V(Pin4, PortIoOutLow, Port0) ; // Toggle GIOA4 low

}
//*************************


}


Thanks & Regards,

Soo

  • Soo,

    Your unresolved symbol error would indicate to me that you are not including a necessary library as part of your build option. You will have to see where e_GIO_ST is defined and make sure that it is part of your build. Since I'm not familiar with your application, I can't offer much more insight. Hope this helps.

    ki