Boot BF537 from External 8 bit , 4 MB Flash

I am new to Visual DSP. I have a custom DSP kit with BF537 and an external 4MB Flash (SST39LF040). I am using ICE-100B emulator connected through JTAG port. I can run the programme in debug mode using emulator. Now I want to program the code into the FLASH memory so that my target board runs independently, when power up. How can I program my code into Flash. Help is appriacated.

This is a question that comes up fairly frequently, and you will find more detailed information if you do a search of the EngineerZone. That said, my first recommendation is always to check the 'Readme.txt' from the Power On Self Test examples, which detail how to configure the project, and how to use the Flash Programmer Utility to program your target. The BF537 EZ-KIT POST example is available at "...\Blackfin\Examples\ADSP-BF537 EZ-KIT Lite\Power_on_self_test\".

As you are using a custom board, you will need a custom flash programmer driver. Again, this is a topic that comes up regularly, and searching will provide more detail. We provide example Flash Programmer Drivers. For example the BF537 Flash Programmer Driver for the ST. M29W320DB/EB flash part is available at "...\Blackfin\Examples\ADSP-BF537 EZ-Kit Lite\Flash Programmer\", and uses underlying Device Drivers that can be found at "...\Blackfin\lib\src\drivers\flash\" - the corresponding header located at "...\Blackfin\include\drivers\flash\".

You would need to modify both the flash programmer project, and the underlying device drivers (we recommend making backups or copies, to preserve the original files) to match the specification of your target.