Page 1 of 1

STM32L452RC support

Posted: Tue Mar 05, 2019 8:31 pm
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

Re: STM32L452RC support

Posted: Tue Mar 05, 2019 8:53 pm
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