u/the_hemperor420

Some wonderful time with the STM32
▲ 356 r/embedded

Some wonderful time with the STM32

So I've just been stuck with my STM32's I2C Peripheral for "some" time, trying to only interface a SHT40. Sometimes it worked sometimes the first call, and any afterwards, to HAL_I2C_... just returned HAL_BUSY.

A bug I've never encountered before, that I, for some reason, need to force reset the RCC for the I2C, before any call to the peripheral to not get this occasional bug (happened like every few other boots, and sometimes it happened like 20 times in a row).

Personally at a point where I sat down for such a long time, trying to find the source of a bug (or just a workaround), I spend way too much time making extensive and sarcastic commentary about it, in hope that maybe someday someone reads it, and shares my frustration...

I hope I'm not alone :D

(And of course I do comment my functions properly either way, it's just not that much fun)

u/the_hemperor420 — 2 days ago