Showing results for 
Search instead for 
Did you mean: 

[L4 OTG] the mysterious bit 15 in DOEPINT, and OTG_CORE_ID

Posted on July 06, 2018 at 13:44

This is the now annual continuation of


(4th post of, and - linkfix jan.2019]

 as the original thread (which indeed was a collection of too many remarks) was closed with this issue being unresolved.

Setting the mysterious bit 15 in DOEPINT persist in the newest 1.12 version of Cube, together with using the undocumented CoreID:

0690X0000060CEYQA2.pngAlso, reading out the CoreID has been somewhat obfuscated in the new version, instead of using the USB registers typedef:

 uint32_t USBx_BASE = (uint32_t)USBx;

 uint32_t TempReg = USBx_BASE + 0x40U;

 uint32_t gSNPSiD = *(uint32_t *) TempReg;

One would expect that this is because of the undocumented registers (not only the CoreID, but also the HWConfig registers) disappeared from the CMSIS-mandated device header, but it's not the case...