STM32 MCUs Embedded software

Ask questions and find answers on STM32Cube packages, including HAL, LL and middleware, and expansion software.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! Hall i2c

hi I'm trying to write some code to read on i2c an as 4058b encoder with the HALL library with stm32, with arduino it works perfectly:Wire.beginTransmission (_slaveAdress);Wire.write (internal_register);Wire.endTransmission ();Wire.requestFrom (_slav...

SDall by Associate II
  • 733 Views
  • 2 replies
  • 0 kudos

Problem with I2C slave HAL transmit.

I'm tring to transmit as a slave to the master with I2C in a STM32F446RE but i can't get to it.When there is no code running on the MCU i can see the master requesting me to write on the osciloscope. But when I use this code: if(HAL_I2C_Slave_Rece...

Mvega by Associate II
  • 476 Views
  • 0 replies
  • 0 kudos

Resolved! My STM32F3 I2C won't send a start sequence.

I am using the STM32F30x_DSP_StdPeriph_Lib_V1.2.3 library following instructions given in stm32f30x_12c.c for the initilization:#define I2C_SHORT_TIMEOUT ((uint32_t)0x1000) #define I2C_LONG_TIMEOUT ((uint32_t) (10 * I2C_SHORT_TIMEOUT)) #define I2Cx_R...