HAL versions

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

Moderator: RoccoMarco

Post Reply
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

HAL versions

Post by Tectu »

I'm currently trying to set up some template project in an IDE and I'm a bit confused when it comes to the STM32 HAL. Some peripheral have two HAL versions (Like GPIO, SPI, I2C etc). Where do I know from which one I want? When I try to compile (ChibiOS/RT 2.6.3) it looks like some need version 2 (like GPIOv2) but some require version 1 (like SPI). Is there any pattern? Why are there multiple versions anyway?

I'm targetting an STM32F407VGT.


~ Tectu
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: HAL versions

Post by Giovanni »

It is related to the various versions of peripherals present in the STM32 sub-families. See the .mk for the correct driver to use.

Giovanni
Post Reply