Skip to main content
Senior
June 21, 2024
Solved

Error in building BLE_HID_Mouse example.

  • June 21, 2024
  • 4 replies
  • 3002 views

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)

 

Best answer by Andrew Neil

It seems the issue has been fixed, and will be available (in 1.16.0) "soon":

https://community.st.com/t5/stm32-mcus-products/kudo-for-company-support-moving-to-nordic-semiconductor/m-p/690321/highlight/true#M253377

 

Update STM32CubeIDE 1.16.0 released 2024-07-01:

https://community.st.com/t5/stm32cubeide-mcus/stm32cubeide-1-16-0-released/td-p/692407 

4 replies

Technical Moderator
June 24, 2024

Hello @GS2 ,

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
GS2Author
Senior
June 24, 2024

Thank you Imen,

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

GS2Author
Senior
June 24, 2024

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

GS2Author
Senior
June 24, 2024

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

 

Technical Moderator
June 25, 2024

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.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Technical Moderator
June 25, 2024

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.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Andrew Neil
Andrew NeilBest answer
Super User
June 27, 2024
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
GS2Author
Senior
July 2, 2024

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