Analog.com Analog Dialogue Wiki 简体中文
EngineerZone
EngineerZone
  • Log In
  • Site
  • Search
  • User
  • Support

    Popular Forums

    • RF and Microwave
    • Power Management
    • Video
    • FPGA Reference Designs
    • Precision ADCs
    • Linux Software Drivers
    • SigmaDSP Processors & SigmaStudio Dev. Tool

    Product Forums

    • A2B
    • Amplifiers
    • Analog Microcontrollers
    • Clock and Timing
    • Data Converters
    • Direct Digital Synthesis (DDS)
    • Energy Monitoring and Metering
    • Interface and Isolation
    • MEMS Inertial Sensors
    • Processors and DSP
    • Switches/Multiplexers
    • Temperature Sensors
    • Voltage References
    View All

    Application Forums

    • Audio
    • Automated Test Equipment (ATE)
    • Condition-Based Monitoring
    • Depth, Perception & Ranging Technologies
    • Embedded Vision Sensing Library
    • Motor Control Hardware Platforms
    • Optical Sensing
    • Precision Technology Signal Chains Library
    • Video
    • Wireless Sensor Networks Reference Library

    Design Center Forums

    • ACE Evaluation Software
    • ADEF System Platforms
    • Design Tools and Calculators
    • FPGA Reference Designs
    • Linux Software Drivers
    • Microcontroller no-OS Drivers
    • Reference Designs
    • Signal Chain Power (SCP)
    • Software Interface Tools
    • System Demonstration Platform (SDP) Support
  • Learn

    Highlighted Webinar

    Audio Design Solutions for Augmented and Virtual Reality (AR/VR) Glasses

    Recent Discussions

    • Standalone Data logging using ADALM2000
    • About sdr.tx(). Can I change the transmitter frequency after call this function?
    • About the values of CurV1,2 displayed in the cursors frame of scopy.
    • Purpose of "Load" in Scopy signal generator configuration GUI
    • about the transient response experiment example of RL Circuit using adalm2000

    Places

    • ADI Education Home
    • ADI Education China
    • ADI Education India
    • ADI Education Philippines
    • StudentZone (Analog Dialogue)
    • Virtual Classroom

    Latest Webinars

    • Audio Design Solutions for Augmented and Virtual Reality (AR/VR) Glasses
    • Robust Industrial Motor Encoder Signal Chain Solutions
    • Precision Low Power Measurement Solutions for Intelligent Edge
    • Advantages of Integrating Digital Power System Management (DPSM) into your Design
    • Optimizing GaN and GaAs RF Amplifier Performance Using Novel Biasing Techniques
    View All Webinars
  • Community Hub

    Challenge Yourself!

      KCC's Quizzes AQQ231 about Birthdays and Cake Candles
    View All

    Places

    • Community Help
    • Logic Lounge

    Resources

    • EZ Code of Conduct
    • Getting Started Guide
    • ADI: Words Matter
    • Community Help Videos
    View All
  • Blogs

    Highlighted Blogs

    Understanding Public Key Infrastructures

     

    Share Your Insights! How Can We Improve Your Engineering Design Needs?

    Latest Blogs

    • 10BASE-T1L Makes Powering Intelligent Field Instruments Painless
    • Using Python To Control The Pluto Radio And Plot Data
    • Resistance is NOT Futile
    • What is The Continuity of Engineering?
    • Move Over Sensors: Actuators Are Entering The Smart Factory Stage
    Read All Blogs

    ADI Blogs

    • EZ Spotlight
    • The Engineering Mind
  • Partners

    Electronic Design Services - PartnerZone

    • Boston Engineering
    • Calian, Advanced Technologies
    • Colorado Engineering Inc. (DBA CAES AT&E)
    • Clockworks Signal Processing
    • Epiq Solutions
    • Fidus
    • PalmSens
    • Richardson RFPD
    • Tri-Star Design, Inc.
    • VadaTech
    • Vanteon
    • X-Microwave
    View All
VisualDSP++ Development Tools
  • Processors and DSP
  • Software and Development Tools
  • VisualDSP++ Development Tools
  • Cancel
