📄 readme.txt
字号:
ADSP-BF533 Flash Booting Demo
Date Created: 4/17/06 Rev 1.1
This directory contains an example ADSP-BF533 subroutine that demonstrates how to create a loader file for the BF533 EZ-KIT, initialization code to load a program from SDRAM, and use the FlashProgrammer utility to download the file to the flash.
Files contained in this directory:
Blink_Flash.dpj VisualDSP project file
blink_Flash.ldf VisualDSP linker file
main.c Main Module
ISRs.c Interrupt service requests
Initialization.c Setup MBR's
heaptab.c Startup Code
basiccrt.s Startup Code
BF533 Flags.h header file
readme.txt this file
__________________________________________________________
CONTENTS
I. FUNCTIONAL DESCRIPTION
II. IMPLEMENTATION DESCRIPTION
III. OPERATION DESCRIPTION
I. FUNCTIONAL DESCRIPTION
The Booting demo demonstrates how to create a loader file. Link in Initialization code, and Load it into flash.
This example simply uses a blink program to create a loader file. You will then link in initialization code to initialize SDRAM. After the loader file is created the user can then use the FlashProgrammer Utility to download the intel hex file to flash.
II. IMPLEMENTATION DESCRIPTION
Boots a blink program from Flash and runs a simple blink program.
Uses a custom LDF generated from the Expert Linker, using default C protocol.
III. OPERATION DESCRIPTION
"Creating Initialization Code"
- Open an ADSP-BF533 EZ-KIT Lite session in the VisualDSP Integrated Development Environment (IDDE).
- Open the project "Blink_Flash.dpj" in the VisualDSP IDDE from the directory "Blackfin\Examples\ADSP-BF533 EZ-KIT Lite\Booting (C)"
- Click the "Project" menu item and select "rebuild all" to build "Blink_Flash.dxe"
- "Blink_Flash.dxe" should now be in your debug folder
- You can close this project.
"Creating a Loader File for the ADSP-BF533 EZ-KIT"
- Open an ADSP-BF533 EZ-KIT Lite session in the VisualDSP Integrated Development Environment (IDDE).
- Open the project "Blink_Flash.dpj" in the VisualDSP IDDE.
- Click on the "Project" Menu item and select "Project Options"
- In the type combo box under the Project tab, select Loader File
- Click on the Load tab
- Make sure the "Category" selected is "Loader file options"
- Under "Boot Mode", flash should be selected
- "Boot format" should be "Intel hex"
- "Output file word width" should be "16"
- Start address should only be changed if the user wants the code
to be loaded to a different address other than the default start address
- In the Output file text box type "Blink_Flash.ldr"
(default uses your project name with .ldr extension)
- Under Initialization File, browse and find "..\VisualDSP 4.5\Blackfin\ldr\init_code\ADSP-BF533 INIT CODE\ADSP-BF533 INIT CODE.dxe"
- Verbose should be unchecked
- After all the options are set up select "OK"
- Click the "Project" menu item and select "rebuild all" to build "Blink_Flash.ldr"
- "Blink_Flash.ldr" should now be in your debug folder
DOWNLOADING "Blink_Flash.ldr" IN THE FLASH PROGRAMMER
- Click on the "Tools" menu item and select "Flash Programmer"
- The Flash Programmer interface will pop up
- Click on the "..." next to the Driver file text box to browse for the driver
- The driver should be in
"Blackfin\Examples\ADSP-BF533 EZ-KIT Lite\Flash Programmer"
- Select the driver file "BF533EzFlashDriver.dxe" and then click "Load Driver"
- Click on the "..." next to the Data file text box to browse for "Blink_Flash.ldr"
- Select the "Blink_Flash.ldr" file just created and click "Load File"
- Click "yes" to the message asking to erase flash
- "Blink_Flash.ldr" is now in flash
- To verify that the blink program is in flash Close VDSP++ and disconnect the board from the emulator, then power cycle. You should see the blink program run.
- You can halt the dsp at any time by clicking on Debug\halt.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -