Skip to main content
Visitor II
July 6, 2020
Question

CubeMx generates incorrect code for USB HS on the M4 core of the STM32H757 evaluation board.

  • July 6, 2020
  • 0 replies
  • 477 views

Specifically, the code that creates a hard fault is in the Get_SerialNum function definition in the auto-generated USBD_desc.c. The code attempts to access restricted memory at memory location 0x1FF1E800UL. This memory region is restricted for the M4 core but not the M7 core per the reference manual.

    This topic has been closed for replies.