Ads engineering go to MDK some of the possible error and resolution

Source: Internet
Author: User
Tags reset


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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.