Page 1 of 1

fmpp generating board files that fail to compile

Posted: Thu Jul 09, 2020 9:38 pm
by DosEresA
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

Re: fmpp generating board files that fail to compile

Posted: Fri Jul 10, 2020 5:39 am
by Giovanni
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

Re: fmpp generating board files that fail to compile

Posted: Fri Jul 10, 2020 12:53 pm
by DosEresA
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?

Re: fmpp generating board files that fail to compile

Posted: Fri Jul 10, 2020 2:48 pm
by Giovanni
Hi,

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

Giovanni

Re: fmpp generating board files that fail to compile

Posted: Sat Aug 22, 2020 8:26 pm
by Boris_il_forte
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...