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

📄 pgm_eb42

📁 ARM入门的好帮手.包含了从简单到相对较复杂的程序.
💻
字号:
|First part: Master clock frequency switching

| Define Top of memory (needed if you are working with Multi-ICE )
$top_of_memory=0x2040000

|Disable external watchdog assertion
|- ST_WMR
0xFFFF8008=0x0

|Set up the Clock frequency to run at 32,768 MHz with PLLB
|- PMC_CGMR
0xFFFF4020 = 0xC503E708

|- Reading the PMC Status register to detect when the PLLB is stabilized
|- PMC_SR
r0=0xFFFF4030
r1=*r0 ; while r1==0x0

|- Commuting from Slow Clock to PLLB
|- PMC_CGMR
0xFFFF4020 = 0xC503E798

|- Now the Master clock is the output of PLLB @ 32,768MHz
|===============================================================================
|Second part: Boot program loading to the flash memory

| Setup EBI to support all connected memories
| Setup for EB42

|- EBI_CSR0
0xFFE00000 = 0x01002529

|- EBI_CSR1
0xFFE00004 = 0x02002121

|- EBI_RCR
0xFFE00020 = 0x1

| Load Flash downloader + arguments to program the boot
load ../../../tools/flash_downloader/flash_16x4/ext_sram/flash_16x4.axf     boot_eb42_Data/flash/boot_eb42.bin 0x1000000
go

| Load Flash downloader + arguments to program Angel
load ../../../tools/flash_downloader/flash_16x4/ext_sram/flash_16x4.axf ../../../debug_monitor/angel/image/sram_eb42/angel_at91.rom 0x1006000
go

| Load Flash downloader + arguments to program default user application
load ../../../tools/flash_downloader/flash_16x4/ext_sram/flash_16x4.axf ../../../projects/led_swing_eb42/led_swing_Data/flash/led_swing.bin 0x1100000
go

⌨️ 快捷键说明

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