2008年6月20日星期五

在外部RAM中调试的KEIL环境设置步骤(KEIL + winarm +zlg esayarm2200 + jlink)

硬件平台:

ZLG   EsayARM2200开发板

IS61LV25616AL  BANK0:0X80000000-0X8007FFFF

  SST39VF160     BANK1:0X81000000-0X811FFFFF

  LPC2214        FLASH:256K BEGIN:0X00000000

                 SRAM:16K   BEGIN:0X40000000

软件平台:

KEIL UVISION3 V3.31 + WinARM-20060606.exe + WinARM_Keil_uVision_glue.rar补丁 + JLINK

//////////////////////////////////////////////////////////////////

软件环境搭建:

Keil uvision 3 V3.31

WinARM-20060606.exe

keil环境下使用winarm工具链需安装一个补丁(http://www.mcu123.com/product/lpc214x/

WinARM_Keil_uVision_glue.rar)才行, GNUARM工具链直接就可以在keil下使用。

 

设置编译器选项:

"project"->"component environment books"->"folders/extentions"->勾选"use gnu compiler",

设置"gnutool-prefix"为"arm-glue-",设置"Cygnus folder"为"D:\program\WinARM\"

(你的winarm安装目录)

 

设置目标选项:

 

"options for target" -> "output" -> "run user program #1"设置为:

"arm-elf-objcopy -O ihex .\obj\toggleLED.elf .\obj\toggleLED.hex";是为了转化elf文件为

可烧写的hex文件。

"options for target" ->"linker" ->"linker script" 设置为:"LPC2292-ERAM.ld"(

在外部RAM中调试的链接脚本)

"options for target" -> "output" -> "select folder for objects"设置文件夹为 ./obj,

便于文件归类。

其他保持默认状态。

 

设置目标调试选项:

"options for target" -> "debug" ->"initialization"选中debug_in_ERAM.ini

不选中"load application at start""run to main"

其它设置参照JLINK的说明书(注意时钟设置为autodetect)

 
2008-06-20

于士友

没有评论: