This is driving me nuts. It looks like SPI5/6 isn't setup for STM32F429. In the MCUCONF from uGFX only SPI5 is set to true and I get
Code: Select all
chibios_16\os\hal\ports\STM32\LLD\SPIv1\spi_lld.c||In function 'spi_lld_init':|
||'SPI5' undeclared (first use in this function)|
chibios_16\os\hal\ports\STM32\LLD\SPIv1\spi_lld.c|263|note: each undeclared identifier is reported only once for each function it appears in|
chibios_16\os\hal\ports\STM32\LLD\SPIv1\spi_lld.c||In function 'spi_lld_start':|
.\chibios_16\os\hal\ports\STM32\STM32F4xx\stm32_rcc.h|861|error: 'RCC_APB2ENR_SPI5EN' undeclared (first use in this function)|
.\chibios_16\os\hal\ports\STM32\STM32F4xx\stm32_rcc.h|102|note: in definition of macro 'rccEnableAPB2'|
chibios_16\os\hal\ports\STM32\LLD\SPIv1\spi_lld.c|386|note: in expansion of macro 'rccEnableSPI5'|
chibios_16\os\hal\ports\STM32\LLD\SPIv1\spi_lld.c||In function 'spi_lld_stop':|
.\chibios_16\os\hal\ports\STM32\STM32F4xx\stm32_rcc.h|870|error: 'RCC_APB2ENR_SPI5EN' undeclared (first use in this function)|
.\chibios_16\os\hal\ports\STM32\STM32F4xx\stm32_rcc.h|116|note: in definition of macro 'rccDisableAPB2'|
chibios_16\os\hal\ports\STM32\LLD\SPIv1\spi_lld.c|470|note: in expansion of macro 'rccDisableSPI5'|
||=== Build finished: 3 errors, 0 warnings (0 minutes, 2 seconds) ===|
If I change it to just SPI1 or 2 its fine. So how do I get SPI5 to work? I need it the discovery board hardware.
Once I get past the SPI issue(temp changing to SPI1) I get FMC errors among others referring to LTDC and such. The only place the stm32f4_fmc.h/c files come from are uGFx does ChioBios support access to FMC through its hal or is something else going on and this is a uGFX question?