J-Link & Freescale i.MX35 - "failed to read cacheable memory" then freeze on 'continue'

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

  • J-Link & Freescale i.MX35 - "failed to read cacheable memory" then freeze on 'continue'

    I am attempting to use the J-Link with a Freescale i.MX35 PDK board. I used CodeSourcery G++ to build an EABI executable -- just their simple factorial example to start.

    I am observing an error right off the bat -- I can download the code to the i.MX35 memory using the "load" command in gdb, but as soon as I continue, this happens:





    This was the sequence of commands in gdb:



    Does anyone else have experience debugging using the J-Link on this board? Or any ARM11 cores in general?

    Am I missing a special .gdbinit file or something?
  • I also cannot set breakpoints apparently. Each time I try to set a breakpoint, I get a readout in the JLINK window indicating somethign strange:


    Resetting target (halt after reset)
    JTAG speed set to 1000 kHz
    Expected an decimal digit (0-9)
    Select auto JTAG speed (2000 kHz)
    Select auto JTAG speed (2000 kHz)
    Select auto JTAG speed (2000 kHz)
    Downloading 16304 bytes @ address 0x80000000
    Downloading 16288 bytes @ address 0x80003FB0
    Downloading 16320 bytes @ address 0x80007F50
    Downloading 16288 bytes @ address 0x8000BF10
    Downloading 16240 bytes @ address 0x8000FEB0
    Downloading 16240 bytes @ address 0x80013E20
    Downloading 16240 bytes @ address 0x80017D90
    Downloading 16304 bytes @ address 0x8001BD00
    Downloading 16304 bytes @ address 0x8001FCB0
    Downloading 16320 bytes @ address 0x80023C60
    Downloading 16256 bytes @ address 0x80027C20
    Downloading 16320 bytes @ address 0x8002BBA0
    Downloading 16272 bytes @ address 0x8002FB60
    Downloading 16304 bytes @ address 0x80033AF0
    Downloading 16320 bytes @ address 0x80037AA0
    Downloading 16320 bytes @ address 0x8003BA60
    Downloading 15408 bytes @ address 0x8003FA20
    Downloading 6096 bytes @ address 0x80043650
    Downloading 16320 bytes @ address 0x80044E20
    Downloading 168 bytes @ address 0x80048DE0
    Downloading 1280 bytes @ address 0x80048E88
    Writing register (PC = 0x80000040)
    WARNING: Failed to read cacheable memory @ address 0x80000040
    Read 4 bytes @ address 0x80000040 (Data = 0x00000000)
    WARNING: Failed to read cacheable memory @ address 0x80000230
    Read 4 bytes @ address 0x80000230 (Data = 0x00000000)
    WARNING: Failed to read cacheable memory @ address 0x80000230
    Read 4 bytes @ address 0x80000230 (Data = 0x00000000)
    WARNING: Failed to read cacheable memory @ address 0x80000230
    Read 4 bytes @ address 0x80000230 (Data = 0x00000000)
    WARNING: Failed to read cacheable memory @ address 0x80000230
    Read 4 bytes @ address 0x80000230 (Data = 0x00000000)
    WARNING: Failed to read cacheable memory @ address 0x80000230
    Read 4 bytes @ address 0x80000230 (Data = 0x00000000)

    It appears that although the program has been downloaded, the data is "0x00000000" in every location...