New and clean CubeIDE/MX project does not compile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-28 9:00 AM - last edited on ‎2025-04-28 9:30 AM by Andrew Neil
Hi,
I have just set up a fresh and clean STM32F466 project in CubeMX which makes use of a UART and a bunch of GPIOs. right after generating the code (and prior to changing ANYTHING at the generated code!), I get the following compile error in CubeIDE:
c:\st\stm32cubeide_1.11.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe:C:\F\motion\STM32F446RETX_FLASH.ld:88: non constant or forward reference address expression for section .ARM.extab
Any idea how to fix that?
Thanks!
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
-
STM32CubeMX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-29 4:32 AM
OK, finally I found it: at this position there was a statement
(READONLY)
which does not seem to be supported by the GCC-version that comes with CubeIDE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-28 9:23 AM
Include the IOC file you are having issues with.
Ensure you're on the latest CubeMX version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-28 9:48 AM
What is in C:\F\motion\STM32F446RETX_FLASH.ld line 88 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-29 4:32 AM
OK, finally I found it: at this position there was a statement
(READONLY)
which does not seem to be supported by the GCC-version that comes with CubeIDE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-29 8:59 AM
It is supported in more recent toolchains for CubeIDE.
