2024-10-21 08:22 PM - edited 2024-10-21 08:54 PM
Hi there!
Since updating to:
STM32CubeIDE Version: 1.16.1 Build: 22882_20240916_0822 (UTC) I've noticed that changes to the .ioc configuration file performed through the Device Configuration Tool do not reliably propagate to code using the "Do you want generate Code?" (which should be "Do you want to generate Code?"....) option do not generate code that is correct, instead it generates code from a previous configuration.
This particular aspect of STM32CubeIDE seems to get worse in every iteration.
Also, when you use the configuration tool twice in a row, and do a save-generate cycle, it stops working and the "save" option disappears, and you have to close and re-open it. This is time consuming and very frustrating.
This issue is new, and did not occur previously.
It makes STM32CubeIDE even more unreliable than it already was, and someone should fix it with priority.
Also the recent change to require the user to define "USER_VECT_TAB_ADDRESS" in the "C/C++ Build/Settings" Property for a project in order to stop code from crashing due to not defining the vector table, which again, was never previously required, is pretty bad, and will prevent new users from using STM32CubeIDE, since it's unbelievably far from obvious.
Is someone working to resolve these new issues?
Thanks.
Solved! Go to Solution.
2024-11-12 01:42 PM
So far a fresh re-install seems to have fixed the issue.
I will report back here if any of the issues re-surface.
Thanks.
2024-10-22 01:18 AM - edited 2024-10-22 03:31 AM
Hello @etheory
First let me thank you for posting.
THX
Ghofrane
2024-10-22 09:16 PM - edited 2024-10-22 09:24 PM
Thanks @Ghofrane GSOURI
Code generation is so bad in this version for me, that about 1 in 4 times, it actually puts random characters all through the generated code, and then it doesn't compile. I have to force regenerate it to fix the problem.
The next time it happens I'll paste an example here so you can see it.
About 1 in 2 times for me the codegen is wrong also, and does not reflect the options that I just set.
As for the save button disappearing, it still happens every 2-3 times.
How can I send you that info for debugging? It's making STM32CubeIDE very very painful to use now.
Thanks
2024-10-24 05:31 AM
Hello @etheory
Ticket 194942 has been escalated to the development team regarding 'USER_VECT_TAB_ADDRESS'.
THX
Ghofrane
2024-10-24 03:27 PM
THANK YOU!
2024-10-27 05:48 AM - edited 2024-10-27 05:49 AM
@Ghofrane GSOURI - here is an example where STM32CubeIDE has trashed the automatic generated code:
void MX_USB_Device_Init(void)
{
#t/* USER CODE BEGIN USB_Device_Init_PreTreatment */
#t/* USER CODE END USB_Device_Init_PreTreatment */
#t
#t/* Init Device Library, add supported class and start the library. */
#tif (USBD_Init(&hUsbDeviceFS, &CDC_Desc, DEVICE_FS) != USBD_OK) {
#t#tError_Handler();
#t}
#tif (USBD_RegisterClass(&hUsbDeviceFS, &USBD_CDC) != USBD_OK) {
#t#tError_Handler();
#t}
#tif (USBD_CDC_RegisterInterface(&hUsbDeviceFS, &USBD_Interface_fops_FS) != USBD_OK) {
#t#tError_Handler();
#t}
#tif (USBD_Start(&hUsbDeviceFS) != USBD_OK) {
#t#tError_Handler();
#t}
#t/* USER CODE BEGIN USB_Device_Init_PostTreatment */
#t/* USER CODE END USB_Device_Init_PostTreatment */
}
Could you please get someone to look into this, it still happens to me frequently. This was never previously an issue for me in older versions of STM32CubeIDE. When I generate a second time, it fixes the issue.
Thanks.
2024-10-29 02:39 PM
Hi,
I also observe Cube 1.16.1 to be generating inconsistent outputs - in my case .cproject file. As if different generators are used/installed.
In a commit on the left, rows 2 and 3 are on separate lines but in newly generated .cproject these are combined into single line 2 on the right. Also spaces are replaced with tabs.
2024-10-31 07:03 AM
This is caused by .cproject being altered by Cube(indentation with tabs) vs GfxDesigner(indentation with spaces). Impressive.
2024-10-31 07:10 AM - edited 2024-10-31 07:14 AM
@etheory wrote:here is an example where STM32CubeIDE has trashed the automatic generated code
void MX_USB_Device_Init(void)
{
#t/* USER CODE BEGIN USB_Device_Init_PreTreatment */
#t/* USER CODE END USB_Device_Init_PreTreatment */
#t
#t/* Init Device Library, add supported class and start the library. */
#tif (USBD_Init(&hUsbDeviceFS, &CDC_Desc, DEVICE_FS) != USBD_OK) {
#t#tError_Handler();
#t}
#tif (USBD_RegisterClass(&hUsbDeviceFS, &USBD_CDC) != USBD_OK) {
#t#tError_Handler();
#t}
#tif (USBD_CDC_RegisterInterface(&hUsbDeviceFS, &USBD_Interface_fops_FS) != USBD_OK) {
#t#tError_Handler();
#t}
So it's putting in the text string "#t" wherever there should be a TAB, then?
2024-10-31 08:09 AM
Hello @etheory
This behavior is weird.
After multiple tries, I couldn't reproduce the issue from my side.
So let's try to uninstall STM32CubeIDE and reinstall it again. This could help solve the issue.
I will be waiting for your feedback.
THX
Ghofrane