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
Are u nt able to email me ?
Err, Per means that you did not provide any email address. That is a serious challenge to his/our telepathic abilities.
Sorry :D ,, asif.25@hotmail.com ...Thanks in advance regards, Asif
Sorry :D
My response is a resounding :-(
How are you going to solve your next problem? How will you do your homework? How will you take your exam like this? How will you write a control system for a jet engine, compressor, braking system etc.? You must read the manuals of your chip. They contain all the answers. Did you try to understand what the problem actually is?
Great...u r good at judging personalities too...:P
By the way when it will come to write control system for jet engines ,,,I am sure I will be upto the mark....:P And thanks for ur encouraging post.... Regards, Asif
you completely misunderstood. I did try to encourage you, and I certainly did not judge you!