Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi thosburke,
> Has anyone tried sharing a common databus and getting the flash to write/erase? Yes. One of my boards does this -- it works. > except trying to write to flash or erase a sector. If we do either of these things, > linux hangs forcing a power cycle to reset things. Just a guess ... but I've experienced similar problems -- it's related to the use of the toggle-bit: See: http://forum.niosforum.com/forum/index.php...wtopic=2302&hl= (http://forum.niosforum.com/forum/index.php?showtopic=2302&hl=) You might want to check the chip driver you're using and make sure it uses some technique _other_than_ the toggle bit (e.g. DQ7 polling). The last time I looked at this, CFI command set 2 was ok -- but I never checked the other chip drivers. > The flash device is the AM29LV128 in word mode, i.e. 16-bit interface BTW: The flash organization on my board was only 8-bits wide ... and it worked, so I never needed to make sure the NIOS2 mods in the code were clean for 16-bit devices: drivers/mtd/chips/cfi_cmdset_0002.c Regards, --Scott