GPIOv2 and ChibiOS_18.2.1

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

GPIOv2 and ChibiOS_18.2.1

Post by tsichevski »

Hi,

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?

Regards,
Vladimir
faisal
Posts: 382
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 45 times
Been thanked: 62 times

Re: GPIOv2 and ChibiOS_18.2.1

Post by faisal »

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.
meatball
Posts: 32
Joined: Thu May 19, 2016 4:39 pm
Has thanked: 9 times
Been thanked: 2 times

Re: GPIOv2 and ChibiOS_18.2.1

Post by meatball »

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
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: GPIOv2 and ChibiOS_18.2.1

Post by Giovanni »

Hi,

Download from here: http://fmpp.sourceforge.net/

It is also included in the latest ChibiStudio.

Giovanni
Post Reply