ledswing_ice.dat

来自「ATMEL AT91RM9200开发板配套光盘上的全部示例程序」· DAT 代码 · 共 47 行

DAT
47
字号
Com *     ATMEL Microcontroller Software Support  -  ROUSSET  -
Com *--------------------------------------------------------------------------------------
Com *The software is delivered "AS IS" without warranty or condition of any
Com *kind, either express, implied or statutory. This includes without
Com *limitation any warranty or condition with respect to merchantability or
Com *fitness for any particular purpose, or against the infringements of
Com *intellectual property rights of others.
Com *--------------------------------------------------------------------------------------
Com *File Name               : File LedSwing_ICE.dat
Com *Object                  : Script file for axd debugger
Com *
Com *1.0 18/Feb/03   JPP     : Creation
Com *--------------------------------------------------------------------------------------
Com Enable the semihosting. If you don't use printf and/or scanf functions, set semihosting_enabled to 0.
spp semihosting_enabled 1

Com Define the top of memory to store the buffer for semihosting calls.
Com Needed when working with an ICE Interface and if you use C printf/scanf functions in your code.
Com The value after $top_of_memory variable is the address of the buffer needed for the semihosting.
Com Generally pointing to the top of Internal or External Memory. Change it according to your board configuration.
Com Hereafter, $top_of_memory variable is defined at the top of the internal SRAM of the AT91R40008.

let $top_of_memory 0x003F000

Com Setup EBI to support all connected memories
Com Setup for EB40A with external Flash memory only. Change the EBI value (i.e number of wait states, TDF, 8 or 16-bit memory, etc..
Com according to your external memories and peripherals.
Com You can add other EBI Chip Select setting to fit your board configuration.
Com EBI_CS0 for Flash access


Com Disable all vector catch to not have AXD to warn you that a vector exception has been caught.
spp vector_catch 0x0

Com EBI_CS0 connected to the flash memory.
Com Settings : EBI_BA=0x01000000 / EBI_CSEN / EBI_BAT_BYTE_WRITE / EBI_TDF_2 / EBI_PAGES_16M / EBI_NWS_7 / EBI_DBW_16

setmem 0xFFE00000 0x01002539 32

Com Page size
setmem 0xFFE00024 0x6 32

Com Remap Command
setmem 0xFFE00020 0x1 32

Com Load file
ld ledSwing.axf

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?