I looked at memtest.c and it seems like my setup is nearly identical. i just dont go about discovering all the flash details like the example. I've checked the values using nios2-flash-programmer --debug.
For a CFI with address range of 0x05000000 to 0x05FFFFFF, shouldnt the code I posted work for writing 0x20000 values to the last block? Shouldnt the code example given in the software dev handbook (p 6-22) work?! Do I need finegrained access?
As for the NEEK/An429 example... thats a little too much to follow to be honest... I just want to write/read from a region on the flash that I know exists without pulling my hair out.