embassy icon indicating copy to clipboard operation
embassy copied to clipboard

DCMI.capture never returns

Open chaeyoung-lee opened this issue 1 year ago • 0 comments

Hi team!

I'm using STM32U5 discovery board to connect the Himax HM01B0 camera on a DCMI interface. I've checked that clock and valid line signals are all normal but DCMI capture function call never returns.

Screenshot 2024-01-31 at 1 39 19 PM

let mut dcmi = dcmi::Dcmi::new_8bit(
    p.DCMI, p.GPDMA1_CH12, Irqs,
    p.PC6, p.PC7, p.PC8, p.PE1, p.PH14, p.PI4, p.PI6, p.PI7, // D0-D7
    p.PB7, // VSYNC
    p.PH8, // HSYNC
    p.PA6, // PCLK
    config,
);

defmt::info!("attempting capture");
defmt::unwrap!(dcmi.capture(unsafe { &mut FRAME }).await);     # hangs forever here
defmt::info!("captured");
defmt::info!("captured frame: {:x}", unsafe { &FRAME });

Any idea why this would happen and any lead to resolve this? Thanks so much!

chaeyoung-lee avatar Jan 31 '24 21:01 chaeyoung-lee