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.