1:error:no section matches selector–no sections to be first/last.
Change the original Init code snippet name to reset:
; Area Init,code,readonly
Area Reset,code,readonly
2:error Undefined symbol Main (referred from 2440INIT.O).
Error:scatter-load file declares no heap or stack regions and __user_initial_stackheap is not defined
General completion of the previous step changes will not appear this error;
If you use main in your code, add some code
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
3:undefined symbol image$ $RW $ $Limit (referred from *.O)
Undefined symbol Im .......
Put image$ $RO $ $Base, image$ $RO $ $Limit, image$ $RW $ $Base, image$ $ZI $ $Base, image$ $ZI $ $Limit
Change to:
image$ $ER _rom1$ $RO $ $Base, image$ $ER _rom1$ $RO $ $Limit, image$ $RW _ram1$ $RW $ $Base, image$ $RW _ram1$ $ZI $ $Base, image$ $RW _ram1$ $ZI $ $Limit
4:error contains invalid call from ' ~pres8 ' function to ' REQ8 ' function *
At the beginning of the assembly file, add the "PRESERVE8" directive.
5:error:l6235e:more than one section matches Selector-cannot all be first/last.
When establishing the RealView project, do not import the RealView s3c2440.s, otherwise there will be two reset segments when the init code snippet name is changed to reset.