cancel
Showing results for 
Search instead for 
Did you mean: 

I have a error related to APBPrescTable. It is in the .h file but no table. Have I loaded the IDE incorrectly?

BCarl.1
Associate II
 
12 REPLIES 12
BCarl.1
Associate II

Thank you for your help. I will continue trying to get the IDE to load properly to the correct version. I did find that AHBP table was not defined in version 1.24.2 of the .c file. The v1242 zip has the .c file with AHBP and APBP defined. I keep trying to get it to install this version but having a hard time getting it to select that .c file. I will keep trying.

Hans T
Associate III

I have added this to system_stm32f4xx.c

/** @addtogroup STM32F4xx_System_Private_Variables

 * @{

 */

 /* This variable is updated in three ways:

   1) by calling CMSIS function SystemCoreClockUpdate()

   2) by calling HAL API function HAL_RCC_GetHCLKFreq()

   3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency 

     Note: If you use this function to configure the system clock; then there

        is no need to call the 2 first functions listed above, since SystemCoreClock

        variable is updated automatically.

 */

 uint32_t SystemCoreClock = 16000000;

const uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};

//Iam

const uint8_t APBPrescTable[8] = {0, 0, 0, 0, 1, 2, 3, 4};

wojtekdera
Associate II

creating new project helped. i also copied:

uint32_t SystemCoreClock = 16000000;
const uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};
const uint8_t APBPrescTable[8] = {0, 0, 0, 0, 1, 2, 3, 4};

 

to system_stm32f7xx.c (or system_stm32f4xx.c in your case)