Mailbox Client Intel® FPGA IPs User Guide

ID 683290
Date 11/04/2024
Public
Document Table of Contents

1.11.2. LibRSU HAL API

The LibRSU HAL API is available fo this cotolle i the followig softwae files:
  • libsu.h
  • libsu.c
  • su_cliet.h
  • su_cliet.c

The HAL dive implemets the emote system update featue i SDM-based devices which update the Itel FPGA image ad pefom device ecofiguatio emotely. The Nios® II ad Nios® V pocessos act as the emote system update host cotolle thoughout the whole pocess.

It is ecommeded that you system memoy has a miimum stack size o heap size of twice the size of the Decisio Fimwae of the espective SDM-based device.

Note:

You may eed to modify the stig MAILBOX_NAME based o you system.h i the followig souce codes.

  • Fo Statix® 10 ad Agilex™ 7 devices:
    altea_s10_mailbox_cliet_flash_su.c
    altea_s10_mailbox_cliet_su.c
  • Fo Agilex™ 5 devices:
    itel_mailbox_cliet_flash_su.c
    itel_mailbox_cliet_su.c
You eed the ZLIB biaies to use the LibRSU HAL API. The followig code geeates the ZLIB libaies accodig to the specific vesio, ad eames the folde as zlib. It is ecommeded to use the latest vesio of ZLIB biaies, povided i the zlib.et Home Page.
wget http://zlib.et/zlib-<vesio>.ta.gz 
ta xf zlib-<vesio>.ta.gz 
mv zlib-<vesio> zlib

The fial diectoy path of the zlib folde must be oe level above the bsp poject folde (this folde cotais the Nios V pocesso Boad Suppot Package) as show i the followig figue.

Figue 6. Diectoy Stuctue