GPIOv2 and ChibiOS_18.2.1

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
Posts: 35
Joined: Fri Feb 09, 2018 12:44 am
Has thanked: 2 times
Been thanked: 5 times

GPIOv2 and ChibiOS_18.2.1

Postby tsichevski » Tue Jun 12, 2018 3:41 pm


I write a program for STMF4xx processors, and I'm trying to upgrade from ChibiOS 17.6.3 to ChibiOS_18.2.1.
I learned that now I must use the GPIOv2 driver instead of GPIOv1, so I cannot use the PALConfig structure to set the GPIO up anymore.

My question is how should I initialize the periphery now?


Posts: 249
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 35 times
Been thanked: 32 times

Re: GPIOv2 and ChibiOS_18.2.1

Postby faisal » Tue Jun 12, 2018 4:56 pm

Use the .chcfg xml file to define pin configuration, and then use the board.c/.h/.mk generator. It's available in ChibiStudio, or you can run independently using fmpp utility.

Posts: 27
Joined: Thu May 19, 2016 4:39 pm
Has thanked: 9 times
Been thanked: 2 times

Re: GPIOv2 and ChibiOS_18.2.1

Postby meatball » Thu Jun 21, 2018 12:37 am

Can someone someone please describe how to run the FMPP utility? Is there a small program I can download to run the scripts?

User avatar
Site Admin
Posts: 12038
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 544 times
Been thanked: 458 times

Re: GPIOv2 and ChibiOS_18.2.1

Postby Giovanni » Thu Jun 21, 2018 7:46 am


Download from here:

It is also included in the latest ChibiStudio.


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 0 guests