Skip to main content
Visitor II
May 15, 2023
Question

Failed to access ROM Table of CortexM4 while debugging in engineering mode. What are the reasons ? See description below.

  • May 15, 2023
  • 3 replies
  • 1330 views

Product: STM32MP153CAA3

we are trying to debug the Cortex M4 over the SWD Interface. The setup of the Bank0,1,2 is configured correct (Engineering Mode) . During the analysis of SWD we see that Debugger fails to access ROM Table (Address: 0xE00FFFE4, CM4ROM_PIDR1) Expected alue is 0x004. Read value is 0x7310F507

The IDCODE and the settings of registers before are matching the expectation.

What are the reasons for failing to access those registers ? (clocks, voltage ...)

    This topic has been closed for replies.

    3 replies

    Graduate II
    May 15, 2023

    Power (Low Power modes?)

    Contention (Uses same bus as MCU to read the memory content)

    Locked/Protection (Things that might actively limit you access to resources and functionality)

    WSief.1Author
    Visitor II
    May 16, 2023

    To the topic before:

    Can MPU enter Low Power Mode in Engineering Boot mode?

    Technical Moderator
    May 17, 2023

    Hi @WSief.1​ ,

    maybe your debugger does not use the right DAP acces-port.

    This ROM table is visible on AHB-AP access-port (AP2) dedicated to Cortex-M4 (and not accessible from AXI-AP (AP0) AXI interconnect as at those addresses there is the DDR).


    _legacyfs_online_stmicro_images_0693W00000bkGrGQAU.png 

    Tested with Lauterbach Trace32 connected on Cortex-M4, using SWD on a STM32MP157F-EV1 board in Engineering mode (aka Development boot) without any specific settings.


    _legacyfs_online_stmicro_images_0693W00000bkGpZQAU.png 

    Maybe you could tell your debugger to avoid using ROM table based automated discovery and instead use your debugger 'manual' setup for STM32MP153C which is usually available.

    Regards.