Hi, well i am using de ADuC7026 and have problems in configure the external clock. I can't debug if i put at the beginning of main(): // PLLKEY1=0xAA; // PLLCON=0x01; // PLLKEY2=0x55; // dummy1=27; // dummy2=14; // dummy1=dummy1+dummy2; and i need to use the external xtal because of precision. What am i doing wrong? I can't debug and uVision gets lots of errors like JTAG, dll cancelled.... I tried to run without debugging but the ADuC doesn't work well... i have 3 leds on I/O ports and at the beggining (in main) i turn on one, but sometimes when i reset de uC the all three turn on, and sometimes not.... so it doesn't do what i want. Can you please help me?
I do not know about the ADuc, but many other provblems with configurable chips (I use SILabs f12x and Philips LPC) have been fixed by moving the configuration to the very beginning of (a local, renamed copy of) startup.a51. Erik Some things go awry when the code which you do not see that lies from the beginning of startup till the entry to main() operate with the default initialization.