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

error -- Flash & NIOS2

Altera_Forum
Honored Contributor II
4,223 Views

Hello to all, 

 

i built a stand alone electronics with an EP2C8 fpga and an 2MB flash-ram. I flashed my EPCS4 device with my current design. By the way, i purchased a license for MegaCore functions and i have installed the license. 

 

Now i want to flash the ram with the NIOS2 Flash Programmer, but it doesn't work. I got always the same error message.:( 

 

#!/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 C:/altera/FPGA_Projecte/Prj_ARCUS-ORBITER_FlashTest/software/hello_world_0/De 

bug 

# Creating .flash file for the project 

"$SOPC_KIT_NIOS2/bin/elf2flash" --base=0x00200000 --end=0x3fffff --reset=0x40200 

0 --input="hello_world_0.elf" --output="cfi_flash.flash" --boot="C:/altera/81/ip 

/altera/nios2_ip/altera_nios2/boot_loader_cfi.srec" 

# Programming flash with the project 

"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --base=0x00200000 --sidp=0x00405010 

--id=1624484866 --timestamp=1246526067 "cfi_flash.flash" 

There are no Nios II processors available which match the values specified. 

Please check that your PLD is correctly configured, downloading a new SOF 

file if necessary. 

 

Have you guys any suggestions to solve this problem??? 

 

Many thank's for your help... 

 

Manuel 

0 Kudos
22 Replies
Altera_Forum
Honored Contributor II
367 Views

I'm afraid I'm out of ideas... The fact that you can read the CFI table in debug mode shows that the write signal is correctly connected to the flash, as you need it to go into CFI mode. 

I don't think that it's necessary to create a pulse on the reset pin of the flash, but it certainly wouldn't hurt ;)
0 Kudos
Altera_Forum
Honored Contributor II
367 Views

No problem... I let you know whitch mistake it was, and thank's for your help !!!!:)

0 Kudos
Reply