Hi to all,
I discovered the effect but not the cause for the 1GB memory. When using the reading command IORD_ALTERA_AVALON_CF_IDE_DATA, only odd registers are read!!! So all the informations (sectors, cylinders, etc...) are completly wrong and nothing works. Maybe this is due to the use of CS1 and CS2 (chip select). Reading at
http://www.freeweb.hu/vfx/avr/download/cf.asm (
http://www.freeweb.hu/vfx/avr/download/cf.asm) I found out the CS1 should stay low and CS2 high in order to read even and odd bytes serially; but this is exactly what the NIOS2 board outputs...
Please let me know if you have some ideas!
Thank you,
Davide