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.

CCS/TMS320C6678: TMS320C6678

Part Number: TMS320C6678

Tool/software: Code Composer Studio

Hi,

I am trying basic data transfer from FPGA and dsp TMS320C6678 which is placed on FMC667 card.

I have made proper mapping of fpga FMC pins in constraint file. i have written a simple code of increasing counter in vhdl and downloaded bit file onto KINTEX KC705 FPGA board.

I have written following code in code composer studio v6

#include <stdio.h>
#include<csl_gpio.h>
#include<cslr_gpio.h>
#include <csl_gpioAux.h>
#include<C:\Program Files (x86)\4dsp\4FM Core Development Kit\Plug-Ins\FMC667\Sources\DSP\FMC667Timer\delay.h>
#include <fmc667_gpio.h>
#include <csl_tmr.h>
#include <csl_tmrAux.h>
#include <src/intc/csl_intc.h>
//#include <src/intccsl_intcAux.h>
void main(void)
{
uint32_t e0,e1,e2,e3,e4;
delay(10);
gpioInit();
while (1)
{
e0= gpioReadInput(GPIO_13);
e1= gpioReadInput(GPIO_10);
e2= gpioReadInput(GPIO_15);
e3= gpioReadInput(GPIO_7);
e4= gpioReadInput(GPIO_11);
gpioSetOutput( GPIO_13);
gpioSetOutput( GPIO_10);
gpioSetOutput( GPIO_15);
gpioSetOutput( GPIO_7);
gpioSetOutput( GPIO_11);
delay(100);
printf ("%d %d %d %d %d \n",e4,e3,e2,e1,e0);
}
}
i am just trying to get the count value bitwise onto dsp pins, but i am not getting the increasing output as i should get, please correct me if i am wrong anywhere. why i am not getting values on the dsp pins when i am trying to read them using function stated above.
  • The team is notified. They will post their feedback directly here.

    BR
    Tsvetolin Shulev
  • We will not be able to comment of this code as there are too many unknowns for us in your code, we dont have access to your FPGA GEL files or your GPIO init function or have your FPGA to C6678 schematics .

    You can refer to out platform library function in terms how it implements the GPIO Read and write functions Are you linking to C6678 platform library.
    Have you probed the GPIO to see if the GPIO lines input and output toggling as you expect.

    Regards,
    Rahul