Pankaj Biswas

ram_flashWriteSector issue????

Discussion created by Pankaj Biswas on Jan 18, 2011
Latest reply on Jan 18, 2011 by TomE

Hi There,

 

I am really confused with my current situation.

I am trying to program this new flash device which is 2Meg flash part SST29c020PLCC32.

When it comes to Reading Entire sector before Erase and Write operation everything seems to be working ok.... that is...it reads entire sector into the Ram_buffer then Erases entire flash sector, and when it comes to Flash write sector which gets executed from RAM.... i cant write the odd address bytes,,,,, what gets written is:

At address: 0x27000 this is my configuration buffer:

@0x27000: 0x07 0xFF 0x45 0xFF

So every odd address is filled with 0xFF instead of real data.

 

This is driving me nuts :smileymad:

 

Some this else which confuses me is:

When RAM_WriteSector is defined as function pointer .... my init.s has defined the following:

                                    ds.w   1                     

RAM_WriteSector     ds.b    102    ; this is for 256 byte of data per sector

 

Do i need to change the alignment? or it is something else i need to worrry about?

 

Any suggestion or advise would be greatly appreciated?

Regards

Outcomes