2024-04-07 11:13 PM - edited 2024-04-07 11:57 PM
Hello,
I was trying USB Device mode with STM32F407. I tried with IAR, and it did not work but was working with Cube IDE. Found out the generated code for copying device id in usbd_desc.c for Get_SerialNum function was missing in IAR.
CubeMX version 6.11.0
Solved! Go to Solution.
2024-05-03 01:38 AM
Hello @Ashvajit-CC
This issue has been solved on the last release of the CubeMX (V6.11.1). Could you please update to this version.
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-04-08 03:10 AM
Hello @Ashvajit-CC ,
First let me thank you for posting and welcome to the ST Community.
Your request is under investigation, and I will get back to you ASAP.
Thanks.
Mahmoud.
2024-04-08 03:16 AM
2024-04-08 03:48 AM
Hello @Ashvajit-CC ,
Further to your comment , I generated the project with STM32CubeMX 6.10.0.
Toolchain: STM32CubeIDE 1.14.1
Toolchain: Ewarm
Thanks.
Mahmoud.
2024-04-08 04:00 AM
I regenerated the code, and I can still observe that these lines are not being generated.
I'd like to mention firmware package STM32Cube FW_F4 V1.28.0 and IAR version 9.50.1.
2024-04-09 02:00 AM
Hello @Ashvajit-CC ,
As discussed, the project that you had attached on the comment was generated with STM32CubeMX 6.10.0.
I am using IAR 9.50.2 and the issue is not reproduced.
By using STM32CubeMX 6.11.0, I can confirm that those lines are missing.
deviceserial0 = *(uint32_t *) DEVICE_ID1;
deviceserial1 = *(uint32_t *) DEVICE_ID2;
deviceserial2 = *(uint32_t *) DEVICE_ID3;
It is a regression from STM32CubeMX 6.10.0.
You can take a look at this Post and notice that the same issue has been already reported internally to Dev team for correction (under internal ticket number 177153) and this will be fixed ASAP.
Thanks.
Mahmoud
2024-05-03 01:38 AM
Hello @Ashvajit-CC
This issue has been solved on the last release of the CubeMX (V6.11.1). Could you please update to this version.
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.