- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.Link Copied
9 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Did you check the flash# RST signal ? Are you sure your flash is at address 0x00000000 ? Regards, Franck.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, did you check setup, wait, hold times ?
They are explained in an altera user guide.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Where can I find Override file to edit it please ?
Thanks in advance.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've solved the problem!
Cheking the flash configuration in SOPC Builder I've found a mistake in flash "access time": it didn't match with the value in datasheet so the flash couldn't work.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dany, hello, could say what timings do you have, could you send you projecto to the mail&
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks for your information. I've solved the problem, too~!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, 苦瓜不甜! Can you tell me what timings do you have?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page