Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21607 Discussions

Flash problem and "No CFI table found"

Altera_Forum
Honored Contributor II
2,039 Views

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.
0 Kudos
9 Replies
Altera_Forum
Honored Contributor II
1,049 Views

Hello, 

 

Did you check the flash# RST signal ? 

Are you sure your flash is at address 0x00000000 ? 

 

Regards, 

Franck.
0 Kudos
Altera_Forum
Honored Contributor II
1,049 Views

Hi, did you check setup, wait, hold times ? 

They are explained in an altera user guide.
0 Kudos
Altera_Forum
Honored Contributor II
1,049 Views

Where can I find Override file to edit it please ? 

 

Thanks in advance.
0 Kudos
Altera_Forum
Honored Contributor II
1,049 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
1,049 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
1,049 Views

Dany, hello, could say what timings do you have, could you send you projecto to the mail&

0 Kudos
Altera_Forum
Honored Contributor II
1,049 Views

thanks for your information. I've solved the problem, too~!

0 Kudos
Altera_Forum
Honored Contributor II
1,049 Views

Hello, 苦瓜不甜! Can you tell me what timings do you have?

0 Kudos
Altera_Forum
Honored Contributor II
1,049 Views

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.
0 Kudos
Reply