Skip to main content
Associate II
Jun 20, 2025 10:27 AM UTC
Question

STM32F7xx: How to read DBGMCU_IDCODE from bootloader?

Hi;

In order to determine exactly the chip type I'd like to read the DBGMCU_IDCODE register. When I try to do this the bootloader hangs. RM0410 44.6.1 says "Only 32 bit access support". I guess the bootloader uses byte access.

Is there a workaround?

Reading UID and FLASHSIZE works just fine.

 

This topic has been closed for replies.

3 replies

Andrew Neil
Super User
Jun 20, 2025 10:28 AM UTC

Which bootloader are you referring to?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate II
Jun 20, 2025 10:51 AM UTC

the internal ROM bootloader

 

Andrew Neil
Super User
Jun 20, 2025 11:16 AM UTC

But that's fixed code, which you can't modify - so how does you reading DBGMCU_IDCODE relate to that?

Perhaps you show a minimum but complete example which illustrates the issue.

 

How to insert source code.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.