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
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.
I'm trying with
nios2-flash-programmer restore_cycloneII_2c35.flashI 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!
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.
"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.