That did the trick, thanks!
For reference, APBPrescTable is in BSP4.2 defined in system_stm32f4xx.c whereas in BSP4.1 it is missing. Instead, in BSP4.1 the affected functions HAL_RCC_GetPCLK1Freq(), HAL_RCC_GetPCLK2Freq() and setting of global SystemCoreClock (all in stm32f4xx_hal_rcc.c) reference APBAHBPrescTable which is defined at the beginning of this file. So adding the below line to system_stm32f4xx.c fixed my problem:
const uint8_t APBPrescTable[8] = { 0, 0, 0, 0, 1, 2, 3, 4 };
I just read in the ST forums that someone using a different dev environment had been caught by this too.
-
This reply was modified 7 years, 7 months ago by parsec67.