2022-08-29 03:27 PM
For some reason I need to rewrite I2C functions from HAL to LL. As I aim to achieve good power consumption results, I decided to use DMA and IT in order to save as much resources as I can. There is all ok with writing data (HAL1 and LL1 pictures) but I'm struggling to receive data from slave using DMA and LL drivers. My observation - after read commands there is no STOP condition (HAL1 vs LL1 again) after transmission and instead 6 bytes I'm receving only 2 (HAL3 vs LL3). I'd appreciate any suggestions to solve the issue. I base on I2C DMA LL example.
I know, there is not much details to take into consideration at this moment but maybe some of you have already faced the problem and point me to the right direction, what I'd appreciate.
HAL1:
LL1
HAL2
LL2HAL3
LL3