Bare board development-makefile error Solution

Source: Internet
Author: User

1,Compile Wei Dongshan's bare board in Keil uvision4ProgramWill prompt an error:

Build target 'target 1'
Linking...
Key_led.axf: Error: l6218e: Undefined symbol image $ rw_ram1 $ RW $ length (Referred From S3C2440. O ).
Target not created

The reason is that rom1 in Read/only and ram1 in read/write are not configured in target (the two options correspond toCodeThe storage location in the chip) can be configured as follows:

Then compile the connection and the problem will not occur.

2. When the program is thrown to Ubuntu for compilation, there is a makfile as follows:

Key_led.bin: crt0.s key_led.c
Arm-Linux-gcc-g-c-o crt0.o crt0.s
Arm-Linux-gcc-g-c-o key_led.o key_led.c
Arm-Linux-LD-ttext 0x0000000-G crt0.o key_led.o-O key_led_elf
Arm-Linux-objcopy-O Binary-s key_led_elf key_led.bin
Arm-Linux-objdump-D-M arm key_led_elf> key_led.dis
Clean:
Rm-F key_led.dis key_led.bin key_led_elf *. o

Note: crt0 is the boot guide Assembly file, which is equivalent to the S3C2440. s automatically imported by the system when the project is established with Keil.

 

The following error is prompted during make:

Solution: add the "-nostdlib" option to arm-Linux-GCC.

In this way, make is successful again.

 

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.