2022-04-11 11:53 AM
I found ZERO help available.
The Makeflie created by STM32CubeIED contains the line:
# Tool invocations
WRC-1734-stm32f072-win.elf WRC-1734-stm32f072-win.map: $(OBJS) $(USER_OBJS) fail-specified-linker-script-missing makefile objects.list $(OPTIONAL_TOOL_DEPS)
arm-none-eabi-gcc -o "WRC-1734-stm32f072-win.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m0 --specs=nosys.specs -Wl,-Map="WRC-1734-stm32f072-win.map" -Wl,--gc-sections -static --specs=nano.specs -mfloat-abi=soft -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
@echo 'Finished building target: $@'
@echo ' '
2022-04-11 12:01 PM
> fail-specified-linker-script-missing
Really? This is generated in the makefile for stm32f072?
There is no such thing as "builder script". Either you mean a linker script (usually a .ld file) or a Makefile, or Eclipse CDT project (.project + .cproject)
Have you created a new CubeIDE project, or this is an existing example or imported from other IDE?
2022-04-12 01:02 AM
Hello there,
I would try to check your build configuration and make sure that the path to the linker script is set up correctly.
The reason for the error is that the path that is written in the configuration contains variables that Eclipse resolves. If the string is empty after the variables have been resolved then the error is added to the makefile to make the user aware.
I'll attach a screenshot showing where the setting is:
In my example I need to have a "STM32L412CBTX_FLASH.ld" in the root of my project, which is where it's located for me.
2023-04-20 10:47 PM
This problem stil exist. STM32CubeIDE Version: 1.12.0
The project was copied to another location. Now Error: Cannot find the specified linker script.
Restore defaults does not help.
When changing the Linker Script path, default: ${workspace_loc:/${ProjName}/STM32F413RGTX_FLASH.ld} to a hard path
The linker script is found but now my .bin file is 680 bytes where 200K was expected.
File comparing the project working on the original location and non working location only shows a difference in the language.settings.xml
2023-04-21 02:53 AM
Found it: somehow the x was upcasted:
STM32F413RGTX_FLASH.ld
STM32F413RGTx_FLASH.ld = OK
2023-04-28 12:35 AM
Hi Mark,
Thank you for finding out.
I had the same issue in IDE 1.12.0 when I clone my project from git.