Page 1 of 1

GPIOv2 and ChibiOS_18.2.1

Posted: Tue Jun 12, 2018 3:41 pm
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

Re: GPIOv2 and ChibiOS_18.2.1

Posted: Tue Jun 12, 2018 4:56 pm
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.

Re: GPIOv2 and ChibiOS_18.2.1

Posted: Thu Jun 21, 2018 12:37 am
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?

Re: GPIOv2 and ChibiOS_18.2.1

Posted: Thu Jun 21, 2018 7:46 am
by Giovanni
Hi,

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

It is also included in the latest ChibiStudio.

Giovanni