Skip to main content
FDumontKeller
Associate II
March 20, 2024
Solved

STM32WBMMG: Code between USER DEFINED CODE comments for descriptors gets deleted with updates!

Hi all, 

I think this is a bug of CubeMX. Everytime the .ioc gets updated for the project, the code written for the descriptor characteristics get deleted in the SVCCTL_InitCustomSvc() of the autogenerated custom_stm.c file.

I don't know if this issue is konwn or I am missing something while updating the .ioc file. 

Best Regards. 


This topic has been closed for replies.
STTwo-32
STTwo-32Best answer
ST Technical Moderator
May 17, 2024

I've been able to reproduce the issue using your .ioc file

So, I've escalated to the concerned team for correction on the upcoming releases under internal ticket number 181726.

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.

6 replies

STTwo-32
ST Technical Moderator
May 15, 2024

Hello @FDumontKeller 

Could you please test it again using the Last CubeMX, CubeIDE and CubeWB. I've tested this behavior, and everything seems to be fine on my side.

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.
FDumontKeller
Associate II
May 16, 2024

Hi @STTwo-32 , 

I was working with the STM32CubeIDE 1.14.1 and 1.15.0 and this issue kept happening. So I downloaded and installed the 1.15.1 from scratch to test out if this version did not have the issue. 
I enabled a Custom Template in the STM32_WPAN with one service and one charateristic (just to test it out). 

Between these comment I wrote this: 

/* USER CODE BEGIN SVCCTL_Init_Service1_Char1/ */

/* Place holder for Characteristic Descriptors */

// Test text if gets deleted

/* USER CODE END SVCCTL_Init_Service1_Char1 */

 

Then I do the "Device Configuration Tool Code Generation" again and the comment I put before is gone.
I am working on a windows machine, could it be that this only happens in this version?

Best Regards.

STTwo-32
ST Technical Moderator
May 17, 2024

Hello again

I'm not able to reproduce this issue. Could you send me your .ioc file. 

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.