STM32L452RC support

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
zmolnar
Posts: 7
Joined: Wed Jul 18, 2018 12:46 pm
Been thanked: 2 times

STM32L452RC support

Post by zmolnar »

Hi!

I designed a board using STM32L452RC and I've modified HAL to support this MCU. Everything compiles fine, but I couldn't try it so far, because the board is not ready yet.

I have some question regarding HAL. I modified hal_lld.h, stm32_registry.h and created a new linker script.

1. Why is a separate platform_stm32l432.mk needed?
2. In the config of STM32L433 MCU SPI2 and I2C2 are disabled although they do exist in the controller. What is the reason behind? (Page 61-62)
3. GPIOv3 is used for this architecture, which handles ASCR as well. I think it might be wrong, because this micro does not have this register based on the documentation. ASCR exists in the high performance mcu-s like L476 but not in these (Page 274).

Here is the reference manual:
STM32L41xxx/42xxx/43xxx/44xxx/45xxx/46xxx advanced Arm®-based 32-bit MCUs

This is my first approach to understand and modify HAL, so of course, it can happen that I missed something. Could you please help me to clarify my questions?

BR,
Zoltan
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32L452RC support

Post by Giovanni »

Hi,

Bugs are possible, if you have evidence of a problem please report it in "bug reports", we review everything posted there. You could also submit patches there.

About L432, it is separated because differences with the other models in the clock tree. It was just easier to make a different file. If it does not have ASCR then it should use GPIOv2, board files should also be modified.

Giovanni
Post Reply