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.