Skip to main content
MJack.1
Associate III
April 30, 2021
Question

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

  • April 30, 2021
  • 2 replies
  • 1106 views

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

This topic has been closed for replies.

2 replies

TDK
April 30, 2021

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
MJack.1Author
Associate III
May 1, 2021

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