Forum Discussion
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 signal...
Altera_Forum
Honored Contributor
15 years agoThanks for your answer.
I understand the theory and I think it is applicable to the IOWR command (2 cycles seen at STP). This is why I use IOWR_16DIRECT (one cycle seen) to match with FLASH sequence. But when I execute the previous C code in debug mode, step by step, the Signal Tap (condition ce_n = 0 and we_n = 0) triggs on the first line but not on the second one (and I'm sure I don't miss a cycle ;-) ). In fact IORW is OK to access every address (odd or even) and nok because of the second cycle and for IOWR_16DIRECT, it's the invert ...