Skip to main content
Visitor II
June 29, 2024
Solved

STM32F091: I2C OLED Display Stuck in STM32

  • June 29, 2024
  • 1 reply
  • 2180 views

I using OLED I2C display and its interface with STm32F091VBT6 MCU. My application is fuel dispensing i face issue while dispensing the OLED display is stuck. i cant find any error. can any body know me the solution.

i also attached the OLED & I2C file for reference which i made in keil IDE.

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    There's no error management or recovery. Lot of infinite loops with no timeouts. Yeah, so plenty of opportunities to "stuck" up.

    void OLED_Show_0t9_Digit(void)
    {
    uint8_t buf[6]; << This buffer is too small, strings need a NUL

    1 reply

    Graduate II
    June 29, 2024

    There's no error management or recovery. Lot of infinite loops with no timeouts. Yeah, so plenty of opportunities to "stuck" up.

    void OLED_Show_0t9_Digit(void)
    {
    uint8_t buf[6]; << This buffer is too small, strings need a NUL

    Visitor II
    July 1, 2024

    Hello Tesla DeLorean,

    Thanks for give this solution i will take care all the things and upload it again.

    if any error found i will contact you.