1.
Error message:
Liubo. S:1: Error:bad expression
Liubo. S:1: Error:junk at end of line, first unrecognized character is ' 0 '
Error:
. equ mem_control_address, #0x48000000 @ macro definition, storage Controller start address
. equ sdram_address, #0x30000000 @ macro definition, The start address of SDRAM
Correct:
. equ mem_control_address, 0x48000000 @ macro definition, storage Controller start address
. equ sdram_address, 0x30000000 @ macro definition, The start address of the SDRAM
Cause of Error:
Write one more #
2.
Error message:
Liubo. S:23:error:junk at end of line, first unrecognized character is ' * '
Error:
@**********************************
@ off-guard Dog @
**********
Error Correction:
@**********************************
@ off-guard Dog @
@**********
Cause of Error:
Forget to add @ before the comment
3.
Error message:
Liubo. S:29:error:immediate expression requires a # prefix--' mov pc,1r '
Error:
mov pc, 1r
Error Correction:
Mov PC, LR
Cause of Error:
In the Code L wrote a
4.
Error message:
Liubo. S:66:error:bad instruction ' Copy_steppingstone4k_to_sdram :'
Error:
Copy_steppingstone4k_to_sdram:
Error Correction:
Copy_steppingstone4k_to_sdram:
Cause of Error:
After the colon is written in the Chinese input method, should be English, English and the front letter spacing less
5.
Error message:
Liubo. S:70:error:junk at end of line, first unrecognized character is ' 1 '
Error:
1:
Error Correction:
1:
Cause of Error:
It is also because the colon is written in Chinese, so it is not recognized as a code snippet
6.
Error message:
/opt/friendlyarm/toolschain/4.4.3/bin/.arm-none-linux-gnueabi-ld:warning:cannot find entry symbol _start; Defaulting to 30000000
liubo_s.o:in function ' On_sdram ':
(. text+0x14): Undefined reference to ' main '
liubo_c.o:in function ' On_sdram ':
(. text+0x14): Undefined reference to ' main '
Error:
Arm-linux-gcc-c-O liubo_s.o liubo. S
Arm-linux-gcc-c-O liubo_s.o liubo. S
Error Correction:
Arm-linux-gcc-c-O liubo_s.o liubo. S
Arm-linux-gcc-c-O liubo_s.o liubo.c
Cause of Error:
The second one is wrong, it should be C file .
7.
Error message:
Liubo.c:14:error:stray ' \357 ' in program
Error:
/ /***********
Error Correction:
//***********
Cause of Error:
The same is the input method, the Chinese input under the interval is very large, and There is no color hint in the Gvim, in the English input method // There is a small interval of color hint.
Compilation Error 1