2021-04-30 09:54 AM
Hi there,
Get_SerialNum() in usbd_desc.c of the USB device drivers generated by CubeMX attempt to read the device UID to set the serial number.
The M4 core does not have access to that memory region so the processor hard faults.
Am I missing something or is this just a massive bug in the code?
Thanks, Matt
2021-04-30 11:26 AM
I don't think you're missing anything. Just an edge case that wasn't found. Dual core support in CubeMX in general isn't awesome. If this is the biggest bug you encounter, consider yourself lucky.
2021-05-01 03:53 AM
Thanks for the reply - I can forgive obscure bugs but this one seems pretty glaring if anyone had tested it!