cancel
Showing results for 
Search instead for 
Did you mean: 

New errors when compiling assembly only project

bully
Senior

Hello,

we're maintaining assembly projects to teach baremetal assembly programming on STM32H750 board.

Project used to compile without and warnings, but lately we're getting new errors.

Project is stripped down to bare assembly and probably something is missing... 

This is output :

 

19:36:14 **** Build of configuration Debug for project stm32h7-asm ****

make -j16 all 

arm-none-eabi-gcc -mcpu=cortex-m7 -g3 -DDEBUG -c -list -x assembler-with-cpp -MMD -MP -MF"Core/Startup/startup_stm32h750xbhx.d" -MT"Core/Startup/startup_stm32h750xbhx.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Core/Startup/startup_stm32h750xbhx.o" "../Core/Startup/startup_stm32h750xbhx.s"

arm-none-eabi-gcc -mcpu=cortex-m7 -g3 -DDEBUG -c -list -x assembler-with-cpp -MMD -MP -MF"Core/Src/Main.d" -MT"Core/Src/Main.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Core/Src/Main.o" "../Core/Src/Main.s"

arm-none-eabi-gcc -o "stm32h7-asm.elf" @"objects.list" -mcpu=cortex-m7 -T"D:\Delovni\CubeIDE\Sluzba\ORLab-STM32H7\stm32h7-asm\STM32H750XBHX_RAM.ld" --specs=nosys.specs -Wl,-Map="stm32h7-asm.map" -Wl,--cref -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb

C:/ST/STM32CubeIDE_1.8.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/ST/STM32CubeIDE_1.8.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/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.8.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/ST/STM32CubeIDE_1.8.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/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.8.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/ST/STM32CubeIDE_1.8.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/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.8.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/ST/STM32CubeIDE_1.8.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/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

Finished building target: stm32h7-asm.elf



arm-none-eabi-size stm32h7-asm.elf 

arm-none-eabi-objdump -h -S stm32h7-asm.elf > "stm32h7-asm.list"

 text data bss dec hex filename

 900 24 1568 2492 9bc stm32h7-asm.elf

Finished building: default.size.stdout



Finished building: stm32h7-asm.list

19:36:15 Build Failed. 4 errors, 4 warnings. (took 1s.31ms)

 

 

 

Project works, we can upload it and debug it, not sure why it says 4 errors...

Any advice how to fix the project ?

 

Thanks in advance,

regards.

 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

Pretty sure this was due to a change in the build tools in a version of STM32CubeIDE. Upgrading to the latest version might fix it. If not, falling back to a previous version will.

Or you can just ignore the warnings.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2

Not really errors, just indicating you have no files or file system support.

Why it might pull a STDIO libraries in might be another matter.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
TDK
Guru

Pretty sure this was due to a change in the build tools in a version of STM32CubeIDE. Upgrading to the latest version might fix it. If not, falling back to a previous version will.

Or you can just ignore the warnings.

If you feel a post has answered your question, please click "Accept as Solution".