DSPRelated.com
Forums

Initializing GPIO through .cdb file in CCS2.21

Started by davidganor March 14, 2004
Hi all!
I have a pice of code that worked fine on CCS2.12,
but after "upgrading" to CCS2.21 I can't make it work.
It sounds simple and strait-forward to enable the GPIO using GUI-
Config-tool (.cdb file) through CSL, BUT look at what I got...
If someone could, please, clear the path for me...

Thank you,
David Ganor

-------------------------
Compiling the .cdb file with GPIO Pre-Initialization enabled:

[enc_dec_module_ccs_gui_.cdb] "d:\ti\plugins\bios\gconfgen"
enc_dec_module_ccs_gui_.cdb
if (gpioCfg.agpio_Support) {"#include <_csl_pgpiohal.h>\n"} else {""}
if (gpioCfg.agpio_Support) {"#include <_csl_pgpiohal.h>\n"} else
{""}
==> err
if (gpioCfg.agpio_Support) {"GPIO_RSET(AGPIOEN, 0x%11x);\n"} else {""}
if (gpioCfg.agpio_Support) {"GPIO_RSET(AGPIOEN, 0x%11x);\n"} else
{""}
==> err
if (gpioCfg.agpio_Support) {"GPIO_RSET(AGPIODIR, 0x%12x);\n"} else
{""}
if (gpioCfg.agpio_Support) {"GPIO_RSET(AGPIODIR, 0x%12x);\n"} else
{""}
==> err
if (gpioCfg.agpio_Support) {"GPIO_RSET(AGPIODATA, 0x%13x);\n\n"} else
{""}
if (gpioCfg.agpio_Support) {"GPIO_RSET(AGPIODATA, 0x%13x);\n\n"}
else {""}
==> err

Compile Complete,
0 Errors, 0 Warnings, 0 Remarks.

--------------------
Building the application:

[enc_dec_module_ccs_gui_cfg_c.c] "d:\ti\c5500\cgtools\bin\cl55" -g -
q -pdv -as -fr"./Debug/" -i"D:/ti/c5500/xdais/include" -
i"D:/ti/c5500/xdais/src/api" -d"CHIP_5510PG2_2" -d"_DEBUG" -
d"WITH_GPIO" -mb -v5510:2 -
@"Debug.lkf" "enc_dec_module_ccs_gui_cfg_c.c"
"enc_dec_module_ccs_gui_cfg_c.c", line 25: error: expected a
declaration
<error in .cdb file: not a string>
^

"enc_dec_module_ccs_gui_cfg_c.c", line 47: warning: parsing restarts
here
after previous syntax error
};
^

"enc_dec_module_ccs_gui_cfg_c.c", line 97: error: expected an
expression
<error in .cdb file: not a string><error in .cdb file: not a
string><error in .cdb file: not a string>
^

"enc_dec_module_ccs_gui_cfg_c.c", line 104: warning: parsing restarts
here
after previous syntax error
}
^

"enc_dec_module_ccs_gui_cfg_c.c", line 104: error: expected a ";"
}
^

3 errors detected in the compilation
of "enc_dec_module_ccs_gui_cfg_c.c".

----------------------------
Problematic lines in enc_dec_module_ccs_gui_cfg_c.c :

#include <_csl_gpiohal.h>
<error in .cdb file: not a string>

<snip>

void CSL_cfgInit()
{
hSerialPort1 = MCBSP_open(MCBSP_PORT1, MCBSP_OPEN_RESET);

MCBSP_config(hSerialPort1, &McBSP1_TxRx_Config_wo_DMA);
/* You must use DMA_start() in your main code to start the DMA. */

GPIO_RSET(IODIR, 0x0);
GPIO_RSET(IODATA, 0x0);

<error in .cdb file: not a string><error in .cdb file: not a
string><error in .cdb file: not a string>
/* You must use MCBSP_start() in your main code to start the
MCBSP. */

}