Stm32CubeF4 I2C examples for different boards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-10 4:07 AM
Hi,
​
Im trying to establish an I2C communication between stm32f446nucleo board and stl32f469i disco board,​
​
I flashed the stm32f446-nucleo I2C master code example from cubeF4stm32f446 into an stm32f446 nucleo board and the slave I2C code example from cubeF4-stm32f496i disco into an stm32f469i disco board,
​
As a result i get an indication ( LedToggle ) that there was an error during communication,
​​
Is what I did correct ?
​
Solved! Go to Solution.
- Labels:
-
I2C
-
STM32Cube MCU Packages
-
STM32F4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-16 4:41 AM
Hi @Malek Mahar​ ,
If problem is still there, I have some proposals/questions:
- is there any error flag set in I2C status register while debugging?
- make sure to add GND wires (refer to readme files for each example where used pins are precised)
- make sure that you choose properly between Master and Slave through "#define MASTER_BOARD" in the "main.c" file
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-10 6:54 AM
Hello,
Have you tried to debug, do you see something on the I2C lines ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-16 2:42 AM
Yes I did, the problem was related to the hardware part, SDA and SCL not changing from HIGH to LOW,
thank you for your answer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-16 4:41 AM
Hi @Malek Mahar​ ,
If problem is still there, I have some proposals/questions:
- is there any error flag set in I2C status register while debugging?
- make sure to add GND wires (refer to readme files for each example where used pins are precised)
- make sure that you choose properly between Master and Slave through "#define MASTER_BOARD" in the "main.c" file
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-16 10:27 AM
hI @Amel NASRI​ ,
https://community.st.com/s/question/0D53W00000sqQt9SAE/i2c-between-two-stm32-boards-not-working
this is a more detailed post just I have just published,
thank you,
