cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between HAL_DCMI_Stop() and HAL_DCMI_Suspend()?

Jur Div
Associate II
Posted on July 04, 2018 at 12:30

In my program I want to stop the DCMI continuous stream, save the framebuffer to SD-card and then start the DCMI stream again. By stopping the DCMI continuous stream, I mean -> disable DCMI interrupts and DMA interrupts related to DCMI.

In theory, after successfully stopping the DCMI stream, I should then have:

- Framebuffer 'frozen' with complete frame, not updating

- No interrupt requests related to camera

- Possibility to turn this DCMI continuous stream back on, without having to initialize everything from scratch

Which combination of the following functions should I use in order to achieve that?

HAL_DCMI_Stop() + HAL_DCMI_Start_DMA() ?

or maybe

HAL_DCMI_Suspend() + HAL_DCMI_Resume()?

What is the difference between theese?

#stm32f746-discovery #stm32f7
0 REPLIES 0