?? readme.txt
字號:
UART實驗用例
目錄文件結構:
UART_test
├─
└─ main.c S3CEV40 UART演示主程序文件
測試結果:
----------------------UART0: 115200,8,n,1-------------------------------
Embest S3CEV40 >Embest Info&Tech Co., Ltd.
Embest Info&Tech Co., Ltd.
Embest S3CEV40 >
------------------------------------------------------------------------
=======================================================================
* 本工程出廠時的默認存放目錄是: EmbestIDE\Examples\Samsung\S3CEV40
如果要拷貝到其他目錄下運行,請修改工程配置選項 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
修改為 (假設Embest IDE 安裝到C:\):
C:\EmbestIDE\Build\xgcc-arm-elf\arm-elf\lib
C:\EmbestIDE\Build\xgcc-arm-elf\lib\gcc-lib\arm-elf\3.0.2
* 在RAM 中調試時,修改工程配置項
Project >Settings ->Assembler >General category >Predefines: set as
RAM_DEBUG=1
Project >Settings ->Linker >General category >Linker script file: set as
..\common\ram_ice.ld
* 燒寫程序到FLASH
1、修改工程配置項
i)在Flash 中運行程序:
Project >Settings ->Assembler >General category >Predefines: set as
(不用定義任何標號)
Project >Settings ->Linker >General category >Linker script file: set as
..\common\flash.ld
ii)拷貝Flash 程序到RAM 中運行:
Project >Settings ->Assembler >General category >Predefines: set as
RAM_RUN=1
Project >Settings ->Linker >General category >Linker script file: set as
..\common\ram_ice.ld
* 如果要把程序存放到Flash 中的非0x0 地址上運行,
請修改編譯燒寫輸出文件時使用的鏈接腳本文件(*.ld)對ROM_BASE 的定義。
2、重新編譯工程,使用elf2bin工具產生BIN文件;
3、運行Flash Programmer,按照實際情況配置調試設備:
Setting -> configure...
4、點擊Open 菜單,打開配置文件(*.cfg),給出燒寫目標文件;
=======================================================================
-----------------------------------------------------------------------
| 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
RAM_DEBUG=1
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:
Assembler >General category >Predefines: set as
RAM_RUN=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 click on "File -> Open",
select the configuration file (*.cfg), and add in the Bin file to program.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -