Skip to main content
Associate II
June 20, 2025
Question

STM32F7xx: How to read DBGMCU_IDCODE from bootloader?

  • June 20, 2025
  • 1 reply
  • 363 views

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.

 

1 reply

Andrew Neil
Super User
June 20, 2025

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
June 20, 2025

the internal ROM bootloader

 

Andrew Neil
Super User
June 20, 2025

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.