UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 63605

SDK - How to Create an MCS Boot Image using SPI SREC BootLoader

描述

How can I use SPI SREC Bootloader application?

解决方案

Below is the procedure to boot a 'Hello World' application from a serial flash using the SPI SREC bootloader based MCS image.

  1. Create an SPI SREC bootloader application
  2. In SREC bootloader application source (blconfig.h), change the flash image base address
    #define FLASH_IMAGE_BASEADDR <offset of the SREC image to be programmed to flash>
  3. Check the BSP settings of the application to ensure Xilisf (Xilinx In-system and Serial Flash Library) library is enabled and the serial_flash_familiy property is set to the appropriate value according to the board



  4. Rebuild the application
  5. Create helloworld application and link to DDR (in the linker script make sure that this application is executing from DDR)
  6. Convert the application elf into SREC format (mb-objcopy -O srec application.elf application.srec)
  7. Use the SDK Flash Program utility to program the SREC file in the serial flash (ensure that the offset corresponds to the one selected in the Bootloader source file)


    Note: Alternatively, the Program Flash application can convert the ELF file into SREC format using the corresponding checkbox
  8. Program the FPGA using the design bitstream and the bootloader ELF file to initialize BRAM



  9. Once the FPGA is configured, the SREC bootloader runs, copies the image from flash to DDR, and executes the application.
SREC SPI Bootloader
Loading SREC image from flash @ address: 00c00000
Bootloader: Processed (0x)000000c1 S-records
Executing program starting at address: 00000000
Hello World

链接问答记录

主要问答记录

Answer Number 问答标题 问题版本 已解决问题的版本
66297 SDK - 设计助手 N/A N/A
AR# 63605
日期 08/17/2018
状态 Active
Type 解决方案中心
器件
Tools
的页面