fmpp generating board files that fail to compile

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: utzig, lbednarz, tfAteba, barthess, RoccoMarco

DosEresA
Posts: 7
Joined: Thu Jul 09, 2020 9:16 pm
Has thanked: 2 times

fmpp generating board files that fail to compile

Postby DosEresA » Thu Jul 09, 2020 9:38 pm

I have been using ChibiOS since last week and I have to say I am loving it! But here to my problem: I created a board definition file for the STM32F411CE based BlackPill. fmpp creates the board files without issues. However, when I compile my application, I am getting errors in the board.h file (included in zip file), which is being generated with mistakes. In particular:

../ChibiOS/os/hal/boards/STM32F411_BLACKPILL/board.h:364:1: error: stray '#' in program

Because of:

363                                      PIN_MODE_INPUT(GPIOB_SPI2_MOSI) |      \
364 #define VAL_GPIOB_OTYPER (PIN_OTYPE_PUSHPULL(GPIOB_ADC1_IN8) | \

(Line 363 should end with a parenthesis instead of the | \)

There are many other lines like that. What could be wrong? I am using the latest fmpp. Attached is my board configuration file.

I am using Chibios_20.3.1 and fmpp version 0.9.16.

Thanks.
blackpill.board.conf.zip
Board configuration files and generated code
(7.58 KiB) Downloaded 8 times

User avatar
Giovanni
Site Admin
Posts: 13020
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 748 times
Been thanked: 621 times
Contact:

Re: fmpp generating board files that fail to compile

Postby Giovanni » Fri Jul 10, 2020 5:39 am

Hi,

Your XML contains errors, not all ports are defined and not all pins are defined for each port. Use the schema to validate it.

Giovanni

DosEresA
Posts: 7
Joined: Thu Jul 09, 2020 9:16 pm
Has thanked: 2 times

Re: fmpp generating board files that fail to compile

Postby DosEresA » Fri Jul 10, 2020 12:53 pm

Thank you Giovanni for the prompt response and thank you for ChibiOS. I used the validator and added the pins and ports that are not really used in the Black Pill, I thought unused pins could be left out. If I wanted to contribute the file, what steps are necessary?

User avatar
Giovanni
Site Admin
Posts: 13020
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 748 times
Been thanked: 621 times
Contact:

Re: fmpp generating board files that fail to compile

Postby Giovanni » Fri Jul 10, 2020 2:48 pm

Hi,

Make a post in "change request" and attach it in there (zip/7z only).

Giovanni

User avatar
Boris_il_forte
Posts: 11
Joined: Mon Sep 17, 2012 10:40 am
Location: Darmstadt, Germany
Contact:

Re: fmpp generating board files that fail to compile

Postby Boris_il_forte » Sat Aug 22, 2020 8:26 pm

DosEresA wrote:Thank you Giovanni for the prompt response and thank you for ChibiOS. I used the validator and added the pins and ports that are not really used in the Black Pill, I thought unused pins could be left out. If I wanted to contribute the file, what steps are necessary?



Any news about the black pill board file? I also need to use chibios on that board...


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 4 guests