2016-04-19 08:18 AM
Hello,
all ???_rcc.c files, e.g. STM32Cube_FW_F7_V1.3.0/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.c define const uint8_t APBAHBPrescTable[16] = {0, 0, 0, 0, 1, 2, 3, 4, 1, 2, 3, 4, 6, 7, 8, 9}; This contradicts the description in the reference manual Bits 7:4 HPRE[3:0]: AHB prescaler These bits are set and cleared by software to control the division factor of the AHB clock. 0xxx: SYSCLK not divided The definition shoud read const uint8_t APBAHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};2016-04-19 06:23 PM
It's a dual use table for PPRE1 and PPRE2 (APB), not just the AHB, where arguably the 000/0000 case is no division.
Perhaps they should use two table?2016-04-20 03:22 AM
Hi bonnes.uwe,
Thank you for your feedback. The issue has been reported internally.-Syrine-