cancel
Showing results for 
Search instead for 
Did you mean: 

Firmware package bug with UART and DMA in STM32Cube FW_G0 V1.6.3

Karl Yamashita
Principal

There is a bug in the FW package V1.6.3 where the UART and DMA doesn't work correctly.

I've been using FW package V1.6.2 for awhile with UART in DMA circular mode and it has never had an issue.

 

I've recently made a copy of the project to make an A and B comparison because we needed to make some subtle changes. I migrated to the latest FW Package V1.6.3 for the B project.

With V1.6.3, when receiving a string command, i only receive a few character from the beginning of the string and the last few characters from the end of the string. A bunch of characters are missed from the middle of the string. 

 

I decided to go back to FW package V1.6.2 in CubeMX because that is the only thing that really changed and generated the code. The project works correctly.

 

What i see in V1.6.3 are a lot of missing huart->TxXferCount = 0U; and huart->RxXferCount = 0U;  throughout the stm32g0xx_hal_uart.c file compared to V1.6.2

In WinMerge you can see in the left column a bunch of differences, mostly the missing huart->TxXferCount and huart->RxXferCount

  

KarlYamashita_0-1778722634952.png

 

WinMerge also shows in folder mode, a lot of the HAL drivers have changed. 

 

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.
CAN Jammer an open source CAN bus hacking tool
CANableV3 Open Source

1 REPLY 1
Saket_Om
ST Employee

Hello @Karl Yamashita 

To help us investigate the issue more effectively, could you please provide a few additional details?

  • Could you describe the exact scenario in which the issue occurs?
  • Which device is transmitting the UART data to the MCU?
  • Could you please confirm the exact MCU part number being used?
  • If possible, could you also share a minimal example project that reproduces the issue on your side?
To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om