This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Keil uVision Error L6218E: Undefined Symbol APBPrescTable (referred from stm32f4xx_hal_rcc.o)

I'm new to uVision for a University project and since trying to get my code to build on my PC at home I get this error with any code I try to compile. Anyone know any way to fix this? I've been racking my brain for hours trying to find a solution as I can't work on my project if the code won't even build. Thank you.

Parents
  • STM32Cube_FW_F4_V1.24.1\Projects\STM32446E-Nucleo\Templates\Src\system_stm32f4xx.c

    ..
    
    /* 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};
    const uint8_t APBPrescTable[8] = {0, 0, 0, 0, 1, 2, 3, 4};

Reply
  • STM32Cube_FW_F4_V1.24.1\Projects\STM32446E-Nucleo\Templates\Src\system_stm32f4xx.c

    ..
    
    /* 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};
    const uint8_t APBPrescTable[8] = {0, 0, 0, 0, 1, 2, 3, 4};

Children