[SOLVED] J-Link "Read 1 bytes @ address 0x00000000" on LPC2387

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

  • [SOLVED] J-Link "Read 1 bytes @ address 0x00000000" on LPC2387

    Hi

    I have an issue with a J-Link on my computer where I can't seem to debug an LPC2387. It seems to work fine on a friends computer which we think is using exactly the same tools.

    My system is
    Windows 10
    Eclipse 2021-06
    JLinkARM.dll V7.54a (DLL compiled Sep 7 2021 14:25:55)

    The debug logs look identical (see attached) until the lines...

    Waiting for GDB connection...Connected to 127.0.0.1
    Reading all registers
    Read 1 bytes @ address 0x00000000 (Data = 0x18)
    Read 1 bytes @ address 0x00000000 (Data = 0x18)
    Reading 64 bytes @ address 0x00000000
    Received monitor command: speed 1000

    Target interface speed set to 1000 kHz

    Whereas my friends computer has the following....

    Waiting for GDB connection...Connected to 127.0.0.1
    Reading all registers
    Read 4 bytes @ address 0x00000000 (Data = 0xE59FF018)
    Read 4 bytes @ address 0x00000000 (Data = 0xE59FF018)
    Received monitor command: speed 1000
    Target interface speed set to 1000 kHz

    Does anyone have any ideas why my system might be misbehaving? On my system, the processor breaks at 0x0 and can't go any further, whereas my friends seems to be working ok.

    Thanks in advance for any help.

    Howard
    Files
    • broken.txt

      (6.9 kB, downloaded 17 times, last: )
    • working.txt

      (4.43 kB, downloaded 17 times, last: )
  • I have something working..... sort of.

    I was using GDB server from MinGW (8.1 downloaded from sourceforge.net which is where the mingw website says to download from), and that didn't work. However if I point my windows path at the tools folder within an installation of MCUXpresso, it seems to work.

    MingGW version....
    GNU gdb (GDB) 8.1

    MCUXpresso version...
    GNU gdb (GNU Arm Embedded Toolchain 10-2020-q4-major) 10.1.90.20201028-git

    I now have something that works, but 'd prefer not to have to update my path every time I update MCUXpresso.

    Is there a windows version of GDB server that works with Eclipse and ARM7 processors that I can download somewhere?
  • Hi,

    You are not using “GDBServer” from MinGW but “GDB. These are different applications.
    J-Link GDBServer works.

    If you are looking for a GCC toolchain (GCC, GDB, …) how about the official one from ARM?
    developer.arm.com/tools-and-so…ools/gnu-toolchain/gnu-rm

    BR
    Alex
    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.
  • Thanks for the information and sorry for the delay in replying.

    I've downloaded the arm tools you linked to and removed all the other toolchains that I had acquired whilst trying to get my code to debug. I now have a system that I can debug :)

    Thanks

    SEGGER - Alex wrote:

    If you are looking for a GCC toolchain (GCC, GDB, …) how about the official one from ARM?

    developer.arm.com/tools-and-so…ools/gnu-toolchain/gnu-rm

    BR
    Alex
  • Hi,
    good to hear that you are up and running again.

    We will close this thread now.

    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.