I have constructed and am trying to build a simple LED blinking code on the TMS320F28027. All I have saved in the project directory is a main.c file, in the location C:\Users\daniel\workspace_v5_5\LEDblink\main.c. I am receiving the error message Fatal error #1966: cannot open source file.
This might possibly be a simple problem with a simple solution but I am new to programming with these boards so I am not sure the source of this error. Is it a result of where I have the source code saved, or perhaps the code itself?
The code is written as follows, and was taken from a private blog posted about the piccolo device:
#include "DSP28x_Project.h" // DSP28x Headerfile
#include "f2802x_common/include/clk.h"
#include "f2802x_common/include/gpio.h"
#include "f2802x_common/include/pll.h"
#include "f2802x_common/include/wdog.h"
#ifdef _FLASH
memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);
#endif
int main(void) {
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));
//Internal Oscillator 1 will be the clock source
CLK_setOscSrc(myClk, CLK_OscSrc_Internal);
//Second internal oscillator
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);
}
}