[SOLVED] Failed to read back target memory (LPC55S69) with J-Flash V7.66b

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

  • [SOLVED] Failed to read back target memory (LPC55S69) with J-Flash V7.66b

    When I try to read my LPC55S69 flash memory with JFlash V7.66b and a J-Link I receive the following error: 'Failed to read back target memory'. Nevertheless, there's no problem when I use J-Mem V7.66b and the same J-Link. This is what the log file says:


    Connecting ...

    - Connecting via USB to probe/ programmer device 0

    - Probe/ Programmer firmware: J-Link V9 compiled May 7 2021 16:26:12

    - Device "LPC55S69_M33_0" selected.

    - ConfigTargetSettings() start

    - Disabling flash programming optimizations: Compare, SkipBlankDataOnProg

    - ConfigTargetSettings() end

    - InitTarget() start

    - InitTarget() end

    - Found SW-DP with ID 0x6BA02477

    - DPIDR: 0x6BA02477

    - CoreSight SoC-400 or earlier

    - Scanning AP map to find all available APs

    - AP[3]: Stopped AP scan as end of AP map has been reached

    - AP[0]: AHB-AP (IDR: 0x84770001)

    - AP[1]: AHB-AP (IDR: 0x84770001)

    - AP[2]: JTAG-AP (IDR: 0x002A0000)

    - Iterating through AP map to find AHB-AP to use

    - AP[0]: Core found

    - AP[0]: AHB-AP ROM base: 0xE00FE000

    - CPUID register: 0x410FD213. Implementer code: 0x41 (ARM)

    - Feature set: Mainline

    - Found Cortex-M33 r0p3, Little endian.

    - FPUnit: 8 code (BP) slots and 0 literal slots

    - Security extension: implemented

    - Secure debug: enabled

    - CoreSight components:

    - ROMTbl[0] @ E00FE000

    - [0][0]: E00FF000 CID B105100D PID 000BB4C9 ROM Table

    - ROMTbl[1] @ E00FF000

    - [1][0]: E000E000 CID B105900D PID 000BBD21 DEVARCH 47702A04 DEVTYPE 00 Cortex-M33

    - [1][1]: E0001000 CID B105900D PID 000BBD21 DEVARCH 47701A02 DEVTYPE 00 DWT

    - [1][2]: E0002000 CID B105900D PID 000BBD21 DEVARCH 47701A03 DEVTYPE 00 FPB

    - [1][3]: E0000000 CID B105900D PID 000BBD21 DEVARCH 47701A01 DEVTYPE 43 ITM

    - [0][1]: E0040000 CID B105900D PID 000BBD21 DEVARCH 00000000 DEVTYPE 11 Cortex-M33

    - SetupTarget() start

    - Disabling flash programming optimizations: Compare, SkipBlankDataOnProg

    - SetupTarget() end

    - Target interface speed: 2000 kHz (Auto)

    - VTarget = 3.329V

    - ConfigTargetSettings() start

    - Disabling flash programming optimizations: Compare, SkipBlankDataOnProg

    - ConfigTargetSettings() end

    - InitTarget() start

    - InitTarget() end

    - Found SW-DP with ID 0x6BA02477

    - DPIDR: 0x6BA02477

    - CoreSight SoC-400 or earlier

    - AP map detection skipped. Manually configured AP map found.

    - AP[0]: AHB-AP (IDR: Not set)

    - AP[0]: Core found

    - AP[0]: AHB-AP ROM base: 0xE00FE000

    - CPUID register: 0x410FD213. Implementer code: 0x41 (ARM)

    - Feature set: Mainline

    - Found Cortex-M33 r0p3, Little endian.

    - FPUnit: 8 code (BP) slots and 0 literal slots

    - Security extension: implemented

    - Secure debug: enabled

    - CoreSight components:

    - ROMTbl[0] @ E00FE000

    - [0][0]: E00FF000 CID B105100D PID 000BB4C9 ROM Table

    - ROMTbl[1] @ E00FF000

    - [1][0]: E000E000 CID B105900D PID 000BBD21 DEVARCH 47702A04 DEVTYPE 00 Cortex-M33

    - [1][1]: E0001000 CID B105900D PID 000BBD21 DEVARCH 47701A02 DEVTYPE 00 DWT

    - [1][2]: E0002000 CID B105900D PID 000BBD21 DEVARCH 47701A03 DEVTYPE 00 FPB

    - [1][3]: E0000000 CID B105900D PID 000BBD21 DEVARCH 47701A01 DEVTYPE 43 ITM

    - [0][1]: E0040000 CID B105900D PID 000BBD21 DEVARCH 00000000 DEVTYPE 11 Cortex-M33

    - SetupTarget() start

    - Disabling flash programming optimizations: Compare, SkipBlankDataOnProg

    - SetupTarget() end

    - Executing init sequence ...

    - Executing Reset (0, 0 ms)

    - ResetTarget() start

    - Reset strategy selected in debugger ignored. Performing device specific reset.

    - Reset handler addr: 0x00003974

    - ResetTarget() end

    - AfterResetTarget() start

    - AfterResetTarget() end

    - Initialized successfully

    - Target interface speed: 2000 kHz (Auto)

    - Found 1 JTAG device. Core ID: 0x6BA02477 (None)

    - Connected successfully

    Reading target memory (0x00000000 - 0x0009DDFF) ...

    - Start of preparing flash programming

    - End of preparing flash programming

    - ERROR: Failed to read memory (0x20000 bytes @ address 0x00000000)

    - Start of restoring

    - End of restoring

    - ERROR: Failed to read back target memory

    Disconnecting ...

    - Disconnected
  • Hi,
    Reading erased ECC flash will result in an ECC error and in a memory read to fail.For most ECC flashes (including this one), reading programmed areas is allowed only and
    reading erased flash is expected to fail.

    I assume that this is what happens in your case (you can check this by verifying the ECC error flag of the flash controller).

    Solution:
    Either you disable ECC or you do not read erased sections of the flash.

    Best regards,
    Fabian
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.