cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H755 M4 core unable to read UID and therefore USB drivers do not work

MJack.1
Associate III

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

2 REPLIES 2
TDK
Guru

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.

If you feel a post has answered your question, please click "Accept as Solution".
MJack.1
Associate III

Thanks for the reply - I can forgive obscure bugs but this one seems pretty glaring if anyone had tested it!