[SOLVED] STM32H743: **JLink Warning: Could not read memory location ... when trying to set soft RAM BP ... Erase Failed!

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] STM32H743: **JLink Warning: Could not read memory location ... when trying to set soft RAM BP ... Erase Failed!

    Hello all,

    I am not able to erase the STM32H743 anymore using the Segger J-Trace Pro (SW interface) within Keil MDK v5.25, while the ST-Link V2 works - with otherwise identical configuration. Erasing/flashing the STM32F767 on the same board (only µC exchanged) works fine.
    The warnings/error are marked in red below.

    I suspect that the device "STM32H743IIKX" is not sufficiently supported by J-Link V.640 because I received a message box which asked me to select the device (see jpg attached).

    Any help is welcome!
    Regards
    Marcus


    SEGGER J-Link Commander V6.40 (Compiled Oct 26 2018 15:06:29)
    DLL version V6.40, compiled Oct 26 2018 15:06:02

    Connecting to J-Link via USB...O.K.
    Firmware: J-Trace PRO V2 Cortex-M compiled Oct 25 2018 11:49:51
    Hardware version: V2.00
    S/N: 752000819
    License(s): RDI, FlashBP, FlashDL, JFlash, GDB
    IP-Addr: 192.168.1.103
    Emulator has RAWTRACE capability
    VTref=3.440V



    Keil MDK v5.25 Output:

    * JLink Info: Device "STM32H743II" selected.
    * JLink Info: Device "STM32H743II" selected.
    Set JLink Project File to "D:\Software\Gamma\Delta-u\MDK-ARM\JLinkSettings.ini"
    * JLink Info: Device "STM32H743II" selected.

    JLink info:
    ------------
    DLL: V6.40 , compiled Oct 26 2018 15:06:02
    Firmware: J-Trace PRO V1 Cortex-M compiled Oct 25 2018 11:48:19
    Hardware: V1.00
    S/N : 751000184
    Feature(s) : RDI, FlashBP, FlashDL, JFlash, GDB

    * JLink Info: Found SW-DP with ID 0x2BA01477
    * JLink Info: Active read protected STM32 device detected.
    This could cause problems during flash download.
    Note: Unsecuring will trigger a mass erase of the internal flash.

    * JLink Info: Executing default behavior previously saved in the registry.
    * JLink Info: Device will be unsecured now.
    * JLink Info: Found SW-DP with ID 0x2BA01477
    * JLink Info: Scanning AP map to find all available APs
    * JLink Info: AP[1]: Stopped AP scan as end of AP map has been reached
    * JLink Info: AP[0]: AHB-AP (IDR: 0x24770011)
    * JLink Info: Iterating through AP map to find AHB-AP to use
    * JLink Info: AP[0]: Core found
    * JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
    * JLink Info: CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
    * JLink Info: Found Cortex-M4 r0p1, Little endian.
    **JLink Warning: Identified core does not match configuration. (Found: Cortex-M4, Configured: Cortex-M7)
    * JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
    * JLink Info: CoreSight components:
    * JLink Info: ROMTbl[0] @ E00FF000
    * JLink Info: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
    * JLink Info: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
    * JLink Info: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
    * JLink Info: ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
    * JLink Info: ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
    * JLink Info: ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
    ROMTableAddr = 0xE00FF000
    * JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
    * JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ.

    Target info:
    ------------
    Device: STM32H743IIKx
    VTarget = 3.281V
    State of Pins:
    TCK: 0, TDI: 1, TDO: 0, TMS: 1, TRES: 1, TRST: 1
    Hardware-Breakpoints: 6
    Software-Breakpoints: 8192
    Watchpoints: 4
    JTAG speed: 5000 kHz

    **JLink Warning: Could not read memory location 0x24010000 when trying to set soft RAM BP
    Cannot setup Breakpoint at Address
    **JLink Warning: Could not read memory location 0x24010000 when trying to set soft RAM BP
    Cannot setup Breakpoint at Address
    Erase Failed!

    Error: Flash Download failed - "Cortex-M7"
    Flash Load finished at 10:23:43
    Images
    • SelectDevice.jpg

      21.51 kB, 526×178, viewed 595 times