📄 basic_flash.dat
字号:
Com *--------------------------------------------------------------------------------------
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 basic_Flash.dat
Com *Object : Script file for axd debugger
Com *
Com *1.0 08/Dec/04 JPP : Creation
Com *1.1 24/Feb/05 JPP : Reset
Com *1.2 23/Aug/05 JPP : Change MC_FMR Setting and reset
Com *1.3 23/Oct/05 JPP : Correct Reset
Com *--------------------------------------------------------------------------------------
Com Disable all vector catch to not have AXD to warn you that a vector exception has been caught.
spp vector_catch 0x0
spp semihosting_enabled 0
com Reset chip use setup file for SAM_ICE
setmem 0xFFFFFD08 0xA5000011 32
setmem 0xFFFFFD00 0xA5000005 32
Com Watchdog Disable
Com AT91C_BASE_WDTC->WDTC_WDMR= AT91C_SYSC_WDDIS;
setmem 0xFFFFFD44 0x00008000 32
Com Set Flash Waite sate
Com Single Cycle Access at Up to 30 MHz
Com if MCK = 47923200 I have 72 Cycle for 1 useconde ( flied MC_FMR->FMCN)
Com A page erase is performed before programming.
Com AT91C_BASE_MC->MC_FMR = ((AT91C_MC_FMCN)&(72 <<16)) | AT91C_MC_FWS_1FWS ;
setmem 0xFFFFFF60 0x00480100 32
Com Mask All interrupt pAic->AIC_IDCR = 0xFFFFFFFF;
setmem 0xFFFFF124 0xffffffff 32
setmem 0xFFFFF128 0xffffffff 32
Com disable peripheral clock Peripheral Clock Disable Register
setmem 0xFFFFFC14 0xffffffff 32
mem 0x0 +0 32 hex
mem 0x00100000 +0 32 hex
mem 0x00200000 +0 32 hex
Com Load file
ld BasicTools.axf
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -