Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

Flash programmer problem-No CFI table found

Altera_Forum
Honored Contributor II
4,163 Views

My board's extend flash is AM29LV320.when i use flash programmer to download the code,it shows the following prompt: 

Using cable "ByteBlasterII [LPT1]", device 1, instance 0x00 

Resetting and pausing target processor: OK 

Reading System ID at address 0x00404040:  

verified 

No CFI table found at address 0x00200000 

Leaving target processor paused 

 

Can anyone help me in sorting out this issue? 

THS! 

Handsome
0 Kudos
15 Replies
Altera_Forum
Honored Contributor II
2,208 Views

Try running the nios2-flash-programmer.exe from the nios2 command console with the --debug option and look at the CFI table. The most likely cause of this problem is the address lines are off by one i.e. the SOPC A0 bit should go to the A(-1) bit of the Flash.

0 Kudos
Altera_Forum
Honored Contributor II
2,208 Views

Have you selected "Byte" or "Word" mode for your flash ??? Type following command in nios2 command console:  

nios2-flash-programmer --base=0x00200000 --debug  

 

If you see the cfi table, then you can be shure that your flash is correct connected.
0 Kudos
Altera_Forum
Honored Contributor II
2,208 Views

hi,i connected EA[21..0]with A[20..0]of flash----AM29LV320,and the pin-EA0 is floating!but it still dosen't work!what can i do!it's so annoying!

0 Kudos
Altera_Forum
Honored Contributor II
2,208 Views

Hi,Maestro666,as your advice,i typed the commond----nios2-flash-programmer --base=0x00000000 --debug  

It still shows that:No CFI table found at address 0x00000000. 

I locked the base_address of flash,make it to 0x00000000. 

BTW,I made pin--WP/ACC and NC(13-pin) floating. 

t(setup)=50ns;t(wait)=40ns;t(hold)=35ns; 

 

Waiting for your reply! 

Thanks!
0 Kudos
Altera_Forum
Honored Contributor II
2,208 Views

Hello handsome, WP/ACC could be left floating, because there is a pull up resitor inside. 

You have set the base address to 0x00000000, correct ? 

Set t(setup), t(hold) and t(wait) to 200ns, we can increase the speed later! 

Have you connected pin BYTE to VCC or GND ??? It's really important to know that!
0 Kudos
Altera_Forum
Honored Contributor II
2,208 Views

Hi,Maestor666,your reply is quite in time,thanks! 

yes ,i have set base address to 0x00000000,and connected pin byte to vcc(3.3v),and between them i added a r-4.7k. 

BTW,i set it to work in WORD-mode,so address width is 21-bit(i don't use the pin-13,someone use it,and set address width to 22-bit,but i think this doesn't matter ),data width is 16-bit. 

pin15(ry/by)is also floated! 

https://www.alteraforum.com/forum/attachment.php?attachmentid=1316  

 

https://www.alteraforum.com/forum/attachment.php?attachmentid=1317  

 

https://www.alteraforum.com/forum/attachment.php?attachmentid=1318  

Handsome
0 Kudos
Altera_Forum
Honored Contributor II
2,208 Views

I have set all the time to 200ns,but it also dosen't work!v..........

0 Kudos
Altera_Forum
Honored Contributor II
2,208 Views

Take a look at the collateral for the Nios II 2c35 development kit (http://http://www.altera.com/products/devkits/altera/kit-nios-2c35.html), which has a very similar flash. 

 

I think you need to be connecting the BYTE signal and dropping the two least significant address bits. 

 

Cheers, 

 

- Ura
0 Kudos
Altera_Forum
Honored Contributor II
2,208 Views

thanks for your reply!i'll make a try!

0 Kudos
Altera_Forum
Honored Contributor II
2,208 Views

thanks for your reply,i'll make a try!Hope it will work!

0 Kudos
Altera_Forum
Honored Contributor II
2,208 Views

Hi handsome, I hope R11 isn't soldered... 

You doesn't need to connect pin-13 and pin-15 !!! 

You wrote (and set address width to 22-bit), I think that isn't a good idea to give your processor a wrong information about your ram. Take a look at the attachment and try it...
0 Kudos
Altera_Forum
Honored Contributor II
2,208 Views

hello,maestro,i found the real problem.when the flash_oe is low level,its voltage is 1.5V,what's the reason?thanks! 

handsome
0 Kudos
Altera_Forum
Honored Contributor II
2,208 Views

Hello handsome, solder out R7 to R9 and try again... 

Let's see whether it works...
0 Kudos
Altera_Forum
Honored Contributor II
2,208 Views

I have solder out R8 and R9,Flash_ce is normal,but Flash_oe and Flash_ce is the same result(low voltage is about 1.5V,can't below it).But when i use these pins alone,its low voltage is normal(about 0.4V).I can't fingure out what's the real reason.Is it the reason of CFI core?

0 Kudos
Altera_Forum
Honored Contributor II
2,208 Views

hi,Maestro,I have a good news to tell u!It works normally now!The real reason is that:the pin-WE is not soldered very well! 

Thanks for your kindly help and best regards!
0 Kudos
Reply