--- Quote Start ---
Hi.. I am trying to write/ read from the flash. I am working on an Altera DE2 board. I am just trying to write some value (8-bit) in into a fixed memory location in a flash, and am trying to read it. I am able to read values from flash code but not able to write the values I want.
i.e The value being read is not the value I wrote in that memory, which shows that 'write' operation is not taking place.
--- Quote End ---
Are you using the correct flash write command or are you expecting the device behaves like a sram? Flash memory is not a sram: except reads, any other operation requires a special command sequence to be issued with a certain number of writes on specific addresses.
--- Quote Start ---
I guess there are some series of operations to be performed before writing to a flash. I am not able to find any material on that.
--- Quote End ---
Google the flash device part number and you'll find the datasheet. Read it and you'll get all the command codes for erase,write,identification,etc