Skip to main content
petrovchita
Associate
September 6, 2016
Question

HAL I2C

  • September 6, 2016
  • 1 reply
  • 663 views
Posted on September 06, 2016 at 13:59

Hello friends. I'm having difficulty with the work via a I2C interface using the STM32 HAL Library. Microcontroller STM32 F205RG. The project generated STM32CubeMX. The problem is this: in debug mode or after programming, followed by a soft reset turns to work correctly with I2C - no error! But after turning off the power of the microcontroller, firmware crashes on the stage of sending or reading data on the interface I2C. What is my fault ?

#hal-i2c-debug
This topic has been closed for replies.

1 reply

slimen
Visitor II
September 6, 2016
Posted on September 06, 2016 at 14:28

Hi,

I suggest, as a first step, to run the I2C example available in

http://http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef2.html

library and compare your own project/code and configuration to identify what is going wrong:

 STM32Cube_FW_F2_V1.4.0\Projects\STM322xG_EVAL\Examples\I2C\I2C_TwoBoards_AdvComIT

In order to more understand the issue you are facing, please share your .ioc file and mention which Firmware and CubeMx version you have used.

Regards