Add a hint when the chip is locked (DP works but no APs found)
@@ -170,6 +170,10 @@ fn show_arm_info(interface: &mut dyn ArmProbeInterface) -> Result<()> {
let dp = DpAddress::Default;
let num_access_ports = interface.num_access_ports(dp).unwrap();
+ if num_access_ports == 0 {
+ tree.push("No memory APs found. The chip has locked debug access.".to_string());
+ }
+
for ap_index in 0..num_access_ports {
let ap = ApAddress {
ap: ap_index as u8,
