UART_Test
所属分类:串口编程
开发工具:Others
文件大小:101KB
下载次数:2
上传日期:2014-06-24 13:42:24
上 传 者:
刘liu
说明: 三星s3c44b0串口实验,开发环境embest,
(s3c44b0 achieve the function of uart )
文件列表:
UART_Test\debug\44binit.o (8612, 2006-11-27)
UART_Test\debug\44blib.o (22792, 2006-11-27)
UART_Test\debug\arm_exception.o (11960, 2006-11-27)
UART_Test\debug\call_int.o (1320, 2006-11-27)
UART_Test\debug\Link.o (3116, 2006-11-27)
UART_Test\debug\mian.o (3704, 2006-11-27)
UART_Test\debug\Uart.o (38392, 2006-11-27)
UART_Test\debug\Uart_Test.elf (323787, 2006-11-27)
UART_Test\mian.c (2049, 2006-11-27)
UART_Test\Uart.c (23250, 2006-11-27)
UART_Test\Uart.h (2114, 2004-09-01)
UART_Test\Uart_Test.ews (256, 2004-09-01)
UART_Test\Uart_Test.opt (356, 2006-11-27)
UART_Test\Uart_Test.pjf (2666, 2006-11-27)
UART_Test\debug (0, 2014-06-24)
UART_Test (0, 2014-06-24)
UART实验用例
目录文件结构:
UART_test
├─ Uart.c Uartx 驱动程序
└─ main.c S3CEV40 UART演示主程序文件
=======================================================================
* 本工程出厂时的默认存放目录是: 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
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
EXEC_FROM_RAM=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
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 click on "File -> Open",
select the configuration file (*.cfg), and add in the Bin file to program.
近期下载者:
相关文件:
收藏者: