Hi all,
I’m currently trying to run a basic Hello World
application from Vitis on my PYNQ-Z2 board to verify that the setup works correctly. However, I’m encountering the following error when I try to “Launch on Hardware”:
Memory write error at 0x100000. Cannot flush CPU cache.
APB AP transaction error, DAP status 0xF0000021
Failed to initialize hardware.
I’m using:
- PYNQ-Z2
- Vivado 2024.1
- Vitis Unified IDE 2024.2
- Project goal: Just run the basic
Hello World
template from Vitis using the Zynq Processing System (PS) only, no PL logic or HLS involved.
In Vivado:
- Created a new block design with just the
ZYNQ7 Processing System
. - Ran Block Automation.
- Enabled UART0 and assigned it to MIO 14–15.
- Enabled
S_AXI_GP0
and connectedFCLK_CLK0
toM_AXI_GP0_ACLK
. - Validated the design.
- Generated Bitstream.
- Exported hardware (XSA) with bitstream included.
- Successfully programmed the FPGA from Vivado Hardware Manager.
Vitis:
- Created a new platform from the
.xsa
. - Created a new Application Project from the “Hello World” example.
- Built successfully.
- Opened PuTTY on the correct COM port (115200 baud).
- Tried to “Launch on Hardware (Single Application Debug)” → Got the DAP error.
I have verified that the jumper are in JTAG mode, and that the board connections are good
Does anyone know what exactly causes the DAP status 0xF0000021
error?
Any help would be highly appreciated.