Skip to main content
Visitor II
July 17, 2025
Question

Error: "non constant or forward reference address expression for section"

  • July 17, 2025
  • 4 replies
  • 858 views

Hi All ,

Am imported a example project in  stm32cube and i tried to build am getting error as 

Description Resource Path Location Type
non constant or forward reference address expression for section .ARM.extab LTDC_Paint line 90, external location: c:\st\stm32cubeide_1.6.0\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:D:\stm32_projects\exp1\LTDC_Paint\STM32CubeIDE\STM32H750XBHX_FLASH.ld C/C++ Problem

 

can u please provide the solution.

thankyou,

regards 

shiva chary

 

    This topic has been closed for replies.

    4 replies

    Super User
    July 17, 2025

    @shiva_chary wrote:

    imported a example project i


    What project ? For what board ?

    Please describe what you actually did.

    Did you make any changes?

    How to write your question to maximize your chances to find a solution

    Technical Moderator
    July 18, 2025

    Hello @shiva_chary ;

     

    Could you please referring to UM2609 section 2.1.3 Importing existing project and following the steps to open the example.

    I hope this help you.

    Thank you.

    Kaouthar

    Super User
    July 18, 2025

    @shiva_chary wrote:

    c:\st\stm32cubeide_1.6.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools...


    Are you really using CubeIDE v1.6.0 ?

    That's really old - current version is 1.19.0 !

    https://community.st.com/t5/stm32cubeide-mcus/stm32cubeide-1-19-0-released/td-p/819568

    Graduate
    November 8, 2025

    Hi,

    I was also getting the same error. But when I changed the toolchain version from 10.3 -> 13.3 , it worked. 

     

    @shiva_chary  

    Seems like warning given in the guide is no more relevant.

    Section 5: build the firmware 

    https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-M4/Modify,_rebuild_and_reload_a_firmware