cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo L152 HAL_I2C_Master_Transmit_IT problem

pchun
Associate

Hi all,

i tested two method of I2C transmit and resulted as follow.

Method 1 :

HAL_I2C_Master_Transmit_DMA(&hi2c1, 0x4E, &Data_M[0], 4);

Nothing come out at the logic analyser

0690X00000ARVHOQA5.jpg

Method 2 :

HAL_I2C_Master_Transmit(&hi2c1, 0x4E, &Data_M[0], 4,1000);

Data come out just nice

0690X00000ARVHiQAP.jpg

method 1 will do the job but the application would required a DMA method to complete the task. Please help if anyone have ever encounter the problem as above. Thanks.

0 REPLIES 0