GPIOv2 and ChibiOS_18.2.1

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

GPIOv2 and ChibiOS_18.2.1

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

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: 176
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 25 times
Been thanked: 20 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.

meatball
Posts: 25
Joined: Thu May 19, 2016 4:39 pm
Has thanked: 9 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
Giovanni
Site Admin
Posts: 11220
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 399 times
Been thanked: 333 times
Contact:

Re: GPIOv2 and ChibiOS_18.2.1

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

Hi,

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

It is also included in the latest ChibiStudio.

Giovanni


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 1 guest