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# 67818

Zynq UltraScale+ MPSoC: 2016.3 PMUFW Loading via JTAG / SD Boot Modes and Running An Example

Description

This Answer Record contains information on the following:

  • Building the PMU FW using SDK
  • Debugging the PMU FW using SDK
  • (Xilinx Answer 67871) Zynq UltraScale+ MPSoC: MicroBlaze PMU MDM is disabled by default on ES2 and higher.
  • Loading the PMU FW using SD boot mode
  • Using FSBL to load the PMU FW
  • Using CBR to load the PMU FW

Solution

Building PMU Firmware using SDK

  1. Open XSDK
  2. Create a new application with the following settings:
    1. Name your project / Board support package
    2. OS Platform : Standalone
    3. Hardware Platform : ZynqMP_ZCU102_hw_platform
    4. Processor : psu_pmu_0
       
  3. Click next. You will see "ZynqMP PMU Firmware" in the available templates.
  4. Click on Finish to generate the PMUFW.
  5. Connect to the local board and test the connection. You should see a pop-up showing that the connection was established successfully.
  6. Connect to the COM port on the terminal to view the UART prints.
    Note: PMUFW uses psu_uart_0 as the default STDOUT. This can be changed to other UARTs using the "Modify BSP Settings" dialogue.
    To disable debug prints from PMUFW, undef/remove/comment out the line "#define DEBUG_MODE" in the file xpfw_config.h file from the PMUFW source code.
  7. In the XSCT Console, Connect to the board and Run the PMU firmware.
  8. View the PMU firmware prints on the Terminal console.

 

Debugging the PMU FW using SDK

  1. Right click the application, select "Debug As" and click on Debug Configurations.
  2. Right click System Debugger and Click "New". You should see "New Configuration". Click Debug.
  3. Choose the Debug perspective. Click OK.
  4. You will now see the debug perspective and PMU firmware will run.
  5. Place the break points to control the flow and rerun for debugging.

 

Loading PMU Firmware in SD boot mode

Note: When PMUFW is loaded in a non-JTAG Boot mode on 1.0 Silicon, an error message "Error: Unhandled IPI received" might be logged by PMUFW at startup. 

This can be safely ignored. This issue is due to the IPI0 ISR not being cleared by PMU ROM. it is fixed in versions 2.0 and later of the Silicon.

 

Using FSBL to load the PMU Firmware:

  1. You should already have the pmufw.elf file. ( See building the PMU Firmware at the top of this page)
  2. Build an FSBL in the SDK for A53. ( R5 can also be used)
  3. Create a hello_world example for A53. Right Click on the "hello_world example" project and select "Create a boot image"
  4. Create a new bif file with the following setting:
    1. Architecture : ZynqMP
    2. You will see the A53 FSBL and hello_world example by default in partitions. You will also need the PMUFW.
    3. Click on Add, then provide the pmufw.elf path. Set Partition type: datafile, Destination device : PS, Destination CPU : PMU
    4. Click OK.
    5. After adding pmufw as a partition, click on the PMUFW partition and click UP.
    6. Make sure the partition order is as follows:
      1. A53 FSBL
      2. PMUFW
      3. hello world App
    7. Click on Create Image. You will see BOOT.bin created in a new folder called "bootimage" in your example project.
    8. View the .BIF file to confirm the partition order.
    9. Now copy this BOOT.bin to the SD card.
    10. Boot the ZCU102 board in SD boot mode. You can see the fsbl -> pmufw ->hello_world example prints in a sequence.

 

Using CBR to load PMUFW:

When the PMUFW is loaded by CBR, it is executed prior to FSBL. 

As a result, the MIOs, Clocks and other initializations are not done at this point and this means that the PMUFW banner and other prints might not be seen prior to FSBL.

Post FSBL execution, the PMUFW prints can be seen as usual.

  1. To make CBR load the PMUFW, we just need to change the BOOT.bin boot partitions.
  2. First follow the first three steps listed above under Using FSBL to load the PMU Firmware:
  3. Create a new bif file.
    1. Select Architecture : ZynqMP
    2. You will see the A53 FSBL, and hello_world example by default in partitions. You will also need the PMUFW.
    3. Click on Add, then provide the pmufw.elf path. Also set Partition type: pmu (loaded by BootROM).
    4. Click OK.
    5. Click on Create Image. You will see BOOT.bin created in a new folder "bootimage" in your example project.
    6. You can also view the .bif file to confirm the partition order.
    7. Now copy this BOOT.bin to the SD card.
    8. Boot the ZCU102 board in SD boot mode. You can see the pmufw -> fsbl ->hello_world example prints in a sequence.
AR# 67818
Date Created 09/06/2016
Last Updated 10/27/2016
Status Active
Type General Article
Devices
  • Zynq UltraScale+ MPSoC