embassy
embassy copied to clipboard
DCMI.capture never returns
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.
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!