Altera_Forum
Honored Contributor
20 years agoNios II IDE flash programmer problem?
Hello Nios experts,
I am using Nios II v1.1 with the IDE v1.1.0 and Quartus II v4.2. When I compile a simple project like the diagnostic or the hello world program, I can debug it fine. It generates a good elf file and a flash file. But when I go to use the flash programmer from within the IDE, I run into these problems. It claims that my flash file is too large for hte flash component. I don't think so, I tried these same simple projects with and older nios II v1.0.1 and Quartus v4.1 and it works fine. Here is the result form the console... <div class='quotetop'>QUOTE </div> --- Quote Start --- #! /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/kits/nios2/examples/verilog/niosII_stratixII_2s60_ES/full_featured_ qh/software/board_diag_1/Debug # Creating .flash file for the project $SOPC_KIT_NIOS2/bin/elf2flash --flash=U5 --base=0x00000000 --end=0x1000000 --res et=0x0 --input=board_diag_1.elf --output=ext_flash.flash --boot=$SOPC_KIT_NIOS2/ components/altera_nios2/boot_loader_cfi.srec # Programming flash with the project $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=ext_flash.flash --sof=$SOPC_K IT_NIOS2/components/altera_nios_dev_board_stratix_2s60_es/system/altera_nios_dev _board_stratix_2s60_es.sof --cable='USB-Blaster [USB-0]' --base=0x01000000 Feb 11, 2005 12:24:31 PM - (INFO) nios2-flash-programmer: Launching Quartus Prog rammer to download: C:/altera/kits/nios2/components/altera_nios_dev_board_stratix_2s60_es/syste m/altera_nios_dev_board_stratix_2s60_es.sof Pre-Reading 0KBytes of data from U5: |----.----+----.----| *********************Feb 11, 2005 12:24:49 PM - (SEVERE) nios2-flash-program mer: Flash file is too large to fit in flash memory[/b] --- Quote End --- And this is the content of the ext_flash.flash: <div class='quotetop'>QUOTE </div> --- Quote Start --- S01A000055353A30313A30303030303030303A30313030303030304B S32500000000140084003A48011004F8BF1016FDBF0034404000040040083A6800080000000068 S3060100000014E4[/b] --- Quote End --- I don't know what the problem is... Any help would be appreciated. -Quan