AnsweredAssumed Answered

Bad APBAHBPrescTable

Question asked by Uwe Bonnes on Apr 19, 2016
Latest reply on Apr 20, 2016 by Nesrine M
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};


Outcomes