Hello and happy New year ! :smileyhappy:
I use a DSP56374 since one year with Freescale Symphony Studio assembler. But now I would like to use the compiler of Symphony to make my futurs projects in C. So to get started I try to simply blink two LEDs on PORTC. Here is the code :
/*Test Port C (PC9 et PC10*/
#define PRRC (*((volatile unsigned long *)0xFFFFBE))
#define PDRC (*((volatile unsigned long *)0xFFFFBD))
#define PCRC (*((volatile unsigned long *)0xFFFFBF))
#define PCTL (*((volatile unsigned long *)0xFFFFFD))
int main (void)
{
int i;
PCTL = 0x01E006; /*Fosc=147.456MHz=6*24.576MHz*/
PCRC = 0x0;/*Port C ouput GPIO*/
PRRC = 0x600;/*PC9 PC10*/
while(1)
{
for(i=0;i<1000000;i++)
{
PDRC = 0x600;/*LEDs ON*/
}
for(i=0;i<1000000;i++)
{
PDRC = 0x0;/*LED OFF*/
}
}
}
But this is not work because GPIO and PLL register must be defined to X memory. I would like to know how can I correctly specify X,Y,L, and P memories. Does it possible with Symphony Studio compiler ?