Forum Discussion
Altera_Forum
Honored Contributor
9 years agoIn case anybody else runs into this, for some reason, the Nios II flash programmer is not currently (Quartus version 16.1) compatible with the flash on this board. Intel standard CFI uses 0x40 command to initiate writes, but the Micron flash on this board for some reason uses 0x41. Until the flash programmer is updated, it cannot be used for writes since an override file cannot change the command to 0x41. However, you can still do reads using an override file like this one:
[FLASH-FFFF0089-FFFF88B0] CFI[0x13] = 0x01 CFI[0x14] = 0x00 You'll need to use the --override, --read, and --read-bytes options with nios2-flash-programmer to do it, but it works. I was, however, able to put a .flash file at 0x02d00000 using the Board Update Portal factory image. It requires web access (over ethernet) to the board. You can either connect the board to a hub or switch on your network so it can get an IP address or, like I did, set up a local DHCP server on my laptop to directly give the board an IP address. One issue with this is that you cannot access user hardware area 2 (0x05800000). No matter what --location address you specify when using bin2flash, the Board Update Portal always puts the file at 0x02d00000 in flash memory.