cancel
Showing results for 
Search instead for 
Did you mean: 

Error in building BLE_HID_Mouse example.

GS2
Senior

Hello, I just started with BLE_HID_Mouse example and after Build All I get the follow Error with 2 warnings. Just need a little help - how to fix it.

C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v8-m.main+fp/hard/crtn.o: missing .note.GNU-stack section implies executable stack

C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: NOTE: This behaviour is deprecated and will be removed in a future version of the linker

C:/ST/STM32CubeIDE_1.15.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: BLE_HID_Mouse.elf has a LOAD segment with RWX permissions

Finished building target: BLE_HID_Mouse.elf

 

arm-none-eabi-size BLE_HID_Mouse.elf

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

text data bss dec hex filename

350476 1456 65168 417100 65d4c BLE_HID_Mouse.elf

Finished building: default.size.stdout

 

Finished building: BLE_HID_Mouse.list

 

 

19:13:46 Build Failed. 1 errors, 2 warnings. (took 7s.995ms)

 

1 ACCEPTED SOLUTION

Accepted Solutions
8 REPLIES 8
Imen.D
ST Employee

Hello @GS2 ,

Make sure to use the latest release of STM32CubeMX and Cube firmware package.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
GS2
Senior

Thank you Imen,

I thought that STM32CubeIDE_1.15.1 is the latest. If not - what version is the latest ?

Sorry, I found STM32CubeIDE 1.6.1 - will try that! I hope that this is the latest.

Sorry again, can not download or update to version 1.6.1 . Can you Imen to give a working link to required download?

 

Imen.D
ST Employee

Hi @GS2 ,

You are using the right version of STM32CubeIDE (v1.15.1) which is the last release.

I mean make sure that you are using also the latest release of STM32CubeMX and Cube firmware package.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Imen.D
ST Employee

Hi @GS2 ,

Thank you for having reported this issue. Your post has been very helpful in raising the valuable ticket with the developers.

After building the example, we reproduced the same warnings :
C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v8-m.main+fp/hard/crtn.o: missing .note.GNU-stack section implies executable stack ...

 

This issue has been tracked for fix by this internal ticket:177107.

(PS: Internal ticket:177107 is an internal tracking number and is not accessible or usable outside of ST).

Thanks again for your contribution and do not hesitate to raise any issue/ feedback.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Thanks, YES - With release: 1.16.0. - Build Finished. 0 errors, 0 warnings.