⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 memory_test Memory Read/Write Access Test Memory read base Address : 0xc010000 Memory write bas
💻 TXT
字号:

Led灯控制实验用例

目录文件结构:

led_test
        ├─ RWrams.s            使用汇编语言读写RAM 源文件 
        └─ main.c              C语言主源文件(使用C语言读写RAM )

测试结果:
----------------------UART0: 115200,8,n,1-------------------------------
==== Memory Read/Write Access Test. ====
Embest 44B0X Evaluation Board
Memory Read/Write Access Test
 Memory read  base Address : 0xc010000
 Memory write base Address : 0xc020000

 Memory Read/Write (ASM code) Test.

 Memory Read/Write (C code) Test.
  Access Memory (Word) Times : 25
  Access Memory (half Word) Times : 50
  Access Memory (Byte) Times : 100
 Memory Test Success!
------------------------------------------------------------------------
 =======================================================================
* 本工程出厂时的默认存放目录是: 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 + -