Hello,
running the nios2-flash-programmer.exe from the nios2 command console with the --debug option (nios2-flash-programmer -b 0x00 --debug ) the output is: Using cable "USB-Blaster [USB-0]", device 2, instance 0x00 Resetting and pausing target processor: OK no cfi table found at address 0x00000000 Original contents (after writing 0xF0 and 0xFF to address 0x00000000): 0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ 10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ 20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ 30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ 40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ Contents after writing 0x98 to address 0x000000AA: Same after writing 0x0098 to address 0x00000154: Same after writing 0x00000098 to address 0x000002A8: 0: FF FF FF FF 01 01 01 01 01 01 01 01 01 01 01 01 ................ 10: 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 ................ 20: 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 ................ 30: 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 ................ 40: 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 ................ Contents after writing 0x98 to address 0x00000055: Same after writing 0x0098 to address 0x000000AA: Same after writing 0x00000098 to address 0x00000154: Same after writing 0x98 to address 0x00000154: Same after writing 0x0098 to address 0x000002A8: Same after writing 0x00000098 to address 0x00000550: 0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ 10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ 20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ 30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ 40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ Ignored possible autoselect code FF-FF as no override data present in section [FLASH-FF-FF] Ignored possible autoselect code FFFF-FFFF as no override data present in section [FLASH-FFFF-FFFF] Ignored possible autoselect code FFFFFFFF-01010101 as no override data present in section [FLASH-FFFFFFFF-01010101] Leaving target processor paused --------------------------------------------------------------------- I've used override file, but I've received the same error message. I'm using: - Nios II version 9.1 - Flash Numonyx M29EW 1Gb - 8-bit mode I've just controlled: - pin configurations and connections - CE, OE, WE signals - address configuration in 8-bit mode - hardware configuration and SOPC file - reduced driver mode is disable (but this is a problem regarding Nios II code). Thanks in advance for your support. Best regards, Dany.链接已复制
9 回复数
Thanks for your answers.
# RST signal is ok and the address is right (0x00000000). Also setup, wait, hold times are right. I'll try to check again everything but if anybody have another idea please help me. @metalous About override file: it doesn't exist but you can create it looking "Nios II Flash Programmer User Guide" (Appendix A, Non-Standard Flash memories) and your flash datasheet.I don't remember which timings I found. It depends obviously of the CFI component AND the routing.
http://www.altera.com/literature/ug/ug_nios2_flash_programmer.pdf http://www.altera.com/literature/ug/ug_embedded_ip.pdf See "Offship Interface Peripherals" > Common Flash Interface > Configuration > "Timing Page" (p. 47) It is not so obvious. It demands a little work of searching in datasheet.