2019-02-15 12:27 AM
2019-02-15 01:04 AM
Hello,
Which CubeMx and Cube package versions used ?
I cannot reproduce this issue. Can you please share your ioc file for check.
Kind Regards,
Imen
2019-02-15 01:22 AM
Hi,
After more check, I confirm that the problem exists for hdmarx and hdmatx with I2C4.
I transfer this issue to developer team for fix.
Thanks for your contribution.
Thanks,
Imen
2019-02-15 02:09 AM
2019-02-15 02:12 AM
By the way, i2c4 can read external device data, but the i2c+BMDA method does not work. How to solve it?
2019-02-15 05:21 AM
Hi @one V
Thanks for the feedback.
It will be corrected in the next STM32CubeMX version .
Regards,
Nesrine
2019-02-15 05:55 PM
So, the code generated by STM32CUBEMX(5.0.1) in I2C4+BDMA mode is not working now?
2019-02-18 12:30 AM
Hi @one V
DMA requests should not be used when I2C mode is set to one of the SMBUS modes.
That will be corrected in the next STM32CubeMX version.
Regards,
Nesrine
2019-02-18 01:04 AM
Thank you for your reply.
However, I2C mode does not seem to work, can you test it?
2019-02-18 05:18 AM
Hi @one V
In STM32Cube_FW_H7_V1.3.2\Drivers\STM32H7xx_HAL_Driver\Inc path.
In the typedef struct __I2C_HandleTypeDef of stm32h7xx_hal_i2c.h file, you will find :
DMA_HandleTypeDef *hdmatx;
DMA_HandleTypeDef *hdmarx;
but it isn't available in stm32h7xx_hal_smbus.h
So, when I2C mode is set to one of the SMBUS modes as shown in this figure:
The DMA Tab must be removed when I2C is set to SMBUS mode .
==> This problem only exists for I2C4.
This bug will be fixed in the next STM32CubeMX version ( STM32CubeMX 5.1: That will be available Week 9 ).
Regards,
Nesrine.