I promised the above to a user of this forum and I have posted it to the Files section of Philips LPC Yahoo group under the directory “Linker and CRT”.
It works for me, but as usual it has zero warranty and only a few days of testing.
If you want a Led Flashing program then get Jim’s from here :-
Following James’ flashing LED example and noting that the LED on my board is connected to P0.26, I am trying the following:
int main (void)
{
unsigned int i;
Initialize();
GPIO0_IODIR |= 1<<26; // P0.26 is an output
while( 1 )
{
for( i = 0; i < 10000; i++ );
GPIO0_IOSET = 1<<26; //LED off
for( i = 0; i < 10000; i++ );
GPIO0_IOCLR = 1<<26; //LED on
}
}
…but that doesn’t seem to turn the LED on ever. It’s probably something stupid so I will keep trying but please let me know if I am not using the GPIO registers correctly.
I forgot to take the board with me to work, however I think you’re right. I need to make my jumper hack more permanant or finally do the RTS/CTS control lines as you had recommended earlier to my board. My little header board doesn’t even have a BSL jumper (I made my own) so I need to do some modifications. Thanks again for your help.