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.

Getting a C2000 to Blink

Hi All,

I'm trying to get a C2000 to blink with the following code:

#include "DSP28x_Project.h" // DSP28x Headerfile

#include "clk.h"

#include "gpio.h"

#include "pll.h"

#include "wdog.h"

 

#ifdef _FLASH

memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);

#endif

 

void main()

{

WDOG_Handle myWDog;

myWDog = WDOG_init((void *)WDOG_BASE_ADDR, sizeof(WDOG_Obj));

WDOG_disable(myWDog);

CLK_Handle myClk;

PLL_Handle myPll;

myClk = CLK_init((void *)CLK_BASE_ADDR, sizeof(CLK_Obj));

myPll = PLL_init((void *)PLL_BASE_ADDR, sizeof(PLL_Obj));

CLK_setOscSrc(myClk, CLK_OscSrc_Internal);

PLL_setup(myPll, PLL_Multiplier_12, PLL_DivideSelect_ClkIn_by_2);

GPIO_Handle myGpio;

myGpio = GPIO_init((void *)GPIO_BASE_ADDR, sizeof(GPIO_Obj));

GPIO_setMode(myGpio, GPIO_Number_0, GPIO_0_Mode_GeneralPurpose);

GPIO_setDirection(myGpio, GPIO_Number_0, GPIO_Direction_Output);

GPIO_setMode(myGpio, GPIO_Number_1, GPIO_1_Mode_GeneralPurpose);

GPIO_setDirection(myGpio, GPIO_Number_1, GPIO_Direction_Output);

GPIO_setMode(myGpio, GPIO_Number_2, GPIO_2_Mode_GeneralPurpose);

GPIO_setDirection(myGpio, GPIO_Number_2, GPIO_Direction_Output);

GPIO_setMode(myGpio, GPIO_Number_3, GPIO_3_Mode_GeneralPurpose);

GPIO_setDirection(myGpio, GPIO_Number_3, GPIO_Direction_Output);

GPIO_setHigh(myGpio, GPIO_Number_0);

GPIO_setHigh(myGpio, GPIO_Number_1);

GPIO_setHigh(myGpio, GPIO_Number_2);

GPIO_setHigh(myGpio, GPIO_Number_3);

while(1)

{

GPIO_setLow(myGpio, GPIO_Number_0);

DELAY_US(1000000);

GPIO_setHigh(myGpio, GPIO_Number_0);

DELAY_US(1000000);

}

And each time, I get the following errors:

error #10234-D: unresolved symbols remain

error #10010: errors encountered during linking; "Blink.out" not built

I don't understand why this is the case. Please help.