Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12367 Discussions

what's wrong with the Flash programmer?

Altera_Forum
Honored Contributor I
715 Views

hello all, 

 

QII4.2,Nios 1.1 

 

I encounted a strange problem when I use the flash programmer frome Nios IDE.the console show: 

# ! /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:/Nios/flashprogrammer/software/s251_flashprogrammer/Debug 

# Creating .flash file for the FPGA configuration 

$SOPC_KIT_NIOS2/bin/sof2flash --flash=U4 --offset=0x00600000 --input=D:/Nios/fla 

shprogrammer/s25_lock.sof --output=s25_lock.flash 

Info: ******************************************************************* 

Info: Running Quartus II Convert_programming_file 

Info: Command: quartus_cpf --no_banner --convert D:/Nios/flashprogrammer/s25_loc 

k.sof s25_lock.rbf 

Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings 

Info: Processing ended: Fri Mar 18 09:35:55 2005 

Info: Elapsed time: 00:00:01 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead 

# Programming flash with the FPGA configuration 

$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=s25_lock.flash --sof=d:/nios/ 

flashprogrammer/my_1s251_board/system/my_1s251_board.sof --cable='ByteBlasterII  

[LPT1]' --base=0x00800000 

Mar 18, 2005 9:36:00 AM - (??) nios2-flash-programmer: Launching Quartus Program 

mer to download: 

d:/nios/flashprogrammer/my_1s251_board/system/my_1s251_board.sof 

Pre-Reading 964KBytes of data from U4: 

|----.----+----.----| 

********************* (43.875 sec). 

Erasing 16 Sectors: 

|----.----+----.----| 

********************* (10.656 sec). 

Writing 1024KBytes : 

|----.----+----.----| 

********************* (66.719 sec). 

Verifying 1024KBytes of data: 

|----.----+----.----| 

********************* (42.594 sec). 

Mar 18, 2005 9:39:18 AM - (??) nios2-flash-programmer: Success. Verified 1024Kby 

tes written to U4. 

Mar 18, 2005 9:39:18 AM - (??) nios2-flash-programmer: Flash programming complet 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead 

# Creating .flash file for the project 

$SOPC_KIT_NIOS2/bin/elf2flash --flash=U4 --base=0x00000000 --end=0x800000 --rese 

t=0x0 --input=s251_flashprogrammer.elf --output=ext_flash.flash --boot=$SOPC_KIT 

_NIOS2/components/altera_nios2/boot_loader_cfi.srec 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead 

# Programming flash with the project 

$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=ext_flash.flash --sof=__NO_SO 

F_PLEASE__ --cable='ByteBlasterII [LPT1]' --base=0x00800000 

Mar 18, 2005 9:39:19 AM - (??) nios2-flash-programmer: SOF-download skipped. 

Pre-Reading 0KBytes of data from U4: 

|----.----+----.----| 

*********************Mar 18, 2005 9:39:29 AM - (??) nios2-flash-programmer:  

Flash file is too large to fit in flash memory 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead 

 

 

the error when download application is:Flash file is too large to fit in flash memory 

 

why? before download ext_flash.flash ,the file is 200kbyte 

but after that ext_flash.flash is only 1kbyte 

 

when run all is ok. 

 

 

thank you
0 Kudos
0 Replies
Reply