2023-01-17 06:08 AM
I am trying following:
1) USB CDC on M4 core
Clock configuration attached
With the help of forum I understand that Descriptor cannot be read from memory location through CM4 as per below thread:
I made following change in usbd_desc.c to avoid hard fault
static void Get_SerialNum(void)
{
uint32_t deviceserial0, deviceserial1, deviceserial2;
deviceserial0 = 0xaa;//*(uint32_t *) DEVICE_ID1;
deviceserial1 = 0xaa;//*(uint32_t *) DEVICE_ID2;
deviceserial2 = 0xaa;//*(uint32_t *) DEVICE_ID3;
deviceserial0 += deviceserial2;
if (deviceserial0 != 0)
{
IntToUnicode(deviceserial0, &USBD_StringSerial[2], 8);
IntToUnicode(deviceserial1, &USBD_StringSerial[18], 4);
}
}
Results are attached.
2023-01-17 08:45 AM
The code10 device cannot start is not because of descriptors. Requests for descriptors, strings etc likely were successful.