I,m trying debug my project in KEIL with ADUC7060, but program in disassembling listing is run in 0x000000 adresses and C-code is in 0x80000 adresses. Please halp me synhronise this codes.
You may use the project attached to ADuC7061 - ADC6, ADC7, ADC8 & ADC9 inputs do not work and change it for ADuC7060.
Remove the 3 lines as below for the analog input function selection on ADuC7061
// Select PINs P0.0 to P0.3 for analog input function GP0KEY1 = 0x07; GP0CON1 = 0x01; // Select analog function GP0KEY2 = 0x13;
This should work than right out of the box.
Than check/compare the C-startup and irq_arm.c from your original project against the files in this project.
Flash is mapped to 0x0 and 0x80000 by default.
Normally, code will start executing from 0x0 and then jump up to the 0x80000 mapped address as – if you set REMAP – SRAM could appear at 0x0.
Post your assembler exception vector table as I think you may have to make a change there if you use a PC relative instruction at the exception vector locations.
I've set flag Target->Code Generatin-> Use MicroLIB in KEIL and all is OK.
Could you help me. I'm trying example GPIO from ADI, but mcu don't want go to the void IRQ_Handler(void) __irq procedure. Should I enable global interrups and how?
Retrieving data ...