board.c: unknown type name 'PALConfig'
Posted: 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:
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!
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!