VisualDSP++ Development Tools
Documents FAQ: How to load and run a program from flash on an EZ-KIT in VisualDSP++?
  • Q&A
  • Documents
  • Members
  • Tags
  • More
  • Cancel
  • Documents
  • +ADSP-21369 EZ-KIT: FAQ
  • +ADSP-BF506F: FAQ
  • +ADSP-BF592: FAQ
  • +Blackfin: FAQ
  • +DXE: FAQ
  • Expressions Window ERROR: FAQ
  • +How to Resolve [Error li1040]: FAQ
  • +HP-USB-ICE Emulator: FAQ
  • +ICE1000: FAQ
  • +Project Building Error: FAQ
  • +Reset, Reload and Restart: FAQ
  • +SHARC simulator: FAQ
  • +VDK heap: FAQ
  • -VisualDSP++: FAQ
    • FAQ: A number of registers appear to be missing from sysreg.h in VisualDSP++ 5.0 compared to earlier versions
    • FAQ: Able to install the base release of VisualDSP++ 5.0 without any problems but encountering a 'Could not find XML file or the XML file might be corrupted!’ message when trying to install an update.
    • FAQ: Advantages of using 'Run as Administrator' on Windows 7 or 8 for VisualDSP++
    • FAQ: After reformatting my hard-drive and reinstalling VisualDSP I get the error "A valid license could not be found" error, and can no longer run VisualDSP.
    • FAQ: Are international character sets supported by VisualDSP++?
    • FAQ: Can I install your Floating License Tools on a server running Linux?
    • FAQ: Can I run more than one instance of VisualDSP++ at a time?
    • FAQ: Can I undo a VisualDSP++ Update or roll-back to a previous update?
    • FAQ: Does VisualDSP++ include a Stand Alone Flash Programmer?
    • FAQ: Does VisualDSP++ use absolute or relative paths?
    • FAQ: Does VisualDSP++®︎ support the new ADSP-BF60x processor family?
    • FAQ: Error "The XML page cannot be displayed" when trying to view a linker map file
    • FAQ: Error Connecting to ADSP-21489 EZ-Kit Visual DSP++
    • FAQ: ftell function return value in VDSP
    • FAQ: How can I obtain the VisualDSP++ Software License Agreement?
    • FAQ: How can I specify different compiler options for individual files in a project?
    • FAQ: How can you use a C-function, defined in a separate file, in a method of a C++-class?
    • FAQ: How do I configure my Firewall for a Floating License
    • FAQ: How do I Enable Python script in VDSP
    • FAQ: How do I move my VisualDSP++ Floating License Server to a new machine?
    • FAQ: How do I use FLEXnet Licensing with more than one product? Can I combine license.dat files?
    • FAQ: How do I verify the Analog Devices products, versions and licenses that are installed on my computer?
    • FAQ: How do you view a Map file?
    • FAQ: How does the IDDE know which words to syntax highlight?  Can I add my own words to this list?
    • FAQ: How to build .bin in VisualDSP++
    • FAQ: How to generate a makefile from a VisualDSP++ project?
    • FAQ: How to generate assembly code (.s files) from Visual DSP project?
    • FAQ: How to load and run a program from flash on an EZ-KIT in VisualDSP++?
    • FAQ: How to use License Borrowing feature of VisualDSP++
    • FAQ: How to use the function of image processing toolbox with Visual DSP++?
    • FAQ: I am looking for the source files of runtime libraries which is provided by VisualDSP++ Tools. Where I can find them?
    • FAQ: I have installed a Test Drive license. Why can't I create an "EZ-KIT Lite" session?
    • FAQ: I need to transfer my license to a new machine (or, my hard drive crashed and had to be reformatted). How do I register my license against a new host ID?
    • FAQ: I uninstalled VisualDSP++ due to a problem, and now when I’m trying to reinstall my serial number I receive the message “The serial number has already been used and can be installed only once”. What should I do?
    • FAQ: I've recently upgraded to VisualDSP++ 5.0 from VisualDSP++ 3.5 or earlier. My license.dat file was copied over during installation, but only Simulator sessions are now available.
    • FAQ: Increasing the maximum number of sockets in lwIP in VisualDSP++.
    • FAQ: Is it possible to backup/restore a VisualDSP++ Session
    • FAQ: Is it possible to mix objects produced by different versions of VisualDSP++?
    • FAQ: Is the Green Hills Blackfin Processor development suite going to replace the VisualDSP++ suite?
    • FAQ: I’ve just installed a full license or evaluation license and now I get a message telling me that the license will expire in X days.
    • FAQ: Speeding up slow build times in VisualDSP++
    • FAQ: Support for Parallel Builds in VisualDSP++
    • FAQ: System requirements for VisualDSP++ and supported operating systems
    • FAQ: The VisualDSP++ SAFP does not work on 64-bit machine's
    • FAQ: Unable to enter breakpoints in my code in VisualDSP++.
    • FAQ: Unable to view variables in the Locals window and the Expressions window displays "Expressions Window: ERROR: Unknown variable or symbol"
    • FAQ: VDSP license update inquiry
    • FAQ: VDSP++ doesn't show file extension into editor tabs
    • FAQ: Visual DSP++ runtime error
    • FAQ: VisualDSP++ 5.0 SD card driver reports incorrect size/ fails to be recognized by Windows
    • FAQ: VisualDSP++ and 64-bit Windows
    • FAQ: VisualDSP++ STDIO is slow, and interrupts processing of real-world data
    • FAQ: What are the differences between the Compiled Simulator and the Cycle Accurate Simulator?
    • FAQ: What OS will VisualDsp run under.
    • FAQ: What types does VisualDSP++ compiler use to implement enumerations and enumeration constants?
    • FAQ: What's New in VisualDSP++ 5.0 Update 9?
    • FAQ: When I try to connect to VisualDSP++ via remote desktop I encounter the following error message - ERROR: Terminal Server remote client not allowed
    • FAQ: When I try to install VisualDSP++ 5.0 on my Windows 7 machine I encounter a message stating that “Windows can’t verify the publisher of this driver software”. Why?
    • FAQ: When I try to start VisualDSP++ 5.0 either from the Start menu or from within the System folder nothing happens.
    • FAQ: When trying to install VisualDSP++ I encounter a number of errors, such as, 'Install cannot proceed. Could not find XML file or the XML file may be corrupted'. How do i resolve this?
    • FAQ: Where can I find details of Tools Anomaly Reports relating to VisualDSP++?
    • FAQ: Where is the C source file which defines VDK functions such as CreateThread() in VisualDSP++?
    • FAQ: Where is the header file that defines VDK data types such as VDK_ThreadCreationBlock?
    • FAQ: Where to find out how much memory is used in Visual DSP++ for Blackfin?
    • FAQ: Which versions of VisualDSP++ are supported on Windows Vista?
    • FAQ: Which VisualDSP++ Updates do I need to install?
    • FAQ: Why do I receive, "The serial number has already been used and can be installed only once" when entering a Test Drive license?
    • FAQ: Why does my code stop working when I enable optimization?
    • FAQ: Why does my LDF file not open in the Expert Linker in VisualDSP++ 5.0 Update 2?
    • FAQ: Why is my Blackfin LDF marked as Read Only and why cant i make modifications to the text version of the file?
    • FAQ: Will my License number work with different versions of VisualDSP?
    • FAQ: Windows 7 Compatibility in VisualDSP++ Development Tools
    • Guidelines for Posting VisualDSP++ Development Tools Issues
    • How to transfer VisualDSP++ Floating License Server to new machine?
    • VisualDSP++ 5.1.1 Download
    • VisualDSP++ 5.1.1 users should upgrade to VisualDSP++ 5.1.2
    • VISUALDSP++ DEVELOPMENT TOOLS
    • [FAQ] : Can we create the FPGA program with VisualDSP?
    • [FAQ] : corrupt project file Error VisualDSP++ 3.0
    • [FAQ] : How to run Stand-Alone Flash Programmer without VisualDSP++ environment?
    • [FAQ] : How to Verify Contents of Flash using VisualDSP++?
    • [FAQ] : In VDSP, can we switch between DHCP and static IP at run time
    • [FAQ] : Installation Failure error in VDSP while calling 21020ICE.inf file
    • [FAQ] : Is it possible to accept third party agreement for supporting VDSP on Windows 10
    • [FAQ] : Is there any tool in the Visual DSP that can monitor the thread occupied time?
    • [FAQ] : Placement of data in VisualDSP 3.5
    • [FAQ] : Purpose of GetThreadStackUsage() function in VDSP toolchain?
    • [FAQ] : What is the usage of optimization pragmas in VisualDSP?
    • [FAQ]: How can I obtain 90 days test drive license for VisualDSP++?
    • [FAQ]: How can I obtain university license for VDSP?
    • [FAQ]: Installation error “Error registering a file with Windows” for VDSP++ in windows 10
    • [FAQ]: Transforming source code asm21k .asm and .arch file from DSP21k Toolkit to VDSP 5.X.X?
    • [FAQ]: What are the different types of licenses for VisualDSP++?
    • [FAQ]:How to use relative paths in VisualDSP?
  • +Windows 8.1: FAQ
  • [FAQ] : Ticks for VDK_Sleep()

