2016-09-06 04:59 AM
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-debug2016-09-06 05:28 AM
Hi,
I suggest, as a first step, to run the I2C example available in 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_AdvComITIn 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