STM32L433 GPIOH pins disabled Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
Xelus
Posts: 6
Joined: Sat Apr 10, 2021 12:06 pm
Has thanked: 1 time
Been thanked: 4 times

STM32L433 GPIOH pins disabled

Post by Xelus »

The STM32L433 has GPIOH pins included and are disabled as this chip is defined together with STM32L432 which doesn't have GPIOH pins

This can be fixed with a #define check in

Code: Select all

/os/hal/ports/STM32/STM32L4xx/stm32_registry.h
to enable GPIOH pins for STM32L433.

Thanks,
Xelus
Xelus
Posts: 6
Joined: Sat Apr 10, 2021 12:06 pm
Has thanked: 1 time
Been thanked: 4 times

Re: STM32L433 GPIOH pins disabled

Post by Xelus »

Should STM32L433 and STM32L432 potentially be split?

L433 has one extra i2c and also one extra spi peripheral compared to L432.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L433 GPIOH pins disabled

Post by Giovanni »

Xelus wrote:Should STM32L433 and STM32L432 potentially be split?

L433 has one extra i2c and also one extra spi peripheral compared to L432.


Probably yes.

Giovanni
Xelus
Posts: 6
Joined: Sat Apr 10, 2021 12:06 pm
Has thanked: 1 time
Been thanked: 4 times

Re: STM32L433 GPIOH pins disabled

Post by Xelus »

Upon further inspection, the L433 and L443 have the exact same set of peripherals. The only difference being that L443 has the hash/crypto function.

This was found in RM03943 Rev 4, page 61 of 1600.

Therefore the define for STM32L433xx on line 79

Code: Select all

#if defined(STM32L432xx) || defined(STM32L433xx) || defined(__DOXYGEN__)


should be moved to line 300

Code: Select all

#if defined(STM32L443xx) || defined(__DOXYGEN__)

to be changed to

Code: Select all

#if defined(STM32L443xx) || defined(STM32L433xx) || defined(__DOXYGEN__)
Xelus
Posts: 6
Joined: Sat Apr 10, 2021 12:06 pm
Has thanked: 1 time
Been thanked: 4 times

Re: STM32L433 GPIOH pins disabled

Post by Xelus »

D and E ports should also be enabled for the larger pin variants (64 and 100 pins)
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L433 GPIOH pins disabled

Post by Giovanni »

Hi,

Fixed as bug #1154.

Could you please verify that it is as expected? the registry changed a bit in the meanwhile.

Giovanni
Xelus
Posts: 6
Joined: Sat Apr 10, 2021 12:06 pm
Has thanked: 1 time
Been thanked: 4 times

Re: STM32L433 GPIOH pins disabled

Post by Xelus »

Hi Giovanni,

Thanks, just tested. Works now.

Thanks,
Xelus
Post Reply