STM32L432, STM32L433 and STM32L443 HAL port issues Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
zmolnar
Posts: 7
Joined: Wed Jul 18, 2018 12:46 pm
Been thanked: 2 times

STM32L432, STM32L433 and STM32L443 HAL port issues  Topic is solved

Postby zmolnar » Wed Mar 06, 2019 10:43 am

Hi!

I discovered two possible issues in the HAL port of STM32L432, STM32L433 and STM32L443 micros:

1. it uses GPIOv3 driver. This might be wrong, as these micros don't have ASCR. (page 274)
2. In the config of STM32L433 MCU SPI2 and I2C2 are disabled although they do exist in the controller (page 61-62)

STM32L41xxx/42xxx/43xxx/44xxx/45xxx/46xxx advanced Arm®-based 32-bit MCUs

I'm using this version:

Code: Select all

gdisirio committed Jan 6, 2019
c62c5f50629f340eb3af59b0da2efea0ff7e8af5
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12537 110e8d01-0319-4d1e-a829-52ad28d1bb01


If you can confirm, that these are real issues, later on I can provide you patches as well, but I don't have boards to test it.

BR,
Zoltan

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: STM32L432, STM32L433 and STM32L443 HAL port issues

Postby Giovanni » Sun Jun 30, 2019 4:56 pm

Apparently ST dropped this ASCR register for newer devices, it is not present in the new G0 and L5 families.

GPIOv3 can work when the register is not present, any write there is harmless. Still thinking to a full solution.

Giovanni

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: STM32L432, STM32L433 and STM32L443 HAL port issues

Postby Giovanni » Sat Feb 13, 2021 10:32 am

bump

I am thinking to remove GPIOv3 entirely...

Giovanni

avrhack
Posts: 140
Joined: Tue Dec 24, 2013 1:42 pm
Has thanked: 17 times
Been thanked: 3 times

Re: STM32L432, STM32L433 and STM32L443 HAL port issues

Postby avrhack » Sat Feb 13, 2021 12:07 pm

What was the drive for having that different version and what will be missed if it is removed?

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: STM32L432, STM32L433 and STM32L443 HAL port issues

Postby Giovanni » Sat Feb 13, 2021 12:09 pm

The difference is the ASCR register in v3, something that ST removed in all successive devices.

Giovanni

avrhack
Posts: 140
Joined: Tue Dec 24, 2013 1:42 pm
Has thanked: 17 times
Been thanked: 3 times

Re: STM32L432, STM32L433 and STM32L443 HAL port issues

Postby avrhack » Sun Apr 11, 2021 10:35 pm

I've just been working on an STM32L433 solution and noticed the STM32_HAS_I2C2 error in the registry. Irrespective of the ASCR register, surely this is a bug in the registry that is simply incorrect for the L433 as it does have I2C2?

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: STM32L432, STM32L433 and STM32L443 HAL port issues

Postby Giovanni » Mon Apr 12, 2021 6:59 am

Hi,

This has been reported among other problems: viewtopic.php?f=35&t=5823

Giovanni

avrhack
Posts: 140
Joined: Tue Dec 24, 2013 1:42 pm
Has thanked: 17 times
Been thanked: 3 times

Re: STM32L432, STM32L433 and STM32L443 HAL port issues

Postby avrhack » Mon Apr 12, 2021 7:59 am

Giovanni wrote:Hi,

This has been reported among other problems: http://forum.chibios.org/viewtopic.php?f=35&t=5823

Giovanni


Thanks Giovanni. I did think it was very strange if no-one else had spotted it and did a search which is how I found this topic but clearly didn’t get the right search terms! Apologies.

I’ve made the changes myself locally pending the fix making it into an official build.

Cheers.

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: STM32L432, STM32L433 and STM32L443 HAL port issues

Postby Giovanni » Sat Apr 24, 2021 9:04 am

Hi,

That other bug has been fixed, could you also check everything is fine now? thanks.

Giovanni

avrhack
Posts: 140
Joined: Tue Dec 24, 2013 1:42 pm
Has thanked: 17 times
Been thanked: 3 times

Re: STM32L432, STM32L433 and STM32L443 HAL port issues

Postby avrhack » Sat Apr 24, 2021 9:34 am

Giovanni wrote:Hi,

That other bug has been fixed, could you also check everything is fine now? thanks.

Giovanni


Yes saw your update on that. Will do - may take me a few days as we have visitors this weekend but will test early next week thanks.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 22 guests