Results 1 to 3 of 3

Thread: Loading preloader image to QSPI Flash for Booting

  1. #1
    Join Date
    Jan 2015
    Posts
    17
    Rep Power
    1

    Default Loading preloader image to QSPI Flash for Booting

    Hi,

    I would like to request support for another issue on loading the QSPI flash memory of the Cyclone V SoC. As provided in the an709 document guide, the command for loading the QSPI flash is:
    quartus_hps -c 1 -o PV -a 0x0 preloader-mkpimage.bin


    Execution of this command results in:


    Info:********************************************* **********************
    Info: Running Quartus II 64-Bit Programmer
    Info: Version 14.1.0 Build 186 12/03/2014 SJ Full Version
    Info: Copyright (C) 1991-2014 Altera Corporation. All rights reserved.
    Info: Your use of Altera Corporation's design tools, logic functions
    Info: and other software and tools, and its AMPP partner logic
    Info: functions, and any output files from any of the foregoing
    Info: (including device programming or simulation files), and any
    Info: associated documentation or information are expressly subject
    Info: to the terms and conditions of the Altera Program License
    Info: Subscription Agreement, the Altera Quartus II License Agreement,
    Info: the Altera MegaCore Function License Agreement, or other
    Info: applicable license agreement, including, without limitation,
    Info: that your use is for the sole purpose of programming logic
    Info: devices manufactured by Altera and sold by Altera or its
    Info: authorized distributors. Please refer to the applicable
    Info: agreement for further details.
    Info: Processing started: Tue May 12 12:06:19 2015
    Info: Command: quartus_hps -c 1 -o PV -a 0x0 preloader-mkpimage.bin
    Current hardware is: CV SoCKit [USB-1]
    Found HPS at device 2
    HPS Device IDCODE: 0x4BA00477
    AHB Port is located at port 0
    APB Port is located at port 1
    Boot Info: 3.0V QSPI Flash
    Clock Select: 0
    Double AJI Delay - 1024 TCKs
    Start HPS Quad SPI flash programming ...
    Initialize QSPI peripheral and flash controller ...
    Read Silicon ID of Quad SPI flash ...
    Error: Fail to poll the QSPI Command execution status
    Error: Fail to read Silicon ID
    Error: Quartus II 64-Bit Programmer was unsuccessful. 0 errors, 0 warnings
    Error: Peak virtual memory: 115 megabytes
    Error: Processing ended: Tue May 12 12:06:20 2015
    Error: Elapsed time: 00:00:01
    Error: Total CPU time (on all processors): 00:00:00


    I have enabled the QSPI flash controller in the HPS peripheral list. I built the preloader by selecting BOOT_FROM_QSPI option in the bsp-editor and further issuing "make" command in the spl_bsp directory.

    Please advise on this issue. Thanks in advance.

    Regards,
    Nitin.

  2. #2
    Join Date
    Dec 2014
    Location
    Cambridge
    Posts
    3
    Rep Power
    1

    Default Re: Loading preloader image to QSPI Flash for Booting

    Not sure if this helps, Below is a section of output when I program which might give you a clue to the cause.

    Info: Processing started: Mon Sep 01 15:59:39 2014
    Info: Command: quartus_hps -c 1 -o P preloader-mkpimage.bin
    Current hardware is: Helio [USB-1]
    Found HPS at device 1
    HPS Device IDCODE: 0x4BA00477
    AHB Port is located at port 0
    APB Port is located at port 1
    Boot Info: 3.0V QSPI Flash
    Start HPS Quad SPI flash programming ...
    Initialize QSPI peripheral and flash controller ...
    Read Silicon ID of Quad SPI flash ...
    Quad SPI Flash silicon ID is 0x1020BA20
    Flash device matched
    Manufacturer: Micron
    Device: QSPI_512
    Enable Four Byte Addressing ...
    Sector Erase Quad SPI flash ...
    Sector Erase Info: Start Addr at 0x00000000 for 4 sector(s)
    Sector Erase Quad SPI flash at 0x00000000
    Sector Erase Quad SPI flash at 0x00010000
    Sector Erase Quad SPI flash at 0x00020000
    Sector Erase Quad SPI flash at 0x00030000
    Program Quad SPI flash ...
    Info: Quartus II 64-Bit Programmer was successful. 0 errors, 0 warnings
    Info: Peak virtual memory: 126 megabytes
    Info: Processing ended: Mon Sep 01 16:00:17 2014
    Info: Elapsed time: 00:00:38
    Info: Total CPU time (on all processors): 00:00:05

  3. #3
    Join Date
    Jun 2015
    Posts
    189
    Rep Power
    1

    Default Re: Loading preloader image to QSPI Flash for Booting

    sound like Quad spi access also failed.

    may want to have a try on the general version from http://rocketboards.org/foswiki/view...SRD131QspiBoot

Similar Threads

  1. write to qspi hangs when application boots from qspi flash
    By gxk in forum SoC Baremetal and Hardware Libraries
    Replies: 2
    Last Post: September 6th, 2015, 07:42 AM
  2. Replies: 0
    Last Post: April 8th, 2015, 03:12 AM
  3. Force certain preloader image at QSPI boot
    By gxk in forum SoC Bootloading
    Replies: 3
    Last Post: October 27th, 2014, 11:27 AM
  4. Yet an other QSPI booting problem
    By jbl in forum SoC Bootloading
    Replies: 4
    Last Post: August 26th, 2014, 11:05 PM
  5. Booting a bare metal application from QSPI flash
    By Aldridge in forum SoC Device Discussion
    Replies: 10
    Last Post: July 15th, 2014, 12:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •