How to receive variable length I2C messages?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-02-09 10:20 PM
Hello, I'm trying to write an I2C slave using HAL which can accept variable length packet sizes. I know this question has been asked before but haven't seen any solutions yet!
The master can send data packets of variable length - all the HAL I2C methods seem to need a 'length' parameter.
Has anyone found a solution to this?
#i2c #halSolved! Go to Solution.
- Labels:
-
I2C
-
STM32Cube MCU Packages
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-02-10 1:28 AM
Hi
Marks.Sasha
,Could you please have a look to these examples under the STM32L4 firmware package :
- STM32Cube_FW_L4_V1.6.0\Projects\STM32L476G_EVAL\Examples\I2C\I2C_TwoBoards_RestartAdvComIT
- STM32Cube_FW_L4_V1.6.0\Projects\STM32L476G_EVAL\Examples\I2C\I2C_TwoBoards_RestartComIT
-Nesrine-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-02-10 1:28 AM
Hi
Marks.Sasha
,Could you please have a look to these examples under the STM32L4 firmware package :
- STM32Cube_FW_L4_V1.6.0\Projects\STM32L476G_EVAL\Examples\I2C\I2C_TwoBoards_RestartAdvComIT
- STM32Cube_FW_L4_V1.6.0\Projects\STM32L476G_EVAL\Examples\I2C\I2C_TwoBoards_RestartComIT
-Nesrine-
