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

📄 atmel_eb55.ocd

📁 ARM入门的好帮手.包含了从简单到相对较复杂的程序.
💻 OCD
字号:
# Setup script for the Atmel AT91 board
# This is only required if the boot or Angel ROM monitor does not do the board setup
# This script is used to speed up the System Frequency to run at 32MHz

# first, tell the wiggler/raven to use a slow clock for JTAG
delay slow

# Enable the main oscillator (16Mhz) / MOSCEN = 1, OSCOUNT = 47  (1.4ms/30祍)
memwrite long 0xffff4020 0x002F0002

# Wait for Main oscillator stabilization. Wait for APMC_MOSCS Bit in APMC_SR equals 1.
sleep 1

# Commuting from Slow Clock to Main Oscillator (32K to 16Mhz)
memwrite long 0xffff4020 0x002F4002

#Setup the PLL / MUL = 1, PLLCOUNT = 3, CSS = 1
memwrite long 0xffff4020 0x032F4102

# Wait for the PLL is stabilized. Wait for APMC_PLL_LOCK Bit in APMC_SR equals 1
sleep 1

# Commuting from 16Mhz to PLL @ 32MHz / CSS = 2, MUL = 1
memwrite long 0xffff4020 0x032F8102

# --------------------------------------------------------
# Now the Master clock is the output of PLL @ 32MHz -
# --------------------------------------------------------

# tell the wiggler/raven to resume using a fast clock
delay fast

# EBI_CSR0 connected to the flash memory.
# Settings : EBI_BA=0x01000000 / EBI_CSEN / EBI_BAT_BYTE_WRITE / EBI_TDF_2 / EBI_PAGES_16M / EBI_NWS_3 / EBI_DBW_16
memwrite long 0xffe00000 0x01002529

# EBI_CSR1 connected to the External SRAM memory.
# Settings : EBI_BA=0x02000000 / EBI_CSEN / EBI_BAT_BYTE_WRITE / EBI_TDF_0 / EBI_PAGES_16M / EBI_NWS_1 / EBI_DBW_16
memwrite long 0xffe00004 0x02002121

# REMAP Done
memwrite long 0xffe00020 0x00000001

#2M bytes per Chip Select
memwrite long 0xffe00024 0x00000006

run
sleep 2
halt
delay fast

⌨️ 快捷键说明

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