Creating A Preloader Bsp File; Creating A Preloader Image; Debugging Hps Sdram In The Preloader; Enabling Uart Or Semihosting Printout - Altera Cyclone V Device Handbook

Hide thumbs Also See for Cyclone V:
Table of Contents

Advertisement

8-26

Creating a Preloader BSP File

Creating a Preloader BSP File
The following steps explain how to create a Qys project in preparation for generating a preloader image for
HPS with external memory interface.
1. At a command prompt, navigate to <SoC EDS installation>\Quartus II version\
2. Start the embedded command shell, as follows:
a. On Windows systems, run the batch file <SoC EDS installation Folder>\
Shell.bat
b. On Linux systems, run the shell script <SoC EDS installation Folder>\
shell.sh
3. At the command shell, type bsp-editor to launch the Preloader Support Package Generator.
4. To create a new BSP project, select New BSP on the Filemenu.
5. Change the Preloader settings directory to the handoff files directory, and click OK.
6. Set up the
.bsp
7. Click Generate to create the
8. Close the BSP Editor after you generate the

Creating a Preloader Image

This topic describes the creation of a Preloader image.
1. At the command shell, change the directory to <design path>\
2. To compile the Preloader sources and generate a Preloader image, type make all. The Preloader image
(preloader-mkpimage.bin) is created in the <design path>\
Note:
You must regenerate the Preloader image if any of the source files (

Debugging HPS SDRAM in the Preloader

The following tools are available at the preloader stage, to assist in debugging your design:
• UART or semihosting printout
• Simple memory test
• Debug report
• Predefined data patterns
The following topics provide procedures for implementing each of the above tools.

Enabling UART or Semihosting Printout

UART printout is enabled by default. If UART is not available on your system, you can use semihosting
together with the debugger tool. To enable semihosting in the Preloader, follow these steps:
1. When you create the
enable semihosting.
Altera Corporation
.
file based on your system's requirements.
file.
.bsp
file in the BSP Editor, turn on SEMIHOSTING in the spl.debug window to
.bsp
file.
.bsp
software
\
software
spl_bsp
\.
embedded
\
embedded
Embedded_Command_
\
embedded
embedded_command_
\
.
spl_bsp
folder after the compliation.
,
, or
) files change.
.bsp
.c
.h
SDRAM Controller Subsystem
Send Feedback
cv_54008
2013.12.30

Advertisement

Table of Contents
loading

Table of Contents