DSPRelated.com
Forums

writing to flash EZKIT 537

Started by eran...@phnx.co.il May 22, 2006
Hi Everybody

why cant I write to this flash address 0x2000000
but the program does succeed to write to the sdram address 0x0203000
on the EZKIT 537
thanks
eran

see program :

#include
.section program;
.global _main;
_main:/*{*/

r2 = 2(z);
r3 = 3(z);
r1 = r2 + r3;
p0.h = 0x0203; // sdram
// p0.h = 0x2000; flash
p0.l = 0x0000;
//w[p0] = r1.l;
[p0] = r1;
flush[p0];
r4 = w[p0](z);

/*}*/
_main.end:
rts;
On Mon, 22 May 2006 e...@phnx.co.il wrote:

> Hi Everybody
>
> why cant I write to this flash address 0x2000000
> but the program does succeed to write to the sdram address 0x0203000
> on the EZKIT 537
> thanks
> eran
>
> see program :
>
> #include
> ..section program;
> ..global _main;
> _main:/*{*/
>
> r2 = 2(z);
> r3 = 3(z);
> r1 = r2 + r3;
> p0.h = 0x0203; // sdram
> // p0.h = 0x2000; flash
> p0.l = 0x0000;
> //w[p0] = r1.l;
> [p0] = r1;
> flush[p0];
> r4 = w[p0](z);

Normally you can't just write to flash. You have to toggle it
at specific addresses with specific data in a specific sequence.
The flash ram manual for your chip should explain the details.

Patience, persistence, truth,
Dr. mike