Reply by maciejkulesza May 11, 20052005-05-11
Hi,
I and my colleague have developed audio DSP system with Analog ADSP-
21262 (ADSP21262 EZ-Lite Kit Rev 1.5). We would like to program the
memory on our PCB using internal AnalogDevices VisualDSP++ Flash
Programmer (VisualDSp++ 3.5 updated November 2004). First, we have
disabled the FLAG1_SW1 of the SW9 to disconnect the DSP FLAG1 from
the appropriate switch. Now, FLAG1 is used as a SPI Chips Select for
Flash memory on our PCB. We have connected all of the necessary SPI
signals and also power supply through SPI header, and Expansion
Interface J2. As far as we are concerned everything is wired
correctly.

To enable the programming of the external flash with Analog "driver"
the appropriate changes in SPI settings were done.

bool SetupSPI( const int spi_setting )
{
//----
//SETUP SPI SUBROUTINE (1 Byte)
//Sets up the SPI for mode specified in spi_setting
//Inputs - spi_setting
//Outputs- none

// 1111 - reserved
// 1110 - Drives the value of FLG. If cleared the
// coresponding flag will beselected (3-0)
// 0000 - 1 bit read only + 3 reserved
// 0001 - DSxEN - selects the coresponding flag as a pin
// ton be used for SPI slave-select(FLG3-0)
// We are going to use FLAG1_SW1 with is the input from
// the switch by default. It is neccessary to
// disconnect the switch from the DSP FLAG pin - turn
// off the 1/6 knob of SW9 to do this
// The SPI Flag should be connected through SPI Header
// set cSPIFLG = 0xFD02 (1111 1101 0000 0010) !!!!

cSPIFLG = 0xFD02; //0xFE01 - default for AnalogD
//Evaluation Board!!!!!!!!!!!
cSPIBAUD = BAUD_RATE_DIVISOR;
cSPICTL = spi_setting;
return 1;
} The only difference between our project and the Analog Evaluation
Board is the flash memory size. In opposite to Analog At25F512 I
used the At25F1024. The driver operates correctly during
initialization and programming - the chip ID is read, and the *.ldr
file is loaded. The problem occurs during verification.

Does anybody know how to overcome this problem?

Please help

Marek & Maciej