Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Discussion Groups

Discussion Groups | Analog Devices DSPs | Writing external Flash

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

Writing external Flash - madhavigb - Aug 3 12:46:00 2004



Hello
I have problem in writing Atmel external flash (512 x8) using
external port of adsp2191.
I am able to read flash contents but not able to write.

My EMI settings are as follows:
EMI_SET_WR:
IOPG = External_Memory_Interface_Page ;
AX0 = 0x0070;
IO(EMICTL) = AX0;

ax0 =0x0DFF;
io(BMSCTL) = ax0;

IOPG = External_Access_Bridge_Page ;
ax0 = 0x0004 ; //for dm data format
IO(E_STAT) = AX0;
Thanks in advance.
Madhavi





(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: Writing external Flash - Jaime Andres Aranguren Cardona - Aug 4 15:28:00 2004

Hi,

Which part are you using for Flash memory?

JaaC --- madhavigb <> wrote:

> Hello
> I have problem in writing Atmel external flash
> (512 x8) using
> external port of adsp2191.
> I am able to read flash contents but not able to
> write.
>
> My EMI settings are as follows:
> EMI_SET_WR:
> IOPG = External_Memory_Interface_Page ;
> AX0 = 0x0070;
> IO(EMICTL) = AX0;
>
> ax0 =0x0DFF;
> io(BMSCTL) = ax0;
>
> IOPG = External_Access_Bridge_Page ;
> ax0 = 0x0004 ; //for dm data format
> IO(E_STAT) = AX0; >
> Thanks in advance.
> Madhavi >
> _____________________________________
> /groups.php3
>
> Yahoo! Groups Links
=====

Jaime Andrés Aranguren Cardona

__________________________________





(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: Writing external Flash - madhavi b - Aug 5 8:04:00 2004

Hi,

Boot memory space of ADSP2191 is used for flash
memory AT29c040A [data(0-7) and Addrress(0-18) lines
, BMS as chip select,]
On my card, I want to write to boot memory space (
Flash AT29c040A) at rumtime.
To access adress 0x00000 of flash memory,
I am accessing on ADSP2191 as DMPG1 = 0x08;
I1 = 0x0000; m2=0;..
i.e, mapping of flash addresses starts at 0x80000 on
adsp

For Programming Atmel, I have to write sequence of
code to ADSP..
1) to load data 0xAAH into address 05555H
corresponding my code is..
DMPG1 = 0x08;
I1 = 0x2AAA;
M1 = 0;
L1 =0;
//DATA 0xAA00 INTO ADDRSS 05555
AR = 0XAA00;
DM(I1,M1) =AR;

2)to load data 0x55H into address 0x2AAA
DMPG1 = 0x08;
//FWR_ADDR2== 0x1555 = 2AAA/2; on flash address is
0x2AAA = divide by 2 on adsp is 1555
I2 = 0x1555;
M2 = 0;
L2 =0;
//DATA 0x5500 INTO ADDRSS 02AAA
AR = 0X0055;
DM(I2,M2) =AR 3) load data 0xa0 into 0x05555 for this I am loading
0xA000 at DM(I1,m1).

4) load sector. 256 bytes i am writing to DM.
5) pause write cycle time(10ms). (here i am pausing
for 10ms /more.. i think for waiting more than 10ms
should not affect..?) Processor adsp2191 has 160 MHz core and 80 MHz
peripheral clock.

Now I am not getting where problem is actually,
whether it is
1) Memory interface timing..?..(latent cycles of
external memory..)
2) not able to address correctly..? [ but using same
addressing technique , i am able to read from flash..
so i think there should not be problem..]

Thanking you in advance.
Madhavi --- Jaime Andres Aranguren Cardona
<> wrote:

> Hi,
>
> Which part are you using for Flash memory?
>
> JaaC > --- madhavigb <> wrote:
>
> > Hello
> > I have problem in writing Atmel external flash
> > (512 x8) using
> > external port of adsp2191.
> > I am able to read flash contents but not able to
> > write.
> >
> > My EMI settings are as follows:
> > EMI_SET_WR:
> > IOPG = External_Memory_Interface_Page ;
> > AX0 = 0x0070;
> > IO(EMICTL) = AX0;
> >
> > ax0 =0x0DFF;
> > io(BMSCTL) = ax0;
> >
> > IOPG = External_Access_Bridge_Page ;
> > ax0 = 0x0004 ; //for dm data format
> > IO(E_STAT) = AX0;
> >
> >
> >
> > Thanks in advance.
> > Madhavi
> >
> >
> >
> >
> =====
>
> Jaime Andrés Aranguren Cardona

__________________________________




(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )