Forum Discussion

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

sof2flash Error

Hi,

I had an error when I was trying to configure my EPCS16, I mean trying to transform .sof to .flash. I work with the linux version Beta and de2-70 and the size of .sof is 1.7MB. When I wrote this command in the terminal

sof2flash --epcs --input=/home/garcia/Escritorio/Sopc.Memory.Linux.CMMU/Inicial_time_limited.sof --output=standard.flash
I received this error

Info: Command: quartus_cpf --no_banner --convert --device=EPCS128 --option=standard.opt /home/garcia/Escritorio/Sopc.Memory.Linux.CMMU/Inicial_time_limited.sof standard.pof
File /home/garcia/Escritorio/Sopc.Memory.Linux.CMMU/Inicial_time_limited.sof contains one or more time-limited megafunctions that support the OpenCore Plus feature that will not work after the hardware evaluation time expires. Refer to the Messages window for evaluation time details.
Info: SRAM Object File /home/garcia/Escritorio/Sopc.Memory.Linux.CMMU/Inicial_time_limited.sof contains time-limited megafunction that supports OpenCore Plus feature -- Vendor: 0x6AF7, Product: 0xBCEC
Info: SRAM Object File /home/garcia/Escritorio/Sopc.Memory.Linux.CMMU/Inicial_time_limited.sof contains time-limited megafunction that supports OpenCore Plus feature -- Vendor: 0x6AF7, Product: 0x00A2
Info: SRAM Object File /home/garcia/Escritorio/Sopc.Memory.Linux.CMMU/Inicial_time_limited.sof contains time-limited megafunction that supports OpenCore Plus feature -- Vendor: 0x6AF7, Product: 0xBCE1
Internal Error: Sub-system: PGMIO, File: /quartus/pgm/pgmio/pgmio_flash_mapping.cpp, Line: 3748
ranks->size() > 0
Stack Trace:
   0x1083a6: PGMIO_ASC_MAPPING::create_bitfields(_Dinkum_std::deque<PGMIO_BITFIELD*, MEM_STL_ALLOCATOR<PGMIO_BITFIELD*> >&, PGMIO_CCF&, bool&) + 0xfd6 (pgm_pgmio)
   0x134548: PGMIO_BITSTREAM_WRITER::write_bitstream(_Dinkum_std::vector<PGMIO_LOGICAL_PAGE*, MEM_STL_ALLOCATOR<PGMIO_LOGICAL_PAGE*> >&, PGMIO_CCF&, _Dinkum_std::vector<_Dinkum_std::basic_string<char, _Dinkum_std::char_traits<char>, MEM_STL_ALLOCATOR<char> >, MEM_STL_ALLOCATOR<_Dinkum_std::basic_string<char, _Dinkum_std::char_traits<char>, MEM_STL_ALLOCATOR<char> > > >*, unsigned long) + 0x7a8 (pgm_pgmio)
   0x155c04: PGMIO_F2P::convert_sram_files(PGMIO_CCF&) + 0xf54 (pgm_pgmio)
    0x1cbcb: QCPG_FRAMEWORK::create_pof_file() + 0xd95 (quartus_cpf)
    0x1e5bb: QCPG_FRAMEWORK::execute() + 0x3ed (quartus_cpf)
    0x179c2: qexe_run(QEXE_FRAMEWORK*, QEXE_OPTION_DEFINITION const**, int, char const**) + 0x526 (comp_qexe)
    0x17fb7: qexe_standard_main(QEXE_FRAMEWORK*, QEXE_OPTION_DEFINITION const**, int, char const**) + 0x75 (comp_qexe)
     0xde51: qcpg_main(int, char const**) + 0x57 (quartus_cpf)
    0x1d7e6: msg_main_thread(void*) + 0x16 (ccl_msg)
     0x51b8: thr_final_wrapper + 0xe (ccl_thr)
    0x1f180: msg_thread_wrapper(void* (*)(void*), void*) + 0x78 (ccl_msg)
    0x42bc2: mem_thread_wrapper(void* (*)(void*), void*) + 0xd2 (quartus_cpf)
     0x99f7: err_thread_wrapper(void* (*)(void*), void*) + 0x29 (ccl_err)
     0x51eb: thr_thread_wrapper + 0x2f (ccl_thr)
    0x340f0: msg_exe_main(int, char const**, int (*)(int, char const**)) + 0x9e (ccl_msg)
     0x8cf3: main + 0x4f (quartus_cpf)
    0x16775: __libc_start_main + 0xe5 (c.so.6)
End-trace
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert standard.pof standard.rpd
Error: File name "standard.pof" does not exist
Error: Quartus II Convert_programming_file was unsuccessful. 1 error, 0 warnings
    Error: Peak virtual memory: 52 megabytes
    Error: Processing ended: Mon Apr 19 15:21:50 2010
    Error: Elapsed time: 00:00:00
    Error: Total CPU time (on all processors): 00:00:00
19-abr-2010 15:21:50 - (GRAVE) sof2flash: Read error: File: standard.rpd not found, exiting
19-abr-2010 15:21:50 - (GRAVE) sof2flash: Error retrieving data from standard.rpd
If someone can give me any clue to resolve the problem.

Many thanks

2 Replies

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

    The stack trace is a bug that should be reported, but you're not going to get very far with a time-limited ("tethered") version anyways. You need to have fully licensed IP in order to program flash...

    Cheers,

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

    Hi,

    Now I have the license and my .sof is unlimited, but I continue having problem with the EPCS.

    I have programmed the epcs by two ways. The first one with the .jic file and it works, but with the flash programmer it doesn't go.

    I have followed nioswiki and the first command that I have written is:
    
    $ sof2flash --epcs --input=/home/garcia/Escritorio/Sopc.Memory.Linux.CMMU/Inicial.sof --output=standard.flashInfo: *******************************************************************
    Info: Running Quartus II Convert_programming_file
    Info: Command: quartus_cpf --no_banner --convert --device=EPCS128 --option=standard.opt /home/garcia/Escritorio/Sopc.Memory.Linux.CMMU/Inicial.sof standard.pof
    Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
        Info: Peak virtual memory: 77 megabytes
        Info: Processing ended: Wed Apr 21 11:51:25 2010
        Info: Elapsed time: 00:00:02
        Info: Total CPU time (on all processors): 00:00:02
    Info: *******************************************************************
    Info: Running Quartus II Convert_programming_file
    Info: Command: quartus_cpf --no_banner --convert standard.pof standard.rpd
    Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
        Info: Peak virtual memory: 71 megabytes
        Info: Processing ended: Wed Apr 21 11:52:16 2010
        Info: Elapsed time: 00:00:02
        Info: Total CPU time (on all processors): 00:00:02
    
    And the second command is:

    $ nios2-flash-programmer -M --epcs --base=0x09403800 standard.flash
    --mmu option was set true, EPCS virtual address is base + offset of 0xC0000000
    Using cable "USB-Blaster ", device 1, instance 0x00
    Resetting and pausing target processor: OK
    Checksummed/read 15kB in 0.1s                                        
    Erased 640kB in 6.7s (95.5kB/s)                         
    Programmed 626KB +14KB in 8.0s (80.0KB/s)                  
    Did not attempt to verify device contents
    Leaving target processor paused
    When I power off and power on the FPGA has died.

    If someone can suggest any ideas.I have seen in other posts that people have problems with quartus9.1 but I compile with quartus 9.0 SP2, and I download files with quartus 9.1 version Beta of linux.

    Many thanks