Skip to main content
Associate
Jun 29, 2024 1:35 PM UTC
Solved

STM32F091: I2C OLED Display Stuck in STM32

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.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Jun 29, 2024 2:32 PM UTC

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

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Jun 29, 2024 2:32 PM UTC

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

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Associate
Jul 1, 2024 8:42 AM UTC

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.