FAQ: How to load and run a program from flash on an EZ-KIT in VisualDSP++?

Q:

I am using VisualDSP++ and would like to load my program to flash on my EZ-KIT then use it to boot and run my board in standalone mode?

-------------------------------------

A:

In order to program the flash on your board you must first create a loader (.ldr) file for your project.

Creating a Loader (.ldr) file

  • Connect to your Target board with VisualDSP++.
  • Open the project you wish to flash to the board.
  • Click on the "Project" menu item in VisualDSP++ and select "Project Options...".
  • Select "Project" in the left window and select "Loader file" from the ‘Type’ drop down on the right.
  • Select the "Project : Load : Options" from the left hand window.
  • On the right, under "Boot Mode", for Parallel Flash select "Flash/PROM", and for Serial Flash select "SPI" (Note: you must select "SPI PROM" for serial flash on SHARC). Other "Boot Mode" options are available and vary from processor to processor - Have a look at the Evaluation System Manual for the EZ-KIT you are using for further details.
  • Under "Boot Format", if you are using Blackfin select from "Intel hex", “ASCII”, “Include”, “Binary”. For SHARC you also have the addition of "S1", "S2", or "S3" Boot Formats.
  • The "Output Width" should be "16-bit" for parallel flash and "8-bit" for serial flash. For SHARC you will also have the option of a “32-bit” bus width.
  • The "Use default start address" checkbox should be checked – (The Start Address should only ever be changed if you want the code to be loaded to an address other than the default start address)
  • The "Verbose" option can be checked for details output from the elfloader.
  • If you are using external memory you must select an appropriate "Initialization file" from the following location:

