2024-05-27 10:54 AM
Hi, I upgraded CubeIDE from 1.14.1 to 1.15.1 and CubeMX from 6.10.0 to 6.11.1. After the upgrade I built my code, and everything worked fine but I changed some parameters in CubeMX and tried to regenerate the code. CubeMX asked for upgrade of FW_WBA from 1.3.0 to 1.3.1 and I did this upgrade also.
STM32 Board: STM32WBA52CG
With FW_WBA v1.3.1:
1. There is a linker error:
E:/DevTools/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: E:/DevTools/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
E:/DevTools/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 behavior is deprecated and will be removed in a future version of the linker.
2. Linker option -z noexecstack fixes the error.
3. The generated code crashes with Hard Fault in AMM_BackgroundProcess
HardFault_Handler() at stm32wbaxx_it.c:103 0x8007f34
<signal handler called>() at 0xffffffbc
_tx_thread_system_suspend() at tx_thread_system_suspend.c:85 0x80129a2
_tx_semaphore_get() at tx_semaphore_get.c:214 0x8012284
_txe_semaphore_get() at txe_semaphore_get.c:144 0x80139a4
AMM_BackgroundProcess_Entry() at app_entry.c:549 0x8006cd2
_tx_thread_shell_entry() at tx_thread_shell_entry.c:114 0x80126ac
<signal handler called>() at 0xffffffff
4. I've created a new project from scratch, and it has the same linker error and crashes the same way.
Tried with TreadX, FreeRTOS and Sequencer - no difference.
For me this version is unusable, and I have to go back to the previous ones.
Solved! Go to Solution.
2024-06-27 08:41 AM - edited 2024-06-27 08:42 AM
Hello @KrassiNB
This issue has been tracked for fix by this internal ticket:177107. It should be solved on the Coming release (very soon)
(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.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-05-27 01:26 PM
Update:
I downgraded to the previous versions and there is no problem.
These are the versions that work:
STM32CubeMX 6.10.0
STM32CubeIDE 1.14.1
FW_WBA v1.2.0
2024-06-27 08:41 AM - edited 2024-06-27 08:42 AM
Hello @KrassiNB
This issue has been tracked for fix by this internal ticket:177107. It should be solved on the Coming release (very soon)
(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.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-12-12 05:17 AM
Hi @KrassiNB ,
This issue is fixed with STM32CubeIDE 1.16.0: STM32CubeIDE:STM32CubeIDE errata 1.16.x - stm32mcu
Please update and use the latest release STM32CubeIDE 1.17.0.