Skip to main content
Visitor 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.

 

    This topic has been closed for replies.

    1 reply

    Super User
    June 20, 2025

    Which bootloader are you referring to?

    Visitor II
    June 20, 2025

    the internal ROM bootloader

     

    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.