<install_path>\<processor_family>ldr\

  • Both the "Output file" and "Additional options" should typically be left blank, however:-
    • If you wish to give your (.ldr) file a name other than the default [which is the same as the executable name but with an ldr extension] then please enter it into the "Output file" field.
    • Any additional loader command-line switches required to modify the loading process should be entered into the "Additional options" field. For a complete list of switches refer to the VisualDSP++ Loader and Utilities Manual.
  • After all the options are set up select "OK".
  • Click the "Project" menu item and select "Rebuild Project" to build the loader file.
  • The loader file should be available in your projects output folder.

Downloading the Loader (.ldr) file to the EZ-KIT

The next step is to download the loader file to the board which is accomplished with the VisualDSP++ Flash Programmer:-

  • Using your current session, click on the "Tools" menu item in VisualDSP and select "Flash Programmer..." to load the “Flash Programmer”.
  • On the "Driver" tab of the programmer, click the "Browse..." button to browse for the driver file for the flash on your EZ-KIT.

Note:-  Drivers are available in the ‘Flash Programmer’ directory of the EZ-Kit you are using. For example:

<install_path>\<processor_family>examples\<processor_EZ KIT Lite>\Flash Programmer\

  • Select the (.dxe) file you require and click "Load Driver".
  • If successful you will receive a message in the bottom right of the screen otherwise the message that the Loading of the driver has failed.
  • Next Click on the "Programming..." tab.
  • "Pre-program erase options" should be "Erase affected".
  • Select the "File format"
  • Click on the "Browse..." button under "Data file" and select the Loader (.ldr) file you just created in the previous section and click "Program".
  • During Programming you can monitor the progress with the status bar.
  • Once complete and if successful you will receive a “Success: Program Complete” message
  • When complete you can close the Flash Programmer window.

