2024-03-26 06:59 AM
Steps to reproduce:
Inside the USB_DEVICE/App/usbd_desc.c file, the GetSerialNum(void) function, the code is generated with uninitialized device serial variables:
static void Get_SerialNum(void)
{
uint32_t deviceserial0;
uint32_t deviceserial1;
uint32_t deviceserial2;
deviceserial0 += deviceserial2;
if (deviceserial0 != 0)
{
IntToUnicode(deviceserial0, &USBD_StringSerial[2], 8);
IntToUnicode(deviceserial1, &USBD_StringSerial[18], 4);
}
}
As there is no user block of code, every time my code is regenerated, I need to update those three lines again with:
uint32_t deviceserial0 = *(uint32_t *) DEVICE_ID1;
uint32_t deviceserial1 = *(uint32_t *) DEVICE_ID2;
uint32_t deviceserial2 = *(uint32_t *) DEVICE_ID3;
Thanks.
Solved! Go to Solution.
2024-03-28 02:14 AM
Hello @DrWidget and @bruno_b2s
Thank you for reporting.
Actually, this issue has been already reported internally to Dev team for correction (under internal ticket number 177153) and this will be fixed ASAP.
Thank you!
Souhaib
2024-03-27 06:32 AM
Same problem here with STM32L462VETx and USB Virtual Port Com class. The warnings appeared when regenerating code after STM32CubeIDE update to Version: 1.15.0.
2024-03-28 02:14 AM
Hello @DrWidget and @bruno_b2s
Thank you for reporting.
Actually, this issue has been already reported internally to Dev team for correction (under internal ticket number 177153) and this will be fixed ASAP.
Thank you!
Souhaib
2024-04-04 12:58 AM
same problem here
2024-04-05 12:52 PM - edited 2024-04-05 12:55 PM
same problem in STM32F1xxx
STM32CubeMX 6.11.0,
software package 1.8.5
2024-04-26 05:47 AM
This is great to hear Dev team knows about issue
BUT
Can we get fix ASAP PLEASE ?!
2024-04-26 06:14 AM