📄 pgm_eb55
字号:
|*******************************************************************
|First part: Master clock frequency switching
|*******************************************************************
| Define Top of memory (needed if you are working with Multi-ICE )
$top_of_memory=0x2040000
|Set up the Clock frequency to run at 32Mhz with PLL
|- Enable the Main Oscillator(16Mhz)
0xFFFF4020= 0x03080002
|- Reading the APMC Status register to detect when the oscillator is stabilized
r0=0xFFFF4030
r1=*r0 ; while r1==0x0
|- Commuting from Slow Clock to Main Oscillator (16Mhz)
0xFFFF4020 = 0x03084002
|- Setup the PLL
0xFFFF4020 = 0x03084102
|- Reading the APMC Status register to detect when the PLL is stabilized
r0=0xFFFF4030
r1=*r0 ; while r1==0x1
|- Commuting from 16Mhz to PLL @ 32MHz
0xFFFF4020 = 0x03088102
|- Now the Master clock is the output of PLL @ 32MHz
|*******************************************************************
|Second part: Boot program loading to the flash memory
|*******************************************************************
|Setup EBI to support all connected memories
|Setup for EB55
| Setup EBI to support all connected memories
| Setup for EB55
0xFFE00000=0x01002529
0xFFE00004=0x02002121
0xFFE00020=0x1
| Load Flash downloader + arguments to program the boot
load ../../../tools/flash_downloader/flash_16x4/ext_sram/flash_16x4.axf boot_eb55_Data/flash/boot_eb55.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_eb55/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_eb55/led_swing_Data/flash/led_swing.bin 0x1100000
go
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -