Skip to main content
AErof
Associate
August 24, 2020
Question

Problem on STM32L4R9 Discovery with VGA camera capture into PSRAM.

  • August 24, 2020
  • 1 reply
  • 681 views

I am using STM32L4R9 Discovery board with 2 MB external PSRAM and OV9655 camera (DM-CAM130). The demo code I've got has example of VGA camera configuration, however it requires a framebuffer too large to fit inside RAM. When I am choosing PSRAM, I am getting an error in DCMI_DMAHalfXferCplt(DMA_HandleTypeDef *hdma) from the HAL_DMA_Start_IT(hdcmi->DMAM2M_Handle, (uint32_t) tmpBuffer_Orig, (uint32_t) tmpBuffer_Dest, loop_length) != HAL_OK and thus, the VGA configuration is unusable. How can I capture VGA images with this board?

This topic has been closed for replies.

1 reply

AErof
AErofAuthor
Associate
August 24, 2020

Just checked, actually the problem occurs with buffer placement in RAM as well. The very same code works fine with 320x240 resolution.

hdcmi->ErrorCode is equal to 64.