i try to load the program into flash.
when turn off power. the program still inside the chip.=)
And what is your question?
ok...how to load the program into flash memory?
please read the Flash Programmer chapter in the VisualDSP++ User Guide.
Basically, you need to change Project Type Loader File. This will create a loader stream out of the dxe file during the build process.
Under Project->Load->Options you need to configure according to the boot source. Please read the Loader Manual for further details.
You will find Flash Programmer Drivers for you EZ-KIT Lite within the examples folder of VisualDSP++.
Thks for reply.
ok...but what is driver file, output file and data file? is it all my program file or some specific files?
when I load driver, then i get the error below
Error: There was a problem with one or morerequired expressions in the driver. Please makesure the following expressions are present andtry again:"AFP_BreakReady"Error: Driver load failed.
The error you are encountering would suggest that you are not loading the correct driver file. To use the Flash Programmer, you must first load a flash driver onto the processor, this is known as the Driver File. The driver file for the BF506F EZ-KIT can be found in "...\Blackfin\Examples\ADSP-BF506F EZ-KIT Lite\Flash Programmer\". Note that 2 separate flash drivers are available for this EZ-KIT, one for Serial Flash and one for the Parallel flash.
After loading the Driver File click the 'Programming' tab of the Flash Programmer and load the Data File. The Data File is the loader file (ldr) that was built in VisualDSP++. By default, the .ldr file is created in the project's Debug folder.
Full details of using the Flash Programmer can be found in VisualDSP++ Help at the following location:
'Contents' -> 'Emulation Tools' -> 'Flash Programmer'
Thks for your helping. Colin.
but why i didnt see any response after i power on my board again? is it the program havnt load into dsp chip??
There is txt file called 'Booting from Flash readme.txt' file in the Examples directory of VisualDSP++ "...\Blackfin\Examples\", the contents of which I have pasted below. One thing you should ensure is that the "Boot Mode Select Switch (SW2)" is set accordingly.
BOOTING FROM FLASH MEMORY-------------------------
1) Configure the correct hardware settings: - Jumpers - Switch settings
In particular, verify the boot mode pins are set to boot from EPROM/Flash. Refer to the appropriate EzKit manual under the section "Jumper and Switch Settings" for more details.
2) Open the target application in VDSP++ and open the Project Options (Project menu). Make sure the target type is a Loader File, and not an Executable file (Project tab).
3) Configure the Load Options:
3.1) Set the Boot mode to Flash and the format to Intel Hex. Select the data width of the Flash (usually 16 for EZ-KITs).
3.2) The Start Address should only be changed if the user wants the code to be loaded to an address other than the default start address.
3.3) In the Output file text box type the desired ldr output filename (default uses your project name with .ldr extension) 3.4) If your application requires a second-stage loader (BF535 or BF561), select 'Use boot kernel' from the Load > Kernel menu and specify the kernel file to be used (these are located under "...\Analog Devices\VisualDSP X.X\Blackfin\ldr"), or use the default kernel.
[For more detailed information about the second-stage loader and booting, see appnote EE-240 at www.analog.com/ee-notes]
4) Click OK and rebuild the project. This will create a .ldr file in your Debug folder.
5) Open the Flash programmer window (Tools > Flash Programmer).
6) Under the 'Driver' tab, load the appropriate Flash Programmer driver from "...\Analog Devices\VisualDSP X.X\Blackfin\Examples\ADSP-BFXXX EZ-Kit Lite\Flash Programmer\BFXXXEzFlashDriver.dxe".
7) Under the 'Programming' tab, under 'Data file', select the loader file that was built in VDSP++. By default, this .ldr file is created in the project's Debug folder.
8) Set any other options if needed, and click 'Program'. Wait for successful completion then click OK.
To boot from Flash, the board now needs to be reset, after the emulator has released control of it.
Retrieving data ...