Bugfix in Lib/STM32L432/Serial.mod

Report any suspected bugs that you find

Bugfix in Lib/STM32L432/Serial.mod

Postby Marc » Thu Oct 04, 2018 4:00 pm

Hi community,

in the serial library module for the STM32L432 eval board, the USART2_RX Alternate Function 7 instead of 3 was assigned erroneously, and USART bit CR1/UE should be finally enabled after the configuration process.
Find the according patch attached.

Regards,
Marc
Attachments
Serial.mod.zip
Patch for Serial.mod
(496 Bytes) Downloaded 68 times
Marc
 
Posts: 12
Joined: Thu Oct 04, 2018 3:41 pm

Re: Bugfix in Lib/STM32L432/Serial.mod

Postby cfbsoftware » Fri Oct 05, 2018 11:51 am

Hi Marc,

Thank you for your bug report and your suggested corrections. However, won't the AF3 assignment then invalidate RX on PA10 instead?

Perhaps it could be:

Code: Select all
IF usartNo = USART2 THEN config.alternateFunction := GPIO.AF3 END;
cfbsoftware
Site Admin
 
Posts: 355
Joined: Fri Dec 31, 2010 12:30 pm

Re: Bugfix in Lib/STM32L432/Serial.mod

Postby Marc » Sun Oct 07, 2018 8:48 am

Hi Chris,

of course, in case of USART1 is used, so your suggestion is safe.
Marc
 
Posts: 12
Joined: Thu Oct 04, 2018 3:41 pm


Return to Bug Reports

cron