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

📄 openocd_at91sam7a3_flash.script

📁 atmel at91SAM7a3 ADC sample
💻 SCRIPT
字号:
# 
# The following commands will be executed on 
# reset (because of run_and_init in the config-file) 
# - halt target 
# - init ecr 
# - flash content of file main.bin into target-memory 
# - shutdown openocd 
# 
# created by Martin Thomas 
# http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects 
# based on information from Dominic Rath 
# 

halt 
sleep 10 

# Init - taken form the script openocd_at91sam7_ecr.script 
mww 0xfffffd44 0x00008000   # disable watchdog 
mww 0xfffffd08 0xa5000001   # enable user reset 
mww 0xfffffc20 0x00000601   # CKGR_MOR : enable the main oscillator 
sleep 10 
mww 0xfffffc2c 0x001D1c05   # CKGR_PLLR: 96.0 MHz 
sleep 10 
mww 0xfffffc30 0x00000007   # PMC_MCKR : MCK = PLL / 2 = 48 MHz 
sleep 10 
mww 0xffffff60 0x003c0100   # MC_FMR: flash mode (FWS=1,FMCN=60) 
# arm7_9 force_hw_bkpts enable   # program resides in flash 

# AT91SAM7 flash command-"batch" 
# adapted by Martin Thomas based on information from Dominic Rath - Thanks 
arm7_9 dcc_downloads enable 
sleep 10 
poll 
flash probe 0 
flash write 0 main.bin 0x0 # burn generated armboost.bin
reset run 
sleep 10 
shutdown

⌨️ 快捷键说明

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