DSPRelated.com
Forums

Initialize GPIO on C6455DSK

Started by meiring_dewet September 29, 2008
C6455DSK
CCS 3.2

Hi all

I need to toggle a pin in my project, but I have some trouble
initializing the GPIO in CCS.

after using
#include "csl_gpio.h"
I received the error

"H:/CCStudio_v3.2/C6000/csl/include/csl_chiphal.h", line 267: fatal
error: #error NO CHIP DEFINED (use -dCHIP_XXXX where XXXX is chip
number, i.e. 6201)
1 fatal error detected in the compilation of "tone.c".
Compilation terminated.

I then tried to define my chip, but the "csl_chiphal.h" file does not
contain a 6455 chip as is needed with my dsp. I also tried to define my
chip as a 6418, but then I received the following error when I tried to
enable a pin with the GP0EN = 1; command..

"tone.c", line 445: error: identifier "GP0EN" is undefined

Basically, the parts of my cade mentioned is

#define CHIP_6418
#include "csl_gpio.h"

main()
{
GP0EN =1;
}

Can someone please help me in initializing the GPIO?

Thanks
Meiring
meiring,

Sorry about my prior post, I clicked the send button way too soon.

It seems you have the wrong csl library.
Go here:
http://focus.ti.com/docs/toolsw/folders/print/sprc234.html
and download the correct library.

Then go to CCS project/... to the chip select entry and put in the correct chip.
Then removed that #define from your source code.

R. Williams
---------- Original Message -----------
From: "meiring_dewet"
To: c...
Sent: Sun, 28 Sep 2008 23:06:20 -0000
Subject: [c6x] Initialize GPIO on C6455DSK

> C6455DSK
> CCS 3.2
>
> Hi all
>
> I need to toggle a pin in my project, but I have some trouble
> initializing the GPIO in CCS.
>
> after using
>
> #include "csl_gpio.h"
>
> I received the error
>
> "H:/CCStudio_v3.2/C6000/csl/include/csl_chiphal.h", line 267: fatal
> error: #error NO CHIP DEFINED (use -dCHIP_XXXX where XXXX is chip
> number, i.e. 6201)
> 1 fatal error detected in the compilation of "tone.c".
> Compilation terminated.
>
> I then tried to define my chip, but the "csl_chiphal.h" file does not
> contain a 6455 chip as is needed with my dsp. I also tried to define
> my chip as a 6418, but then I received the following error when I
> tried to enable a pin with the GP0EN = 1; command..
>
> "tone.c", line 445: error: identifier "GP0EN" is undefined
>
> Basically, the parts of my cade mentioned is
>
> #define CHIP_6418
> #include "csl_gpio.h"
>
> main()
> {
> GP0EN =1;
> }
>
> Can someone please help me in initializing the GPIO?
>
> Thanks
> Meiring
------- End of Original Message -------
Meiring,
Or you can type your chip number direct into the compiler which is under
Buil Option
Good luck,
Tung

"Richard Williams"
Sent by: c...
09/29/2008 08:56 AM

To
"meiring_dewet" , c...
cc

Subject
Re: [c6x] Initialize GPIO on C6455DSK

meiring,

Sorry about my prior post, I clicked the send button way too soon.

It seems you have the wrong csl library.
Go here:
http://focus.ti.com/docs/toolsw/folders/print/sprc234.html
and download the correct library.

Then go to CCS project/... to the chip select entry and put in the correct
chip.
Then removed that #define from your source code.

R. Williams

---------- Original Message -----------
From: "meiring_dewet"
To: c...
Sent: Sun, 28 Sep 2008 23:06:20 -0000
Subject: [c6x] Initialize GPIO on C6455DSK

> C6455DSK
> CCS 3.2
>
> Hi all
>
> I need to toggle a pin in my project, but I have some trouble
> initializing the GPIO in CCS.
>
> after using
>
> #include "csl_gpio.h"
>
> I received the error
>
> "H:/CCStudio_v3.2/C6000/csl/include/csl_chiphal.h", line 267: fatal
> error: #error NO CHIP DEFINED (use -dCHIP_XXXX where XXXX is chip
> number, i.e. 6201)
> 1 fatal error detected in the compilation of "tone.c".
> Compilation terminated.
>
> I then tried to define my chip, but the "csl_chiphal.h" file does not
> contain a 6455 chip as is needed with my dsp. I also tried to define
> my chip as a 6418, but then I received the following error when I
> tried to enable a pin with the GP0EN = 1; command..
>
> "tone.c", line 445: error: identifier "GP0EN" is undefined
>
> Basically, the parts of my cade mentioned is
>
> #define CHIP_6418
> #include "csl_gpio.h"
>
> main()
> {
> GP0EN =1;
> }
>
> Can someone please help me in initializing the GPIO?
>
> Thanks
> Meiring
------- End of Original Message -------