Skip to main content
frackers
Senior
January 16, 2018
Question

HAL_DCMI_Stop timeout infinite loop

  • January 16, 2018
  • 2 replies
  • 1063 views
Posted on January 16, 2018 at 22:29

STM32Cube_FW_F4_V1.18.0 module stm32f4xx_hal_dcmi.c has a bug in HAL_DCMI_Stop such that when the 'count' variable is decremented to zero (to indicate a timeout), the loop continues.

I reckon there should be a 'break;' after the line

status = HAL_TIMEOUT;

Discovered after I lost vsync from a camera, tried to stop it and an hour later was still waiting!!

    This topic has been closed for replies.

    2 replies

    frackers
    frackersAuthor
    Senior
    January 16, 2018
    Posted on January 16, 2018 at 22:37

    Just checked the F7 DCMI HAL code and that is OK.

    Technical Moderator
    January 17, 2018
    Posted on January 17, 2018 at 11:25

    Hello

    Gilks.Robin

    ,

    Thank you for your reported issue. We raised this internally for fix.

    Kind Regards,

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    Netanel Zrihen
    Visitor II
    July 13, 2018
    Posted on July 13, 2018 at 11:27

    Hello,

    This issue is still present on 

    STM32Cube_FW_F4_V1.21.0.

    Do you know when it will be fixed?

    Thanks and regards,

    Netanel

    Technical Moderator
    July 13, 2018
    Posted on July 13, 2018 at 14:23

    Hello All,

    We have already passed this issue along to our development team and will be fixed in the next release of STM32CubeF4 V

    1.22.0.

    So, please Keep an eye out for the next update!

    with Regards,

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks