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

Post by zmolnar »

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: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L432, STM32L433 and STM32L443 HAL port issues

Post by Giovanni »

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: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L432, STM32L433 and STM32L443 HAL port issues

Post by Giovanni »

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

Post by avrhack »

What was the drive for having that different version and what will be missed if it is removed?
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L432, STM32L433 and STM32L443 HAL port issues

Post by Giovanni »

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

Post by avrhack »

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: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L432, STM32L433 and STM32L443 HAL port issues

Post by Giovanni »

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

Post by avrhack »

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: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L432, STM32L433 and STM32L443 HAL port issues

Post by Giovanni »

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

Post by avrhack »

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.
Post Reply