cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F746ZGT7 Linker error: "Non-constant or Forward Reference Address Expression"

Aashritha_Vuda
Associate II

 

Dear Support Team,

I am encountering an issue while building my project for the STM32F746ZGT7 in STM32CubeIDE version 1.16.0.And I'm working to "DISPLAY BOARD BRING - UP" During the linking process, I receive the following error message:

 

 
C:/ST/STM32CubeIDE_1.16.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.1.0.202410251130/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe:C:\TouchGFXProjects\Display_Bring_Up\STM32F746ZGTX_FLASH.ld:184: non constant or forward reference address expression for section ... collect2.exe: error: ld returned 1 exit status make: *** [makefile:118: Display_Bring_Up.elf] Error 1
 

Steps to Reproduce:

  1. Open STM32CubeIDE version 1.16.0.
  2. Open the STM32F746ZGT7 project.
  3. Attempt to build the project.
  4. The error occurs during the linking phase.

Environment:

  • STM32CubeIDE Version: 1.16.0
  • Toolchain Version: GNU Tools for STM32 (12.3.1)
  • Board: STM32F746ZGT7
  • Operating System: Windows 10

Description of the Problem:

The error appears to be related to an invalid or forward reference address expression in the linker script STM32F746ZGTX_FLASH.ld at line 184. I have already checked the linker script for any invalid address or section definitions, but the issue persists

Steps Taken to Resolve the Issue:

  1. I verified the memory regions and configurations in STM32CubeMX, ensuring they are correctly defined.
  2. I cleaned the project and rebuilt it, but the error still occurs.

Could you kindly provide guidance on how to resolve this issue? Any assistance would be greatly appreciated

 

2 REPLIES 2
Souhaib MAZHOUD
ST Employee

Hello @Aashritha_Vuda 

Could you give a try to the latest version of CubeIDE 1.17.0?

KR, Souhaib

Linker Script not attached..

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..