From c3323f0d5771f01ef27e93e9882f7740d957070c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 20 Jan 2018 15:42:53 +0800 Subject: [PATCH] hmc830: improve lock failure error report --- artiq/firmware/libboard_artiq/hmc830_7043.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/artiq/firmware/libboard_artiq/hmc830_7043.rs b/artiq/firmware/libboard_artiq/hmc830_7043.rs index a567d27ec..ee456beb9 100644 --- a/artiq/firmware/libboard_artiq/hmc830_7043.rs +++ b/artiq/firmware/libboard_artiq/hmc830_7043.rs @@ -107,12 +107,11 @@ mod hmc830 { info!("waiting for lock..."); while read(0x12) & 0x02 == 0 { if clock::get_ms() > t + 2000 { - error!("lock timeout"); - info!("register dump:"); + error!("HMC830 lock timeout. Register dump:"); for addr in 0x00..0x14 { // These registers don't exist (in the data sheet at least) if addr == 0x0d || addr == 0x0e { continue; } - info!("[0x{:02x}] = 0x{:04x}", addr, read(addr)); + error!("[0x{:02x}] = 0x{:04x}", addr, read(addr)); } return Err("HMC830 lock timeout"); }