Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

problem of download

hi,

every one!

The board I used is made by myself,so I make a board of "sram_board" to write my flash epcs4, I set the address of epcs4 as the reset address ,and sram as the exception address,when I write flash,I got the message below,and the program can't run.(The program I have tested on sram)

# ! /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 E:/altera/nios_epcs/software/epcs/Debug

# Creating .flash file for the FPGA configuration

$SOPC_KIT_NIOS2/bin/sof2flash --flash=U1 --offset=0x00000000 --epcs --input=E:/a

ltera/nios_epcs/niosII.sof --output=niosII.flash

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

Info: Running Quartus II Convert_programming_file

Info: Command: quartus_cpf --no_banner --convert --device=EPCS64 --option=niosII

.opt E:/altera/nios_epcs/niosII.sof niosII.pof

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

Info: Processing ended: Mon Jan 23 19:34:23 2006

Info: Elapsed time: 00:00:02

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

Info: Running Quartus II Convert_programming_file

Info: Command: quartus_cpf --no_banner --convert niosII.pof niosII.rpd

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

Info: Processing ended: Mon Jan 23 19:34:29 2006

Info: Elapsed time: 00:00:05

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=niosII.flash --sof=e:/altera/

dev_board/sram_board/system/sram_board.sof --epcs

Jan 23, 2006 7:34:30 PM - (??) nios2-flash-programmer: Launching Quartus Program

mer to download:

e:/altera/dev_board/sram_board/system/sram_board.sof

Pre-Reading 74KBytes of data from U1:

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

********************* (49.718 sec).

Erasing 2 Sectors:

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

********************* (2.782 sec).

Writing 128KBytes :

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

********************* (30.64 sec).

Verifying 128KBytes of data:

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

********************* (33.422 sec).

Jan 23, 2006 7:36:41 PM - (??) nios2-flash-programmer: Success. Verified 128Kbyt

es written to U1.

Jan 23, 2006 7:36:41 PM - (??) nios2-flash-programmer: Flash programming complet

e

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

# Creating .flash file for the project

$SOPC_KIT_NIOS2/bin/elf2flash --flash=U1 --epcs --base=0x0 --end=0x7fffffff --in

put=epcs.elf --output=epcs_controller.flash --boot=$SOPC_KIT_NIOS2/components/al

tera_nios2/boot_loader_epcs.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=epcs_controller.flash --sof=_

_NO_SOF_PLEASE__ --epcs

Jan 23, 2006 7:36:42 PM - (??) nios2-flash-programmer: SOF-download skipped.

Pre-Reading 16KBytes of data from U1:

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

********************* (17.359 sec).

Writing 64KBytes :

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

********************* (15.016 sec).

Verifying 64KBytes of data:

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

********************* (16.672 sec).

Jan 23, 2006 7:37:39 PM - (??) nios2-flash-programmer: Success. Verified 64Kbyte

s written to U1.

Jan 23, 2006 7:37:39 PM - (??) nios2-flash-programmer: Flash programming complet

e

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

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    this masassge doesn't show any error.

    it seem like everything is in order.

    do you have a valid license?

    when you used the sopc builder to genrate your system did you get a a massage that the cpu was generated as a time limit?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    thanks you

    my software have a valid licence,but some message showed in the report is unvalid ,

    for example:Info: Command: quartus_cpf --no_banner --convert --device=EPCS64 --option=niosII

    but my epcs is epcs4!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I set the address of epcs_controller as the reset address ,and sram as the exception address, is that correct?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by kedimike@Jan 24 2006, 01:46 AM

    i set the address of epcs_controller as the reset address ,and sram as the exception address, is that correct?

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=12354)

    --- quote end ---

    --- Quote End ---

    Yes. That should work just fine. Keep in mind, however, that you&#39;ve got to recompile your SOF _after_ building your software. This is so that Quartus II can store the bootloader contents in the small onchip RAM which is a part of the EPCS controller.

    Good luck!

    - slacker