?? readme.txt
字號(hào):
LCD顯示實(shí)驗(yàn)用例
目錄文件結(jié)構(gòu):
lcd_test
├─ main.c C語言主源文件
├─ bmp.c 光標(biāo)圖案源文件
├─ bmp.h 光標(biāo)圖案頭文件
├─ lcd.c LCD顯示函數(shù)源文件
└─ lcd.h LCD定義頭文件
* 在RAM 中調(diào)試時(shí),修改工程配置項(xiàng)
Project >Settings ->Assembler >General category >Predefines: set as
Project >Settings ->Linker >General category >Linker script file: set as
..\common\ram_ice.ld
* 燒寫程序到FLASH
1、修改工程配置項(xiàng)
i)在Flash 中運(yùn)行程序:
Project >Settings ->Assembler >General category >Predefines: set as
(不用定義任何標(biāo)號(hào))
Project >Settings ->Linker >General category >Linker script file: set as
..\common\flash.ld
ii)拷貝Flash 程序到RAM 中運(yùn)行:
Project >Settings ->Assembler >General category >Predefines: set as
EXEC_FROM_RAM=1
Project >Settings ->Linker >General category >Linker script file: set as
..\common\ram_ice.ld
* 如果要把程序存放到Flash 中的非0x0 地址上運(yùn)行,
請(qǐng)修改編譯燒寫輸出文件時(shí)使用的鏈接腳本文件(*.ld)對(duì)ROM_BASE 的定義。
2、重新編譯工程,使用elf2bin工具產(chǎn)生BIN文件;
3、運(yùn)行Flash Programmer,按照實(shí)際情況配置調(diào)試設(shè)備:
Setting -> configure...
4、點(diǎn)擊Open 菜單,打開配置文件(*.cfg),給出燒寫目標(biāo)文件;
=======================================================================
-----------------------------------------------------------------------
| Descriptions |
-----------------------------------------------------------------------
> Project directory default: EmbestIDE\Examples\Samsung\S3CEB2410
If copy to another directory to run, please modify Project ->Settings:
Linker >Add Library searching Path category >Library Searching Directories:
..\..\..\..\Build\xgcc-arm-elf\arm-elf\lib
..\..\..\..\Build\xgcc-arm-elf\lib\gcc-lib\arm-elf\3.0.2
Change setting as (assume that Embest IDE installtion is C:\):
C:\EmbestIDE\Build\xgcc-arm-elf\arm-elf\lib
C:\EmbestIDE\Build\xgcc-arm-elf\lib\gcc-lib\arm-elf\3.0.2
> Download the project into RAM to debug, modify Project ->Settings:
Assembler >General category >Predefines: set as
Linker >General category >Linker script file: set as
..\common\ram_ice.ld
> Program the iamge into Flash to run:
I. modify Project ->Settings:
i) run program in Flash space:
Assembler >General category >Predefines: set as
(without any symbol defined)
Linker >General category >Linker script file: set as
..\common\flash.ld
ii) copy the program from Flash space to RAM to run:
Project >Settings ->Assembler >General category >Predefines: set as
EXEC_FROM_RAM=1
Linker >General category >Linker script file: set as
..\common\ram_ice.ld
Note: If want to change the image store address instead of 0x0,
please modify RAM_BASE defined consist in the linker script file (*.ld)
before step II.
II. Rebuild the project and click Tools ->Elf2Bin,
generate the Bin format file in directory DEBUG\
III. Run Embest Falsh Programmer for ARM, then select the configuration file(*.cfg),
and add the Bin file to program.
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -