Forum Discussion
Altera_Forum
Honored Contributor
8 years agoI haven't looked through your code in detail. However, I notice you've defined parameters for the read and write commands for the FLASH device, but not the write enable command. Without this you'll never be able to write to the device. So it follows that you'll only ever read out 1's.
I suggest you work with the Read Identification command. This only requires you to issue one byte for which you'll get two back. This command works stand alone, no need for any write enable. That way you can make 'SO' do something and prove your low level code without the need to worry about the higher level command sequences the device needs to be written to. Cheers, Alex