STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Reading I2C bits with STM32F4Discovery

Hello. I have the following scheme for reading the output of humidity sensor that communicates via I2C:How would I execute this sequence with STM32CubeMX IDE and HAL libraries? The output of the sensor is as follows: All I have now is this code: uint...

0693W000001q9ZIQAY.png 0693W000001q9ZSQAY.png
BKem.1 by Associate II
  • 682 Views
  • 5 replies
  • 0 kudos

Resolved! How to handle HardFault?

There is a function called HardFault_Handler in the STM32 MCUs (full code below). This function I usually work with when debugging but am unsure how to use this for handling error. What is the correct protocol to handle errors in this function? If a ...

AAgar.2 by Associate III
  • 3613 Views
  • 3 replies
  • 1 kudos

Detecting when I2C bus becomes IDLE

STM32F302K8 here. According to the manual, there is a flag in the ISR to see if the bus is busy, but it does not generate an interrupt when cleared. Also the STOP condition says it is only generated while you are the master and generate it, or are ...

psusi by Associate II
  • 1025 Views
  • 4 replies
  • 0 kudos