cancel
Showing results for 
Search instead for 
Did you mean: 

Generate external loader(.stldr) problem: "cannot find the specified linker script"

FLuba.1
Associate III

Hi, i have done the necessary for generating an external loader(.stldr file) with stm32Cube IDE. When i compile to generate the .stldr file, i get the error "cannot find the specified linker script". In my picture, you can see that i have done everything like it should be done. Can someone help me with this?

I have also tried the following command but didn't work out:cmd.exe /C copy/Y “${BuildArtifactFileBaseName}.elf” “..\STM32L4P5_MX25L12833F.stldr”  

FLuba1_3-1694671213215.png

 

FLuba1_2-1694670998347.png

FLuba1_4-1694671280743.png

 

FLuba1_0-1694670757352.png

FLuba1_0-1694672008311.png

 

 

 

3 REPLIES 3
FLuba.1
Associate III

I'm trying to generate a stldr file by using the method described here : https://www.youtube.com/watch?v=XqCq0xtQmbI&list=PLnMKNibPkDnHIrq5BICcFhLsmJFI_ytvE&index=5

 

Perhaps the use of CP rather than COPY, the quoting, or the \ vs / pathing?

Indicating it's not finding, so either name or path wrong. Have you double checked the file exists, and where it is situated?

 

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

Hello @FLuba.1 

Check this thread
Solved: STM32CubeMX Linker script generation problem - STMicroelectronics Community

It may help! 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.