BF533 上面Multiple DXE启动代码,包含SDRAM初始化
Attached is an example that demonstrates a multiple application boot. It was created using the BF533 Ez-Kit Lite. The zip file contains 2 blink application projects and an Init Code project. Upon RESET, the on-chip boot rom will boot in the Init Code. The Init Code will then wait until PF8 (SW4 push button) or PF9 (SW5 push button) are asserted. If PF8 is asserted, DXE1 will be booted in and executed. If PF9 is asserted, DXE2 will be booted in and executed. DXE1 is an application that blinks alternate LEDs on the board and DXE2 is an application that blinks all of LEDs on the board.
You will find a loader file called output.ldr that was used for this demo. You can see how it was built if you go to the Post Build Tab within Project Options of the Init_Code.dpj project. Follow the sequence below to build this file:
1) Build DXE1.dpj to create DXE1.dxe. 2) Build DXE2.dpj to create DXE2.dxe. 3) Build Init_Code.dpj to create output.ldr 4) Use the Flash Programmer utility on the ADSP-BF533 Ez-Kit Lite to program output.ldr into the flash.
Once loaded, press RESET so boot in the Init Code and then press PF8 to boot in DXE1. Press RESET again and then press PF9 to boot in DXE2. You will notice the difference between the two applications by the LED blinking patterns.
Open the Init_Code.asm file to familiarize yourself with how the external memory is accessed to read in the DXE COUNT and jump over multiple DXEs. The procedure used within this file is not the only method on how to skip through multiple DXEs. You can use it as a reference for your own design.
文件列表:
BF533 Ez Kit Multiple DXE Boot
..............................\DXE1
..............................\....\ADSP-BF533_ASM.ldf
..............................\....\BF533_EZ-KIT_Flash_Setup.asm
..............................\....\Debug
..............................\....\DXE1.dpj
..............................\....\DXE1.mak
..............................\....\main.asm
..............................\....\startup.asm
..............................\....\startup.h
..............................\DXE2
..............................\....\ADSP-BF533_ASM.ldf
..............................\....\BF533_EZ-KIT_Flash_Setup.asm
..............................\....\Debug
..............................\....\DXE2.dpj
..............................\....\DXE2.mak
..............................\....\main.asm
..............................\....\startup.asm
..............................\....\startup.h
..............................\Init Code
..............................\.........\ADSP-BF533_ASM.ldf
..............................\.........\Debug
..............................\.........\Init_code.asm
..............................\.........\Init_code.dpj
..............................\.........\Init_code.mak
..............................\Read_Me.txt |