cancel
Showing results for 
Search instead for 
Did you mean: 

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

YReda.1
Associate

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.

0 REPLIES 0