News for hackers. Stuff that matters.
Re:How to flash an LED: writing ARM assembly for an STM32 mi... by _noise_ on Saturday April 04, 2020 @07:12AM (#22777581)
I don't know what issues you are having with STM32 I2C, but I have done dozens of STM32 designs and have never had an issue and needed to bitbang it.
Re:How to flash an LED: writing ARM assembly for an STM32 mi... by dmitrygr on Saturday April 04, 2020 @03:54PM (#22780972)
Send an address only packet (smbus uses these) Just try. Now do it to an address that doesn't ack. Enjoy your wedged i2c state machine.
Re:How to flash an LED: writing ARM assembly for an STM32 mi... by lochsh on Saturday April 04, 2020 @09:59PM (#22783133)
I think it's worth noting that there are multiple I2C peripherals by ST -- one for STM32F1, F4, and L1; and a different one used for STM32F0, F3, F7, L0, and L4.
Re:How to flash an LED: writing ARM assembly for an STM32 mi... by thebruce87m on Saturday April 04, 2020 @06:26PM (#22782045)
I’ve recently used the “HAL_I2C_IsDeviceReady” function to scan the whole address range to find devices on the bus with no issues. I’m not near my PC to double check but I’m pretty sure that does what you’re talking about and seems to work ok for me - unless you’re suggesting it’s intermittent?