Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

CFI Flash ist not programmable

Hello,

I want to use a CFI compatible Flash (M29W800DT) for the programming code of Nios and for a filesystem. In SOPC Builder I attached a cfi_flash and a tri_state_bridge. The cfi_flash has a Address Width of 20 and a Data Width of 8, which fits to the schematic (attached). In the timing setup everything is 200ns.

In the Flash Programmer I got this Error Log:

# !/bin/sh# #  This file was automatically generated by the Nios II IDE Flash Programmer.# #  It will be overwritten when the flash programmer options change.# 
cd D:/Altera/Test/software/sw_0/Debug
#  Creating .flash file for the FPGA configuration
"$SOPC_KIT_NIOS2/bin/sof2flash" --offset=0x0 --input="D:/Altera/Test/sw.
sof" --output="sw.flash" 
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert D:/Altera/Test/sw.sof Test.rbf
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
    Info: Peak virtual memory: 72 megabytes
    Info: Processing ended: Tue Oct 26 12:51:33 2010
    Info: Elapsed time: 00:00:02
    Info: Total CPU time (on all processors): 00:00:01
#  Programming flash with the FPGA configuration
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --base=0x00000000 --instance=0 "sw.flash"
Using cable "USB-Blaster ", device 1, instance 0x00
Resetting and pausing target processor: OK
              : Checksumming existing contents          
00000000      : Reading existing contents               
Checksums took 0.5s                                        
00000000 ( 0%): Erasing                                 
Erased 64kB in 0.0s                                    
00000000 ( 0%): Programming                             
Program failed at offset 10                                         
Leaving target processor paused
#  Creating .flash file for the project
"$SOPC_KIT_NIOS2/bin/elf2flash" --base=0x00000000 --end=0xfffff --reset=0x0 --in
put="sw_0.elf" --output="cfi_flash_0.flash" --boot="D:/Install/Altera/10
.0/ip/altera/nios2_ip/altera_nios2/boot_loader_cfi.srec"
#  Programming flash with the project
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --base=0x00000000 --instance=0 "cfi
_flash_0.flash"
Using cable "USB-Blaster ", device 1, instance 0x00
Resetting and pausing target processor: OK
              : Checksumming existing contents          
00000000      : Reading existing contents               
Checksums took 0.3s                                        
00000000 ( 0%): Erasing                                 
Erased 64kB in 0.0s                                    
00000000 ( 0%): Programming                             
Program failed at offset 0                                         
Leaving target processor paused
#  Creating .flash file for the datafile
"$SOPC_KIT_NIOS2/bin/bin2flash" --base=0x00000000 --location=0x80000 --input="D:
/Altera/files/FileSystem.zip" --output="FileSystem.flash"
#  Programming flash with the datafile
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --base=0x00000000 --instance=0 "Fil
eSystem.flash"
Using cable "USB-Blaster ", device 1, instance 0x00
Resetting and pausing target processor: OK
              : Checksumming existing contents          
Checksums took 0.2s                                        
Erase not required
00080000 ( 0%): Programming                             
Program failed at offset 80000                                         
Leaving target processor paused

What can I do?

Thank you very much!