forked from M-Labs/artiq
sayma: print DAC status on JESD not ready error
This commit is contained in:
parent
eb0ce933c5
commit
c4e4d67cdf
|
@ -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!("");
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue