STMicroelectronics / STM32CubeG4

STM32Cube MCU Full Package for the STM32G4 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
Other
182 stars 98 forks source link

LL SPI_TwoBoards_FullDuplex_DMA_Master_Init examples #4

Closed phryniszak closed 4 years ago

phryniszak commented 4 years ago

In SPI_TwoBoards_FullDuplex_DMA_Master_Init examples SPI1_RX is connected to DMA1_Channel1 and SPI1_TX is connected to DMA1_Channel3, but in code DMA channel 3 is reporting DMA1_ReceiveComplete_Callback and DMA channel 1 DMA1_TransmitComplete_Callback.

The same here: LL_DMA_SetDataLength(DMA1, LL_DMA_CHANNEL_3, ubNbDataToReceive); LL_DMA_SetDataLength(DMA1, LL_DMA_CHANNEL_1, ubNbDataToTransmit);

To set transmit size we use ubNbDataToReceive and to receive ubNbDataToTransmit.

Examples are executing ok but naming is at least confusing.

ASELSTM commented 4 years ago

Hi Phryniszak,

Thank you for your contribution. This issue has been forwarded to our development teams. We will be back to you as soon as they provide us with feedback.

With regards,

ASELSTM commented 4 years ago

Hi Phryniszak,

Our development teams confirmed the issue you pointed out. A fix will be implemented and made available in future release. Thank you once again for your contribution.

With regards,

ASELSTM commented 4 years ago

ST Internal Reference: 80465

ALABSTM commented 4 years ago

Hi Phryniszak,

This issue has been fixed in the frame of the STM32CubeG4 v1.2.0 firmware package already available on GitHub.

With regards,