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

How do I set a target CPU for interrupt in Zynq?

Description

According to the Zynq Technical Reference Manual, you can set the target CPU for interrupt by configuring ICDIPTR registers.

This article includes an example targeting two AXI timers interrupts separately to cpu0 and cpu1.

Solution

This example is created targeting zc702 with Vivado 2014.2.

The steps to set up the example are as follows:

1. unzip the file, and generate the BD output and bitstream.

2. export hardware with bitstream and launch SDK.

3. import the BSPs and applications in the app folder into the workspace.

 

Note:

The BSP for cpu1 needs to be defined with USE_AMP=1. 

In the example this is done by adding the flag "-DUSE_AMP" to extra_compiler_flags in the cpu1 BSP.

After this flag is added, the cpu1 application needs to be re-built.

When USE_AMP=1 is defined, the driver function DistInit(XScuGic *InstancePtr, u32 CpuID) will not configure these distributor registers of GIC, so only the cpu0 application configures the interrupt target CPU.

 

Attachments

Associated Attachments

Name File Size File Type
intrpt_target_test_example.zip 3 MB ZIP
AR# 62557
Date Created 10/21/2014
Last Updated 04/01/2015
Status Active
Type General Article
Devices
  • Zynq-7000
Tools
  • Vivado Design Suite - 2014.2
Boards & Kits
  • Zynq-7000 All Programmable SoC ZC702 Evaluation Kit