In Zynq UltraScale+ MPSoC/RFSoC devices, Linux CPU Idle is enabled by default.
When enabled, Linux powers down the CPU cores when they are idling (as opposed to WFI).
That can cause problems when xsdb is connected.
With CPU Idle enabled, DAP throws out an error.
In theory, when xsdb is connected, there should be some read/write access happening over the A53_* related registers.
Because the A53_* cores could be powered down based on the CPU usage stats due to CPU_IDLE being enabled, the xsdb accesses to the A53 registers can result in a DAP error.
There are two independent events happening here:
CPUs being powered down, and xsdb trying to access the registers.
As a result, when the xsdb triggers a read, if the A53_* core is powered down, it can result in a DAP error.
In general, the debugger checks if the block is powered up or not.
However, this event might occur when the read is already in progress, and will cause this issue.
The problem can be avoided by disabling the CPU Idle in Linux kernel bootargs using any of the below methods.
1) Disabling from a U-boot prompt on target:
Add "cpuidle.off=1" to bootargs as follows:
2) Disable from the kernel config (CONFIG_CPU_IDLE) using PetaLinux or Yocto:
3) Using the PetaLinux device-tree generator:
Add the below content to the dtsi file "<plnx- proj- root>/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi"
|Boards & Kits||