Skip to content

Commit

Permalink
sayma: print DAC status on JESD not ready error
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourdeauducq committed Jan 20, 2020
1 parent eb0ce93 commit c4e4d67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions artiq/firmware/libboard_artiq/ad9154.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!("");
Expand Down
3 changes: 2 additions & 1 deletion artiq/firmware/satman/jdcg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit c4e4d67

Please sign in to comment.