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.
Some this else which confuses me is:
When RAM_WriteSector is defined as function pointer .... my init.s has defined the following:
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?