cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H747 with TW2835

관박.1
Associate II

systme is TW2835 with stm32h747

i catch video data but

DCMI->DR cannot write to sdram buffer with DCMI DMA

this is DCMI, DMA Sorce

 hdcmi.Instance = DCMI;

 hdcmi.Init.SynchroMode = DCMI_SYNCHRO_HARDWARE;

 hdcmi.Init.PCKPolarity = DCMI_PCKPOLARITY_RISING;

 hdcmi.Init.VSPolarity = DCMI_VSPOLARITY_LOW;

 hdcmi.Init.HSPolarity = DCMI_HSPOLARITY_LOW;

 hdcmi.Init.CaptureRate = DCMI_CR_ALL_FRAME;

 hdcmi.Init.ExtendedDataMode = DCMI_EXTEND_DATA_8B;

 hdcmi.Init.JPEGMode = DCMI_JPEG_DISABLE;

 hdcmi.Init.ByteSelectMode = DCMI_BSM_ALL;

 hdcmi.Init.ByteSelectStart = DCMI_OEBS_ODD;

 hdcmi.Init.LineSelectMode = DCMI_LSM_ALL;

 hdcmi.Init.LineSelectStart = DCMI_OELS_ODD;

--------------------------------------------------------------------------------------

  hdma_dcmi.Init.Request = DMA_REQUEST_DCMI;

  hdma_dcmi.Init.Direction = DMA_PERIPH_TO_MEMORY;

  hdma_dcmi.Init.PeriphInc = DMA_PINC_DISABLE;

  hdma_dcmi.Init.MemInc = DMA_MINC_ENABLE;

  hdma_dcmi.Init.PeriphDataAlignment = DMA_PDATAALIGN_WORD;

  hdma_dcmi.Init.MemDataAlignment = DMA_MDATAALIGN_WORD;

  hdma_dcmi.Init.Mode = DMA_CIRCULAR;

  hdma_dcmi.Init.Priority = DMA_PRIORITY_HIGH;

  hdma_dcmi.Init.FIFOMode = DMA_FIFOMODE_ENABLE;

  hdma_dcmi.Init.FIFOThreshold = DMA_FIFO_THRESHOLD_FULL;

  hdma_dcmi.Init.MemBurst = DMA_MBURST_SINGLE;

  hdma_dcmi.Init.PeriphBurst = DMA_PBURST_SINGLE;

  hdma_dcmi.Instance = DMA2_Stream0;

0 REPLIES 0