hello all installed the latest mdk370. getting problem in start up code.
if i create a new project with aduc7020, the startup code added automatically is giving me the following errors.
Build target 'Target 1' compiling main.c... main.c(2): warning: #951-D: return type of function "main" must be "int" main.c(7): warning: #1-D: last line of file ends without a newline compiling Retarget.c... assembling ADuC702x.s... linking... testing.axf: Error: L6218E: Undefined symbol Undef_Handler (referred from aduc702x.o). testing.axf: Error: L6218E: Undefined symbol SWI_Handler (referred from aduc702x.o). testing.axf: Error: L6218E: Undefined symbol PAbt_Handler (referred from aduc702x.o). testing.axf: Error: L6218E: Undefined symbol DAbt_Handler (referred from aduc702x.o). testing.axf: Error: L6218E: Undefined symbol IRQ_Handler (referred from aduc702x.o). testing.axf: Error: L6218E: Undefined symbol FIQ_Handler (referred from aduc702x.o). Target not created
if i take build the blinky example than there is no error, furthermore putting blinky start up code in my project removes the errors.
so i started comparing the start up code, and found the difference which is causing the errors.. here it is
this is the one that is added by the uvision it self
Vectors LDR PC, Reset_Addr LDR PC, Undef_Addr LDR PC, SWI_Addr LDR PC, PAbt_Addr LDR PC, DAbt_Addr NOP ; Reserved Vector LDR PC, IRQ_Addr LDR PC, FIQ_Addr EXTERN Undef_Handler EXTERN SWI_Handler EXTERN PAbt_Handler EXTERN DAbt_Handler EXTERN IRQ_Handler EXTERN FIQ_Handler Reset_Addr DCD Reset_Handler Undef_Addr DCD Undef_Handler SWI_Addr DCD SWI_Handler PAbt_Addr DCD PAbt_Handler DAbt_Addr DCD DAbt_Handler DCD 0 ; Reserved Address IRQ_Addr DCD IRQ_Handler FIQ_Addr DCD FIQ_Handler
this is the one that is in the example.
Vectors LDR PC, Reset_Addr LDR PC, Undef_Addr LDR PC, SWI_Addr LDR PC, PAbt_Addr LDR PC, DAbt_Addr NOP ; Reserved Vector LDR PC, IRQ_Addr LDR PC, FIQ_Addr Reset_Addr DCD Reset_Handler Undef_Addr DCD Undef_Handler SWI_Addr DCD SWI_Handler PAbt_Addr DCD PAbt_Handler DAbt_Addr DCD DAbt_Handler DCD 0 ; Reserved Address IRQ_Addr DCD IRQ_Handler FIQ_Addr DCD FIQ_Handler EXTERN Undef_Handler SWI_Handler B SWI_Handler PAbt_Handler B PAbt_Handler DAbt_Handler B DAbt_Handler IRQ_Handler B IRQ_Handler FIQ_Handler B FIQ_Handler
please can some one expolain what
EXTERN Undef_Handler
means
and what
and what effects they have
regards Nashit Ashraf