Forum Discussion
Altera_Forum
Honored Contributor
16 years agoWriting to EPCS sectors
Hello, all, I have been struggling with this and I hope someone can shead some light. My project has a 3C25 along with a EPCS16 device. I would like to write some data to the EPCS16 some...
Altera_Forum
Honored Contributor
16 years agoHey jta1,
"erase block" is different than "sector/block". There are frequently only 1 or 2 erase blocks on most any flash device, whereas the number of sectors depends upon the sector size (commonly 128k or 64k) and overall size of the flash. In your case, I think you should set the "block_offset" to 0 and the data_offset to 20*sector_size....0x280000 (128k sector_size), 0x140000 (64k sector_size). I don't recall exactly what the sector size is for an EPCS 16 device, but I'm pretty sure you can look it up :-) Cheers, and Good luck! - slacker