J-Link. Download verify failed

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

  • J-Link. Download verify failed

    Hi,
    Recently, started to experience difficulties to work with JLink debugger, constant failures to read memory, lost sync with MCU, absolutely impossible to debug. Thought problems with old GDB Server, upgraded to new GDB Server, which failed to work as well - Failure to verify downloaded bytes. While 4.40 Verify was ok. Attached both logs.
    Current debug for application on external ram / fsmc. Dont know if that helps, IIC is DMA based and trying to debug it.
    Upgraded GDB Server
    =============================================
    SEGGER J-Link GDB Server V4.64a


    JLinkARM.dll V4.64a (DLL compiled Feb 25 2013 18:26:59)

    Connecting to J-Link...
    J-Link is connected.
    Firmware: J-Link ARM V8 compiled Nov 14 2012 22:34:52
    Hardware: V8.00
    S/N: 58006752
    Checking target voltage...
    Listening on TCP/IP port 2331
    Connecting to target...
    J-Link found 2 JTAG devices, Total IRLen = 9
    JTAG ID: 0x4BA00477 (Cortex-M3)
    Connected to target
    Waiting for GDB connection...Connected to 127.0.0.1
    Reading all registers
    Read 4 bytes @ address 0x00000000 (Data = 0x20018000)
    JTAG speed set to 1000 kHz
    Target endianess set to "little endian"
    Resetting target
    Read 4 bytes @ address 0x00000000 (Data = 0x20018000)
    Flash download enabled
    Flash breakpoints enabled
    Writing 0x00000078 @ address 0x40023830
    Writing 0x00000001 @ address 0x40023838
    Writing 0xAAAA4A0A @ address 0x40020C00
    Writing 0xFFFF8F0F @ address 0x40020C08
    Writing 0x00CC00CC @ address 0x40020C20
    Writing 0xCCCCCCCC @ address 0x40020C24
    Writing 0xAAAAAAAA @ address 0x40021000
    Writing 0xFFFFFFFF @ address 0x40021008
    Writing 0xCCCCCCCC @ address 0x40021020
    Writing 0xCCCCCCCC @ address 0x40021024
    Writing 0xAA000AAA @ address 0x40021400
    Writing 0xFF000FFF @ address 0x40021408
    Writing 0x00CCCCCC @ address 0x40021420
    Writing 0xCCCC0000 @ address 0x40021424
    Writing 0x00080AAA @ address 0x40021800
    Writing 0x000C0FFF @ address 0x40021808
    Writing 0x00CCCCCC @ address 0x40021820
    Writing 0x000000C0 @ address 0x40021824
    Writing 0x00001005 @ address 0xA0000008
    Writing 0x000A0888 @ address 0xA000000C
    Writing 0x000A0888 @ address 0xA000010C
    Reading from address 0x64000000 (Data = 0xE00321F0)
    JTAG speed set to 1000 kHz
    Downloading 484 bytes @ address 0x20000000 - Verify failed
    Downloading 16288 bytes @ address 0x64000000 - Verify failed
    Downloading 16224 bytes @ address 0x64003FA0 - Verify failed
    Downloading 16288 bytes @ address 0x64007F00 - Verify failed
    Downloading 16304 bytes @ address 0x6400BEA0 - Verify failed
    Downloading 432 bytes @ address 0x6400FE50 - Verify failed
    Downloading 16128 bytes @ address 0x64010000 - Verify failed
    Downloading 16272 bytes @ address 0x64013F00 - Verify failed
    Downloading 16288 bytes @ address 0x64017E90 - Verify failed
    Downloading 16288 bytes @ address 0x6401BE30 - Verify failed
    Downloading 560 bytes @ address 0x6401FDD0 - Verify failed
    Downloading 16304 bytes @ address 0x64020000 - Verify failed
    Downloading 16304 bytes @ address 0x64023FB0 - Verify failed
    Downloading 16256 bytes @ address 0x64027F60 - Verify failed
    Downloading 16272 bytes @ address 0x6402BEE0 - Verify failed
    Downloading 400 bytes @ address 0x6402FE70 - Verify failed
    Downloading 16192 bytes @ address 0x64030000 - Verify failed
    Downloading 15968 bytes @ address 0x64033F40 - Verify failed
    Downloading 16096 bytes @ address 0x64037DA0 - Verify failed
    Downloading 16112 bytes @ address 0x6403BC80 - Verify failed
    Downloading 1168 bytes @ address 0x6403FB70 - Verify failed
    Downloading 2940 bytes @ address 0x64040000 - Verify failed
    Downloading 11632 bytes @ address 0x64040B80 - Verify failed
    Writing register (PC = 0x64000000)
    Read 4 bytes @ address 0x64000000 (Data = 0xE0032100)
    Read 2 bytes @ address 0x6402F1A0 (Data = 0xF04F)
    WARNING: Failed to read cacheable memory @ address 0x6402F274
    Read 2 bytes @ address 0x6402F274 (Data = 0xF04F)
    Read 2 bytes @ address 0x6402F116 (Data = 0xF04F)
    Read 2 bytes @ address 0x6402F116 (Data = 0xF04F)
    WARNING: Failed to read cacheable memory @ address 0x20007CE0
    Read 4 bytes @ address 0x20007CE0 (Data = 0xE003F04F)
    =====================================
    Old GDB Server with same application

    =====================================
    SEGGER J-Link GDB Server V4.40

    JLinkARM.dll V4.40 (DLL compiled Dec 9 2011 18:59:34)

    Listening on TCP/IP port 2331

    J-Link connected
    Firmware: J-Link ARM V8 compiled Nov 14 2012 22:34:52
    Hardware: V8.00
    S/N: 58006752

    J-Link found 2 JTAG devices, Total IRLen = 9
    JTAG ID: 0x4BA00477 (Cortex-M3)

    Connected to 127.0.0.1
    Reading all registers
    Read 4 bytes @ address 0x00000000 (Data = 0x20018000)
    JTAG speed set to 1000 kHz
    Target endianess set to "little endian"
    Resetting target
    Read 4 bytes @ address 0x00000000 (Data = 0x20018000)
    Flash download enabled
    Flash breakpoints enabled
    Writing 0x00000078 @ address 0x40023830
    Writing 0x00000001 @ address 0x40023838
    Writing 0xAAAA4A0A @ address 0x40020C00
    Writing 0xFFFF8F0F @ address 0x40020C08
    Writing 0x00CC00CC @ address 0x40020C20
    Writing 0xCCCCCCCC @ address 0x40020C24
    Writing 0xAAAAAAAA @ address 0x40021000
    Writing 0xFFFFFFFF @ address 0x40021008
    Writing 0xCCCCCCCC @ address 0x40021020
    Writing 0xCCCCCCCC @ address 0x40021024
    Writing 0xAA000AAA @ address 0x40021400
    Writing 0xFF000FFF @ address 0x40021408
    Writing 0x00CCCCCC @ address 0x40021420
    Writing 0xCCCC0000 @ address 0x40021424
    Writing 0x00080AAA @ address 0x40021800
    Writing 0x000C0FFF @ address 0x40021808
    Writing 0x00CCCCCC @ address 0x40021820
    Writing 0x000000C0 @ address 0x40021824
    Writing 0x00001005 @ address 0xA0000008
    Writing 0x000A0888 @ address 0xA000000C
    Writing 0x000A0888 @ address 0xA000010C
    Reading from address 0x64000000 (Data = 0xE00321F0)
    JTAG speed set to 1000 kHz
    Downloading 484 bytes @ address 0x20000000 - Verified OK
    Downloading 16288 bytes @ address 0x64000000 - Verified OK
    Downloading 16224 bytes @ address 0x64003FA0 - Verified OK
    Downloading 16288 bytes @ address 0x64007F00 - Verified OK
    Downloading 16304 bytes @ address 0x6400BEA0 - Verified OK
    Downloading 432 bytes @ address 0x6400FE50 - Verified OK
    Downloading 16128 bytes @ address 0x64010000 - Verified OK
    Downloading 16272 bytes @ address 0x64013F00 - Verified OK
    Downloading 16288 bytes @ address 0x64017E90 - Verified OK
    Downloading 16288 bytes @ address 0x6401BE30 - Verified OK
    Downloading 560 bytes @ address 0x6401FDD0 - Verified OK
    Downloading 16304 bytes @ address 0x64020000 - Verified OK
    Downloading 16304 bytes @ address 0x64023FB0 - Verified OK
    Downloading 16256 bytes @ address 0x64027F60 - Verified OK
    Downloading 16272 bytes @ address 0x6402BEE0 - Verified OK
    Downloading 400 bytes @ address 0x6402FE70 - Verified OK
    Downloading 16192 bytes @ address 0x64030000 - Verified OK
    Downloading 15968 bytes @ address 0x64033F40 - Verified OK
    Downloading 16096 bytes @ address 0x64037DA0 - Verified OK
    Downloading 16112 bytes @ address 0x6403BC80 - Verified OK
    Downloading 1168 bytes @ address 0x6403FB70 - Verified OK
    Downloading 2940 bytes @ address 0x64040000 - Verified OK
    Downloading 11632 bytes @ address 0x64040B80 - Verified OK
    Writing register (PC = 0x64000000)
    Writing register (CPSR = 0x01000000)
    Read 4 bytes @ address 0x64000000 (Data = 0xE0032100)
    Read 2 bytes @ address 0x6402F1A0 (Data = 0xF04F)
    Read 2 bytes @ address 0x6402F274 (Data = 0xF8BD)
    Read 2 bytes @ address 0x6402F116 (Data = 0xF04F)
    Read 2 bytes @ address 0x6402F116 (Data = 0xF04F)
    Read 2 bytes @ address 0x64028FD2 (Data = 0xE03B)
    Read 2 bytes @ address 0x64028FFE (Data = 0x9B07)
    Read 2 bytes @ address 0x6402F1A0 (Data = 0xF04F)
    Read 2 bytes @ address 0x6402F1A8 (Data = 0xF04F)
    Writing register (SP = 0x2000A7E8)
    Writing register (PC = 0x64000001)
    Read 4 bytes @ address 0x20007CE0 (Data = 0x7D9CFE89)
    Read 4 bytes @ address 0x4002604C (Data = 0x00000000)
    Read 4 bytes @ address 0x40026064 (Data = 0x00000000)
    Read 4 bytes @ address 0x40026034 (Data = 0x00000000)
    Read 4 bytes @ address 0x40026074 (Data = 0x00000000)
    Read 4 bytes @ address 0x40026044 (Data = 0x00000000)
    Read 4 bytes @ address 0x20007CE0 (Data = 0x7D9CFE89)

    Serj

    The post was edited 1 time, last by Serj ().

  • Example of numerous failures of jlink debugger:
    this one is on GDB Server 4.40 ( the one which able to download to external sram / fsmc )
    Removing breakpoint @ address 0x64028FFE, Size = 2

    Removing breakpoint @ address 0x6402F12A, Size = 2
    Removing breakpoint @ address 0x6402F1A8, Size = 2
    Removing breakpoint @ address 0x6402F238, Size = 2
    Read 4 bytes @ address 0x6402F238 (Data = 0x300BBE00)
    Reading 64 bytes @ address 0x20008600
    Read 4 bytes @ address 0x6402F14A (Data = 0x43C4F647)
    ERROR: Communication timed out: Requested 4 bytes, received 0 bytes !
    After this jlink lies dead till usb reconnect