Hi,
I’ve developed a PCB using the TMS570LS1227, and after several tries this microprocessor is running. To test my board I’ve created the following script (using CSS v6 and HalCoGen v4) to know if I’m capable of swithching on a LED connected to the PORTB[0], but nothing happens!
#include "gio.h"
void main(void)
{
/* initialize gio */
gioInit();
gioSetDirection(gioPORTB, 1);
/** -Delay Parameter */
int temp;
int delay;
delay = 0x200000;
while(1) /* ... continue forever */
{
gioSetBit(gioPORTB, 0, 0); /* Set GIOB port pin 0 low */
for(temp=0;temp<delay;temp++); /** -Simple Delay */
gioSetBit(gioPORTB, 0, 1); /* Set GIOB port pin 0 high */
for(temp=0;temp<delay;temp++); /** -Simple Delay */
}
}
/* GIO Notification function not used, but required by compiler */
voidgioNotification(intbit)
{
return;
}
Is there any option I should press before loading my script to the microP, or something similar??
Thanks a lot!


