Wiki

This version (12 May 2021 12:20) was approved by Prasad Kamath.The Previously approved version (11 May 2021 11:39) is available.Diff

Click here to return to the Master Control Port page

Flash Programmer



Description


This module provides support to write raw data to the external flash memory using I2C/SPI. The I2C/SPI write is performed during the initialization before the audio processing in the schematic is started.

Usage


Writing a Wav file to SPI EEPROM using Flash Programmer (ADAU1452)

  • Add Flash Programmer module to the schematic.
  • Configure SPI parameters in the Control Port Properties window. (Below window shows SPI configuration required to write to EEPROM in EVAL-ADAU1452MINIZ board)



  • Select Binary mode
  • Select the Wav file to be written (Make sure size of the wav file is not greater than the size of EEPROM. In the case of EVAL-ADAU1452MINIZ, size of wav file should not be greater than 128 KB)
  • Press OK. Then Link compile download.
  • Press Write to write the data to the EEPROM
  • The Output window indicates the progress of writing to the EEPROM



  • To verify the data written to the flash, click on the read button. The output window will indicate the verification status



Targets Supported

NameADSP-214xxADSP-215xx/ADSP-SC5xxADAU145x/146x
—————————————-——————————————————————————————--——————————————-
Flash Programmer Not Supported Not Supported Sample


Pins


None

Configurable Parameters

GUI Control NameDefault ValueRangeFunction Description
—————————————————- ———————- —————————————— ———————————————————————-
Protocol SPISPI/I2C Master Control Port Protocol
SPIBitrate100kHZ 100 kHZ - 100000 kHZ (for SPI)/ 400 or 800 or 1000 kHz (for I2C)SPI/I2C Speed
SPISlaveSelect0 0-6 Slave Select for the SPI. Register window should be configured to match this selection.Please refer the note below.
SubAddressBytes2 1-4 Number of address bytes excluding the read/write command
PageSize128KB0-32MBPage Size of Flash
SPIModeMode 3 Mode0/Mode3SPI operation mode
SPICommandLength10-255Command Bytes (Number of bytes required for command)
SPIWriteInstruction20-255 Instruction value for a write operation (0x0 for ADI audio devices, typically 0x2 for eeprom/flash)
SPIReadInstruction30-255Instruction value for a read operation (0x1 for ADI audio devices, typically 0x3 for eeprom/flash)
SPIWriteEnableInstrcution60-255Instruction value for device write-enable operation
IsSPIBlockProtectionUnlockEnabledfalsetrue/false Block Protection Unlock enable
SPIBlockProtectionUnlockInstruction1520-255Block Protection Unlock command for SPI falsh devices. This is an optional command. This can be disabled.
SPIChipEraseInstruction960-255Instruction value for device erase operation
SPIChipEraseTime5 sec1-600 secTime required for chip erase operation
IsSPIBlockEraseInstructionEnabledfalsetrue/falseBlock erase enable
SPIBlockEraseInstruction2160-255Block/Sector erase command for SPI falsh devices. This is an optional command. This can be disabled.
SPIBlockAddressToErase00-16777215Block/Sector address to erase SPI falsh devices by block/section. This is an optional command. This can be disabled by disabling the Block/Sector Ersae Insutruction
FilePath_FileX NA NA Raw data to be written to the flash (Can be ascii text file/ binary files like wav file)
DataFileType ASCII ASCII/Binary Mode to write the file. Audio files like .wav should be written in binary mode
IsConfigurableAddress Disabled Enable/Disable Enable/Disable the start address for each files
StartAddress_FileX 0 0 - Maximum of FLASH/EEPROM Size in bytes(Increment by page size) Write the data in the flash/e2prom from the specified address

Any change in these SPI/I2C configuration parameters requires a recompilation.


DSP Parameters


Not applicable

DSP Parameter Computation


Not applicable

resources/tools-software/sigmastudiov2/modules/mastercontrolport/flashprogrammer.txt · Last modified: 11 May 2021 16:26 by Prasad Kamath