forked from M-Labs/artiq
1
0
Fork 0

sayma: print DAC status on JESD not ready error

This commit is contained in:
Sebastien Bourdeauducq 2020-01-20 18:06:50 +08:00
parent eb0ce933c5
commit c4e4d67cdf
2 changed files with 3 additions and 1 deletions

View File

@ -355,6 +355,7 @@ pub fn setup(dacno: u8, linerate: u64) -> Result<(), &'static str> {
pub fn status(dacno: u8) {
spi_setup(dacno);
info!("Status of DAC-{}", dacno);
info!("SERDES_PLL_LOCK: {}",
(read(ad9154_reg::PLL_STATUS) & ad9154_reg::SERDES_PLL_LOCK_RB));
info!("");

View File

@ -91,7 +91,8 @@ pub mod jdac {
return Err("JESD core PHY not done");
}
if !jesd::ready(dacno) {
error!("JESD core reported not ready");
error!("JESD core reported not ready, sending status print request");
basic_request(dacno, jdac_requests::PRINT_STATUS, 0)?;
return Err("JESD core reported not ready");
}