Hi All,
I am trying to use the IntDefaultHandler for my application instead of the UARTIntHandler. For this I have modified the startup file by changing the EXTERN IntDefaultHandler and by interchanging the values of
DCD IntDefaultHandler ; UART0 Rx and Tx
DCD UARTIntHandler ; UART1 Rx and Tx
But I still keep getting error "startup_rvmdk.S(306): error: A1108E: Multiply defined symbol 'IntDefaultHandler'"
Line 306 is basically where the IntDefaultHandler is located. Please let me know where I'm going wrong.
Thanks!
IntDefaultHandler
B IntDefaultHandler
;******************************************************************************
;
; Make sure the end of this section is aligned.
;
;******************************************************************************
ALIGN
;******************************************************************************
;
; Some code in the normal code section for initializing the heap and stack.
;
;******************************************************************************
AREA |.text|, CODE, READONLY
;******************************************************************************
;
; The function expected of the C library startup code for defining the stack
; and heap memory locations. For the C library version of the startup code,
; provide this function so that the C library initialization code can find out
; the location of the stack and heap.
;
;******************************************************************************
IF :DEF: __MICROLIB
EXPORT __initial_sp
EXPORT __heap_base
EXPORT __heap_limit
ELSE
IMPORT __use_two_region_memory
EXPORT __user_initial_stackheap
__user_initial_stackheap
LDR R0, =HeapMem
LDR R1, =(StackMem + Stack)
LDR R2, =(HeapMem + Heap)
LDR R3, =StackMem
BX LR
ENDIF
;******************************************************************************
;
; Make sure the end of this section is aligned.
;
;******************************************************************************
ALIGN
;******************************************************************************
;
; Tell the assembler that we're done.
;
;******************************************************************************
END