5-5
Copyright 2012 Cirrus Logic, Inc.
DS886DB9
Programming a Serial Flash Device for Master or Slave Boot Operations
CDB47xxx User’s Manual
5.1.3 Using Micro-Condenser to Create and Load a Flash Image into the
DSP
5.1.3.1 Creating a Flash Image
To use the Micro-Condenser application to create and load a Flash image to the CS470xx DSP on the
CDB47xxx Board, follow these steps:
Follow these steps to create the Flash image:
1. Complete examples are included with the evaluation kits:
C:\CirrusDSP\micro_condenser\CS47XXX\example
2. Use DSP Composer to create the desired Composer Project Archive (.cpa) files. If more than one
setting of the DSP code is desired, you must save the desired settings as snapshots using the
snapshot manager (
Tools
Snapshots
). This has been done in the .cpa example files.
3. When you have created all the desired snapshots, create the initial setting. Note that the initial setting
is only generated when you press “Go”. This means you must change the configuration in DSP
Composer and then press “Go”, after that save your .cpa file.
4. Generate Deliverables using the drop-down menu option
Tools
Generate Deliverables
.
5. Repeat steps 1 through 3 for each .cpa file.
6. Specify the projects and snapshots that are to be included in the Flash image, which is accomplished
within an XML file, for the included example refer to:
C:\CirrusDSP\micro_condenser\projects\sample\flash_image.xml
7. Build the Flash image. Open the Console window, navigate to the example folder containing the file,
flash_image.xml
8. Run the file
create_flash_image.bat
, which contains the statement
flasher_micro.exe
flash_image.xml
which builds the Flash image.
9. Open flash_image.txt to see the new Flash image data.
5.1.3.2 Programming the Flash Image into the Flash Device
Cirrus provides the usb_flash.exe utility with the CDB47xxx Evaluation Kit and is used to program
memory storage devices. Run program_mcu_spi_flash.bat to program flash_image.txt into the
microcontroller's external SPI Flash. The program_mcu_spi_flash.bat file calls the usb_flash.exe utility to
program the flash_image.txt into the SPI Flash Device.