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

    Improve Smart Building Energy Efficiency with Industrial Ethernet Controlled Air Conditioning (HVAC) Systems

    Recent Discussions

    • Activity: Simple Op Amps, For ADALM1000 Fig. 1.3 Buffering example
    • ADALM-PLUTO [NETWORK] vs [USB_ETHERNET]
    • Using buffer size different from 2**n
    • ADALM1000 Pixelpulse feature Source Voltage / Measure Current explanation
    • function USB plug Pluto

    Places

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

    Latest Webinars

    • Improve Smart Building Energy Efficiency with Industrial Ethernet Controlled Air Conditioning (HVAC) Systems
    • Sustainable Motion Control Solutions for High Performance Servo Drives
    • 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
    View All Webinars
  • Community Hub

    Challenge Yourself!

      KCC's quizzes AQQ235 about a bipolar common emitter amplifier - a kind proposal from our colleague Martin Walker
    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

    Empowering Surveillance Cameras To Capture A Scene Without Being Heard

     

    Mastering The Metrics Makes Specifying Encoders Simpler

    Latest Blogs

    • Understanding Secret Key Cryptography Without Formulas
    • 3 Reasons Why IO-Link is Changing Smart Factory Decision Making
    • EMC Mitigation: The Finer Points of Ferrite Beads
    • Introducing an X Band Phased Array Exploration Platform – the “Phaser”!
    • How to Start with a Solution – Interactive Signal Chains
    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
Processors and DSP
Processors and DSP
Documents Speeding up flash programming using the command-line device programmer (cldp)
  • Forums
  • FAQs/Docs
  • Members
  • Tags
  • More
  • Cancel
  • +Documents
  • +ADAU 1701: FAQ
  • +ADSP-21160M: FAQ
  • +ADSP-21363: FAQ
  • +ADSP-21368: FAQ
  • +ADSP-21369: FAQ
  • +ADSP-21469: FAQ
  • +ADSP-21489: FAQ
  • +ADSP-2160: FAQ
  • +ADSP-BF522: FAQ
  • +ADSP-BF531: FAQ
  • +ADSP-BF532: FAQ
  • +adsp-bf533: FAQ
  • +ADSP-BF534: FAQ
  • +ADSP-BF535: FAQ
  • +ADSP-BF536: FAQ
  • +ADSP-BF537: FAQ
  • +ADSP-BF538F: FAQ
  • +ADSP-BF539: FAQ
  • +ADSP-BF542: FAQ
  • +ADSP-BF544: FAQ
  • +ADSP-BF561: FAQ
  • +adsp-bf561: FAQS
  • +adsp-bf609: FAQS
  • +ADSP-BF60x: FAQ
  • +ADSP-BF70x: FAQ
  • +ADSP-CM408F: FAQ
  • +ADSP-SC58x: FAQ
  • +ADSP-TS001: FAQ
  • +ADSP-TS101S: FAQ
  • +ADSP-TS201S: FAQ
  • +CCES: FAQ
  • +cm40x: FAQ
  • -Command-line device programmer (cldp): FAQS
    • Speeding up flash programming using the command-line device programmer (cldp)
  • +Compiler: FAQ
  • +Connected Devices Virtual Conference: FAQS
  • +Disassembly Window: FAQ
  • +Enabling Product-Specific Push Notifications: FAQS
  • +ICE-1000: FAQ
  • +JEDEC J-STD-020: FAQ
  • +Misra rule checking: FAQ
  • +Nesting Interrupt: FAQ
  • +Power Domains: FAQ
  • +PROCESSORS AND DSP SUPPORT COMMUNITY: FAQS
  • +Questions 536 / VDK: FAQS
  • +RoHS-Compliant: FAQ
  • +Updating ICE-1000/2000 firmware with OpenOCD: FAQ
  • +VDSP-BLKFN-PC-FULL: FAQ
  • +VDSP-TS-PC-FULL: FAQ
  • +VDSP: FAQ
  • +VISUALAUDIO: FAQ

Speeding up flash programming using the command-line device programmer (cldp)

There have been multiple comments/questions concerning the speed of the cldp programming. The provided flash programmer drivers that are used to program flash on Analog Devices Inc EZ-KITs are not optimized for programming speed. They are merely given as an example of how to program a flash device using the cldp and also to allow programming out of the box. There are definitely ways to speed up the programming process and those options will be outlined in this FAQ.

Increase buffer size

Most default ldf files only allow for a certain size heap which often limits the buffer size that the cldp can program during 1 transaction. For instance if a file is 1000 bytes and the buffer size is only 10 then 100 commands have to be sent from the cldp to the flash programmer driver running on the processor in order to transfer the entire buffer. It may be possible to increase this so that only 1 transaction is needed or maybe a handful. Users will have to determine the correct buffer size that gives the best performance boost. The buffer size variable that will need to be changed in the flash programmer driver is AFP_Size. Since there is only a certain amount of heap space by default and the buffer is created dynamically, users will have to take care to make sure they are not allocating too much memory for the amount of heap space that is allowed. Otherwise users would have to increase the heap size in the ldf file.

 

Increase SPI clock

The SPI clock used in the flash programmer driver may not be the max SPI clock for the device being programmed. The specification for the flash device found on the EZ-KIT should be used in order to find the max SPI clock allowed when programming the flash device. Once the max SPI clock is identified, reviewing the Hardware Reference manual will help with configuring the clock on the processor.

 

Change programming instruction

Many flash devices offer multiple programming options. Often the normal page program instruction is used but there may be other options that are faster. Consulting the instruction set table of the flash specification for other faster programming options would be recommended. There may be a dual page program or quad page program option available or possibly some other faster mechanism for programming flash that can be used.

 

Don't use -verify (v) option

By default when programming the verify option is NOT set. Please make sure that this option has not been added to the command line as it will slow down programming.

 

Upgrade emulators

If using the ICE-1000, ICE-100b, or USB-ICE emulators then upgrading to an HPUSB-ICE or ICE-2000 (latest emulator) would speed up programming as well.

  • 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.