We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I'm using uVision3.
My target platform is:AT91SAM9261.
I just created in project with the initial assembler code in it.
The generated code code:
; User Initial Stack & Heap AREA |.text|, CODE, READONLY
IMPORT __use_two_region_memory EXPORT __user_initial_stackheap __user_initial_stackheap LDR R0, = Heap_Mem LDR R1, =(Stack_Mem + USR_Stack_Size) LDR R2, = (Heap_Mem + Heap_Size) LDR R3, = Stack_Mem BX LR
END
When I compile and link the code I get the error message: L6218E: Undefined symbol __use_two_region_memory (referred from sam9261.o)
Where should __use_two_region_memory be defined?
This is my 1st project with uVision, any help will be appreciated.
Thank you.
Martin
Are you using the evaluation version? The eval version is limited in several ways, and I think that it can't use a two_region_memory model.
Try to compile with a standard one_region_memory (the default) instead. Memory models are discussed in the RVCT Compiler and Libraries Guide MANUAL.