Altera_Forum
Honored Contributor
15 years agoFLASH command via NIOS IO.h
Hi,
I'd like to activate dynamic protection sectors ( DYB ) of a 16 bits CFI FLASH SG29GL256N, but I'm facing issues with the IOWR_16DIRECT command of the io.h : when I look the FLASH signals with Signal Tap, writes to odd addresses are OK but writes to even ones don't activate flash signals. The config is the following : - Quartus 9.1, EDS 9.1 - NIOS access to FLASH via registered Tri State Bridge - FLASH address bus [23:0] connected to NIOS FLASH address bus [24:1] in VHDL - WR/RD OK when FLASH accessed by classic HAL functions I don't use the IOWR command because of the 32 bit alignment (2 successives accesses are generated to the FLASH to produce a 32 bit data write). So, following C code produces activation of relevant ad, data, ce_n and we_n signals : IOWR_16DIRECT(CFI_FLASH_BASE,0x0555*2,0xAA); But following produces nothing : IOWR_16DIRECT(CFI_FLASH_BASE,0x0556*2,0xAA); Does anybody have an idea ? Thanks in advance.