Booting the EZ-KIT from Flash Memory

The last step involves configuring your board to boot from flash:-

  • First, close VisualDSP++.
  • Now configure the ‘Boot Mode’ Switch on your EZ-KIT to boot from flash memory.
  • Refer to the "Jumper and Switch Settings" of the appropriate Evaluation System Manual for details on correctly setting the 'Boot Mode'.
  • Evaluation System Manuals are available from VisualDSP++ Help or online at the following location:

Blackfin - http://www.analog.com/blackfin/manuals

SHARC - http://www.analog.com/sharcmanuals

  • Once the appropriate Boot Mode is set simply reset your board to boot it from flash.

Note: If you are using an EZ-KIT connected via the Debug Agent there is an alternate method for resetting the board and performing a boot without having to exit VisualDSP++:-

  • Go to the "Settings" menu in VisualDSP++ and choose "Boot Load", which will cause the board to boot from flash and run.
  • You can halt the processor at any time by clicking on the "Debug:Halt" menu item.
  • You can then load the symbols of your application using the "File:Load Symbols" menu item and selecting the dxe file. This will not change the state of the processor from where it was halted, but it will correlate debug information to what was booted from the flash.

For detailed examples on how to build a bootable loader file for flash memory please refer to the readmet.txt file of the 'Power_On_Self_test' project of the EZ-KIT you are using. These are located in: <install_path>\<processor_family>examples\<processor_EZ KIT Lite>


You will also find information on booting from flash memory in the attached file 'Booting from FLASH readme.txt which is available as part of the VisualDSP++ installation and can be found here: <install_path>\<processor_family>examples\

Related Application Notes

More specific details on booting from Flash can be found in the following EE-Notes. These are available from http://www.analog.com/ee-notes

Blackfin

EE-336: Putting ADSP-BF54x Blackfin Processor Booting into Practice

EE-314: Booting the ADSP-BF561 Blackfin Processor

EE-311: VisualDSP++ Flash Programmer API for Blackfin Processors.

EE-240: ADSP-BF533 Blackfin Booting Process

EE-239: Running Programs from Flash on ADSP-BF533 Blackfin Processors.

SHARC

EE-345: Boot Kernel Customization and Firmware Upgradeability on SHARC Processors

EE-280: In-Circuit Flash Programming on ADSP-2106x SHARC Processors.

EE-223: In-Circuit Flash Programming on SHARC Processors.

EE-231: In-Circuit Programming of an SPI Flash with SHARC Processors.

EE-177: SHARC SPI Slave Booting

 

Attachments:
BootingfromFlashreadme.txt.zip
  • standalone
  • flash
  • booting
  • visualdsp
  • evaluation_board
  • ez-kit
  • vdsp
  • Share
  • History
  • More
  • Cancel
Related
Recommended
Social
Quick Links
  • About ADI
  • ADI Signals+
  • Analog Dialogue
  • Careers
  • Contact us
  • Investor Relations
  • News Room
  • Quality & Reliability
  • Sales & Distribution
  • Incubators
Languages
  • English
  • 简体中文
  • 日本語
Newsletter

Interested in the latest news and articles about ADI products, design tools, training and events? Subscribe today!

Sign Up
Analog Logo
©1995 - 2023 Analog Devices, Inc. All Rights Reserved
沪ICP备09046653号-1
  • Sitemap
  • Legal
  • Privacy & Security
  • Privacy Settings
EngineerZone Uses cookies to ensure you get the best experience in our community. For more information on cookies, please read our Privacy & Security Statement.