Tool/software: Code Composer Studio
I am using dsk 5510 simulator along with tms320vc5510 target board. I want to use GPIO as DIO to send data to a board. I am using following program:
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include "stdio.h"
#include "dsk5510.h"
#include "printacfg.h"
#define N 10
void main()
{
int i, j;
unsigned int xmt[N];
unsigned IODRV, IODV;
unsigned IODR1V, IOD1V;
ioport unsigned *pIODR =(ioport unsigned*)0x3400;
ioport unsigned *pIOD =(ioport unsigned*)0x3401;
for (j = 0; j <= (N - 1); j++) {
xmt[j] = (j << 7) + (j+ 10);
}
IODRV = *pIODR;
IODV = *pIOD;
printf("The returned value of IODR: %x \n", IODRV);
printf("The returned value of IODV : %x \n", IODV);
/*configuring i/o as output in direction registers*/
*pIODR = 0xffff;
IODR1V = *pIODR;
printf("The returned value of IODR1: %x \n", IODR1V);
for (i= 0; i<= (N-1); i++)
{printf("The 10 sample values in array is: %x \n", xmt[i]);
}
for (i= 0; i<= 10; i++)
{
*pIOD = xmt[i];
IOD1V = *pIOD;
printf("The returned value of IOD1V(%d) : %x \n", i,IOD1V);
}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
got build with zeros errors. but while debugging show data verification error sometimes. and sometimes after rebuild show following message after reset:
Trouble Writing Target CPU memory: Processor communication timeout. It is recommended to RESET EMULATOR. This will disconnect each target, perform an emulation reset, and then reconnect each target. Power cycle the target board before continuing.
Can't Set Breakpoint: Processor communication timeout. It is recommended to RESET EMULATOR. This will disconnect each target, perform an emulation reset, and then reconnect each target. Power cycle the target board before continuing.
Breakpoint Manager: An error was encountered attempting to set a breakpoint used
for end of program detection.
tried to change memory map also using options--> memory map
plz suggest some direction to look into. how to change memory map for the required operation?