FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5924 Discussions

restore_my_flash problem with my Nios II Development Kit Cyclone II Edition

Altera_Forum
Honored Contributor II
1,500 Views

Hi, 

I'm trying to restore my board following this instructions: 

 

1) Open command shell 

2) cd factory_recovery/niosII_cycloneII2c35 

3) ./restore_my_flash 

 

"restore_my_flash" command produce this error: 

 

Can't locate strict.pm in @INC (@INC contains: /usr/lib/perl5/5.8/cywin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cywin /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cywin /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) at resore_my_flash.pl line 18. BEGIN failed--compilation aborted at restore_my_flash.pl line 18.I work with Windows 7 pro 64 bit, Quartus II 10.0sp1 web edition and Nios II EDS 10.0sp1. 

After this error I installed "Strawberry Perl for windows" but the situation doesn't change. 

 

Thanks! 

Andrea
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
406 Views

Try with this command in the command shell from the folder containing the restore FLASH file provided, 

 

nios2-flash-programmer --base=(whatever applies) --cable='USB-Blaster [USB-0]' ******.flash 

 

Good luck.
0 Kudos
Altera_Forum
Honored Contributor II
406 Views

I'm trying with 

 

nios2-flash-programmer restore_cycloneII_2c35.flash 

 

I omit "--cable" becouse I've only one USB Blaster, but I don't know what "FLASH Base address" is. 

 

Anyway I suppose that it is a workaround, how can I solve my problem? 

 

Thanks a lot!
0 Kudos
Altera_Forum
Honored Contributor II
406 Views

I found in the documentation of my eval kit that I needed to use a particular base address in the flash for loading my .flash file. That's what I used. 

 

I suppose that the 'restore_my_flash' shell script was written by you. While entering it in the command shell, try entering it as './restore_my_flash.sh'. Might help. good luck.
0 Kudos
Altera_Forum
Honored Contributor II
406 Views

"restore_my_flash" is not my script. 

I follow the "Appendix A. Restoring the factory Configurations" from the "Nios Development Board - Cyclone II edition" reference manual. 

 

 

--- Quote Start ---  

To reprogram the flash memory on the development board, perform the 

following steps: 

1. Open a Nios II command shell. 

On a Windows PC, click Windows Start, point to Programs, Altera, 

Nios II EDS <installed version>, and then click Nios II Command 

Shell. 

2. From the examples directory, change to the factory_recovery 

directory for your development kit. 

cd factory_recovery/niosII_cycloneII_2c35 

3. Run the flash-restoration script: 

./restore_my_flash 

4. Follow the script's instructions. 

--- Quote End ---  

 

The procedure is simple, I only have to launch the script, nothing else. I don't understand what is wrong.
0 Kudos
Altera_Forum
Honored Contributor II
406 Views

I decided to install the software version 8.0 instead of 10.0 and it works. 

Thanks for help. 

bye
0 Kudos
Reply