cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F091: I2C OLED Display Stuck in STM32

sagar-moba
Associate

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2

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
Up vote any posts that you find helpful, it shows what's working..

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.