Skip to main content
Phillip Wolstencroft
Associate II
July 12, 2023
Solved

STM32CubeIDE 1.13.0 problem

  • July 12, 2023
  • 17 replies
  • 33675 views

I have just updated the IDE from 1.12.1 and updated my project as requested but I have encountered an issue when compiling.

I get 3 errors on previously compiling  source code. as follows

PhillipWolstencroft_0-1689145531697.png

Can you help with what might be the problem?

PhilW

    Best answer by HBoss.1

    Same Problem here. Solved as follows:

    - create a new project with 1.13.1
    - grab the files syscalls.c and sysmem.c from Core/Src
    - add those files to your existing project

    You're done

    17 replies

    Peter BENSCH
    Technical Moderator
    July 12, 2023

    It looks like you have the same problem as this one, probably the workaround will help you?

    Regards
    /Peter

    VK Verma
    Associate III
    July 13, 2023

    Hello Mr. Peter,

    After updating to new STM32CUbeIDE version 1.13.0 , following build errors generated, my all working project show similar errors, I am completely stuck-up, kindly suggest some way out in the existing  version or suggest some way to rollback.

    Regards,

    VK Verma

        

    C:/ST/STM32CubeIDE_1.3.0/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.3.0/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.3.0/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.3.0/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-fstatr.o): in function `_fstat_r':
    (.text._fstat_r+0xe): warning: _fstat is not implemented and will always fail
    C:/ST/STM32CubeIDE_1.3.0/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.3.0/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-isattyr.o): in function `_isatty_r':
    (.text._isatty_r+0xc): warning: _isatty is not implemented and will always fail
    C:/ST/STM32CubeIDE_1.3.0/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.3.0/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.3.0/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.3.0/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':

    Associate
    July 12, 2023

    Same problem for me after the update, unfortunately the workaround doesn't help.
    Any other suggestion?

    Phillip Wolstencroft
    Associate II
    July 13, 2023

    I could not get the solution above to work.
    I then saved a copy of my project for reference and regenerated the code from CubeMX.
    I checked/edited my code comparing to my saved copy, including my .ld file.

    I can now compile it with version 1.13.0

     

    Visitor II
    July 13, 2023

    Absolutely same errors as in DD's error.png. 
    The workaround doesn'thelp for me too.

    I am using 12.1 instead until someone has another workaround / can help.

     

     

    Visitor II
    July 17, 2023

    I am having this exact issue as well (even with a fresh install of the IDE and CubeMX within a Linux environment).  On my windows box the old versions of both the IDE and CubeMX worked just fine and since the upgrade I can not even compile STM's own example and demo projects without getting this error

    Visitor II
    July 17, 2023

    Just to update anyone looking at this, once I rolled back to version 1.10.1, everything (including STM's own project samples) builds just fine

    RhSilicon
    Lead
    July 17, 2023

    There are two problems when using the STM32CubeIDE, the version of the IDE itself and the version of the firmware it uses, for example FW_F4 1.27.1 for STM32F4.

    RhSilicon
    Lead
    July 17, 2023

    STM32CubeIDE_1.13.0.png

    Good to know that there have been errors, I will wait a little longer before updating, 1.12.1 is still sufficient for my project that uses F4.

    Peter BENSCH
    Technical Moderator
    July 18, 2023

    I have the impression that we should tackle the problem properly for once. I got similar warnings when I imported a rather old project.
    After a little investigation, I found the cause: it probably does not depend on the respective firmware version, but occurs due to newlib and references to undeclared functions. If these functions are not used in the respective project and one could therefore debug them, it probably helps to define the functions in main.c under private defines. I have defined the functions as weak so that you can always add them and not get errors if they are defined in the project anyway, e.g.:

     

    // to extend/modify depending on the behaviour in your project
    
    __attribute__((weak)) void _close(void){}
    __attribute__((weak)) void _lseek(void){}
    __attribute__((weak)) void _read(void){}
    __attribute__((weak)) void _write(void){}
    

     

    Hope that helps?

    Regards
    /Peter

    Associate III
    August 23, 2023

    This is working just fine, Thank you Peter

    OHaza.1
    Associate III
    July 18, 2023

    I had this problem on an old project.

    I changed the runtime library from reduced C 8168770e-c53c-4dfb-b401-2bd997c7d989.jpgto runtime C and it built.

    mfrank9
    Associate III
    August 23, 2023

    Unfortunately, that didn't work in my case.

    mfrank9
    Associate III
    August 9, 2023

    It's sad that this topic is already a month old and there is still no STM32CubeIDE version that fixes this.
    Consider that this would affect a lot of users.

    In the meantime I know some who have therefore switched to an older version.

    Mohammed Eshaq
    Associate II
    August 14, 2023

    Same thing happened with me when I updated my CubeIDE. It's becuase of the updated GNU toolchain.

    Go to your project's properties, C/C++ Build, Settings, Open Toolchain Manager, then install a toolchain older than your current one. When done, use the GNU toolchain that you just installed and the issues should go away.

     

    MohammedEshaq_0-1692007274707.png

     

    mfrank9
    Associate III
    August 23, 2023

    Thanks. Changing the tollchain worked for me too :)