cancel
Showing results for 
Search instead for 
Did you mean: 

HAL I2C

petrovchita
Associate II
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
1 REPLY 1
slimen
Senior
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