cancel
Showing results for 
Search instead for 
Did you mean: 

I am Using STM32h743-EVAl2 Board. I want to write data into Backup SRAM. When Tried with HAL API's, it throws an undefined reference to __HAL_RCC_PWR_CLK_ENABLE and __HAL_RCC_BKPSRAM_CLK_ENABLE(). Can anyone Please Help

RG.3
Associate III
 
3 REPLIES 3
Imen.D
ST Employee

Hello @RG.3​ ,

Check your project that contains the include libraries is set up correctly.

You need to set up properly the "Include Paths" for the project.

You can share your screenshot and more details from the console view, in order to help you.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
RG.3
Associate III

THis is the message I am getting in the console

arm-none-eabi-gcc -o "743IStandby.elf" @"objects.list"  -mcpu=cortex-m7 -T"C:\Users\SESA566532\Desktop\st_Learning\Mastering_Stm32\743IStandby\STM32H743XIHX_FLASH.ld" --specs=nosys.specs -Wl,-Map="743IStandby.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group

c:\st\stm32cubeide_1.6.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\bin\ld.exe: Core/Src/main.o: in function `main':

C:/Users/SESA566532/Desktop/st_Learning/Mastering_Stm32/743IStandby/Debug/../Core/Src/main.c:95: undefined reference to `__HAL_RCC_PWR_CLK_ENABLE'

c:\st\stm32cubeide_1.6.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\bin\ld.exe: C:/Users/SESA566532/Desktop/st_Learning/Mastering_Stm32/743IStandby/Debug/../Core/Src/main.c:96: undefined reference to `__HAL_RCC_BKPSRAM_CLK_ENABLE'

collect2.exe: error: ld returned 1 exit status

Billy OWEN
ST Employee

Hi @RG.3​ 

The forum moderator had marked your post as needing a little more investigation and direct support. An online support case has been created on your behalf, please stand by for just a moment and you will hear from us.

If anyone else has similar types of questions, please feel free to open a support case directly at http://my.st.com/ols

Regards,

Billy