Hello Everyone,
I have a sample program I have pasted below and it runs and seems to set PCDDR to the correct value… but after a while, I get an error message saying: “While Debugging: Timeout while waiting for response from target.” If I have any long running threads or loops, this error message causes the debugger to detach and it is extremely frustrating. What am I doing wrong?
My version of dynamic C is 10.72. I have applied no patches.
#define VERBOSE
#memmap xmem
#class auto
#use rcm40xx.lib
main()
{
unsigned int Reg_Val = 0;
brdInit(); //initialize board for this demo
WrPortI(PCDDR, &PCDDRShadow, 0xFF); // This does not work!
//BitWrPortI(PCDDR, &PCDDRShadow, 1, 1); // This works!
Reg_Val = RdPortI(PCDDR);
printf("PCDDR: %u
", Reg_Val);
}