cancel
Showing results for 
Search instead for 
Did you mean: 

Build error

Gnahore
Senior

Hi, 

I tried to build my project but I faced these errors :

--------------------------------------------------------------------------------------------------------------------------------------------------

C:/ST/STM32CubeIDE_1.12.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/ST/STM32CubeIDE_1.12.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-closer.o): in function `_close_r':

(.text._close_r+0xc): warning: _close is not implemented and will always fail

C:/ST/STM32CubeIDE_1.12.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/ST/STM32CubeIDE_1.12.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lseekr.o): in function `_lseek_r':

(.text._lseek_r+0x10): warning: _lseek is not implemented and will always fail

C:/ST/STM32CubeIDE_1.12.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/ST/STM32CubeIDE_1.12.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-readr.o): in function `_read_r':

(.text._read_r+0x10): warning: _read is not implemented and will always fail

C:/ST/STM32CubeIDE_1.12.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/ST/STM32CubeIDE_1.12.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-writer.o): in function `_write_r':

(.text._write_r+0x10): warning: _write is not implemented and will always fail

C:/ST/STM32CubeIDE_1.12.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol Reset_Handler; defaulting to 0000000008000000

--------------------------------------------------------------------------------------------------------------------------------------------------

 Can someone helped me please? 

1 ACCEPTED SOLUTION

Accepted Solutions

I indeed submitted a ticket and the support solved my issue.

For whoever is in this case too, here's the solution that worked for me :

Open your project in STM32CubeIDE, make sure you have already included all the folders you have created yourself, then in the project explorer right click on the folder in the project > properties and uncheck the "Exclude resource from build" button (C/C++ Build). Check all the folders and do it for all. It should fix your problem

View solution in original post

9 REPLIES 9
Issamos
Lead II

Hello @Gnahore 

I suggest you to:

  • Update your firmware to the last version.
  • Check your linker configuration because it seems that he can't find some functions.
  • Make sure to include all headers you need.

Best regards .

II

Hello @Issamos ,

Do you mind explain how to do these 3 things? Please

Edit : when i try to update cubeIDE (Help > Check for updates) I get the message "no update found".

Issamos
Lead II
  • Update your current installation of STM32CubeIDE using: Help > Check for updates. When Updating STM32CubeIDE. If the post-update restart fails. STM32CubeIDE must be restarted manually.
  • Include all files and libraries your going to use in your project.
  • Call all headers that you're going to use ( Hal_ADC_...h, for example)

 best regards.

II

I already tried to update it and as my previous reppy says I got the message "no update found". But I think it's because my CubeIDE is on date, when I launch it says it is the version 1.13.1

I also already included all the folders : Project > properties > C/C++ General > Paths and Symbols. In the includes tab : Add > checked "is a workspace path" > workspace.. > selected my own includes (.h) folder. Then in the source location : > add folder.. > selected my own folder which is constitute of my include folder and my source folder.

And in my code, I call all the file needed (#include "xxxxxxx.h").

I don't know what is the issue because I didn't have this issue before

Hello @Gnahore,

First let me thank you for posting.

The fixing of this issue is ongoing.

The Internal ticket number is: 160082 (This is an internal tracking number and is not accessible or usable by customers). 

I advise you to consult this Post to get more information related to this issue.

I will get back to you as soon as the request is analyzed.

Thanks.

Mahmoud.

 

 

 

 

I indeed submitted a ticket and the support solved my issue.

For whoever is in this case too, here's the solution that worked for me :

Open your project in STM32CubeIDE, make sure you have already included all the folders you have created yourself, then in the project explorer right click on the folder in the project > properties and uncheck the "Exclude resource from build" button (C/C++ Build). Check all the folders and do it for all. It should fix your problem

Hi,

I am also facing the same issue and I verified all folders and all were unchecked, but still problem persist. Can you suggest other way out please ?

Regards,

VK Verma

 

bless you friend I'm breaking my head on this for like 3 days and always had a feeling it's probably some check hidden in mountain of properties and options

iforce2d
Associate III

The accepted solution here is rather poorly described, I'm not sure if it is even the solution either. There is some in-depth discussion on SO which might be useful: https://stackoverflow.com/questions/73742774/gcc-arm-none-eabi-11-3-is-not-implemented-and-will-always-fail

Chances are if you had an existing project and this problem started when you upgraded CubeIDE, the most straightforward thing to do is tell CubeIDE to use the same toolchain as you had before, instead of the latest. You can do this under Project -> Settings -> C++ build -> Settings. First, use the toolchain manager to install the toolchain you want (most likely 10.3-2021.10 which seems to be the most recent one that avoids this problem). Then select 'fixed' and set that as the toolchain to use.

Selection_138.png

One thing I really would NOT recommend, is to ignore these warnings. I just wasted a whole day investigating why my bootloader would read 4 bytes from an external SPI flash memory but only 3 bytes actually got filled correctly. Those warnings seemed unrelated but I confirmed multiple times to my utter disbelief, that merely changing the toolchain was the problem.

In general, maybe this is a lesson to resist the urge to get the latest and newest of everything, and just focus on what actually matters, getting your product made, and not going insane from frustration.