board.c: unknown type name 'PALConfig' Topic is solved

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: RoccoMarco, barthess

TheSlowGrowth
Posts: 2
Joined: Sat Apr 14, 2018 12:19 am
Has thanked: 2 times

board.c: unknown type name 'PALConfig'

Postby TheSlowGrowth » Sat Apr 14, 2018 12:39 am

Hello,

I'm trying to get ChibiOS 18.2.0 running on my custom board with an STM32F427. I generated the board.c/h files with ChibiStudio (Preview 19).
During compilation, I get this:

Compiling board.c
board.c:30:1: error: unknown type name 'PALConfig'
const PALConfig pal_default_config = {
^


Which suprises me. I have not changed the auto-generated files and PAL is enabled in halconf.h. I see that PALConfig is only defined in the GPIOv1 files of the HAL port, e.g. in os/hal/ports/STM32/LLD/GPIOv1/hal_pal_lld.h but the STM32F427 uses GPIOv2 (and correctly, those are also included by the chibios makefile). PALConfig is not defined anywhere in the GPIOv2 files, as far as I can tell.
I'm wondering if I made a mistake during generation of these files or if I'm having a problem with my build system.

Maybe you can give me some hints as searching brings up zero information. I can attach some more files if that helps. Please let me know, which ones.

Thank you so much!
Attachments
sourcefiles.zip
board.c, board.h, halconf.h board.chcfg
(14.13 KiB) Downloaded 139 times

faisal
Posts: 374
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 44 times
Been thanked: 60 times

Re: board.c: unknown type name 'PALConfig'  Topic is solved

Postby faisal » Sat Apr 14, 2018 1:25 am

ChibiStudio board configuration plugin is not up to date. If you're okay using the command line, you can generate the .c/.h/.mk files using fmpp -C board.fmpp . Check out os/hal/boards in 18.2 . The board files expected by 18.2 are not backwards compatible with 17.6.

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

Re: board.c: unknown type name 'PALConfig'

Postby Giovanni » Sat Apr 14, 2018 7:19 am

Correct, you need to generate using FMPP or update ChibiStudio. I will upload new plugins during weekend.

Giovanni

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

Re: board.c: unknown type name 'PALConfig'

Postby Giovanni » Sat Apr 14, 2018 10:25 am

I updated the plugins, see here: viewtopic.php?f=13&t=4606

Giovanni

TheSlowGrowth
Posts: 2
Joined: Sat Apr 14, 2018 12:19 am
Has thanked: 2 times

Re: board.c: unknown type name 'PALConfig'

Postby TheSlowGrowth » Sat Apr 14, 2018 1:42 pm

Ah, thank you so much. Now the board.c is identical to the one of the STM32F429DISCOVERY board and it compiles just fine. Thank you for your help!


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 11 guests