pgm_eb42
来自「ARM入门的好帮手.包含了从简单到相对较复杂的程序.」· 代码 · 共 49 行
TXT
49 行
|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 + =
减小字号Ctrl + -
显示快捷键?