[SOLVED]howto remote debugging arm with gdb jlink sam-ice

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

  • [SOLVED]howto remote debugging arm with gdb jlink sam-ice

    Hi,

    i downloaded a bootstrap and a binary from atmels sampels (AT91SAM9RLEK - getting started) to my board which works.
    To debug:
    i run the segger gdbserver which is running at localhost:2331
    then i open a console and write
    arm-none-eabi-gdb
    <gdb> target remote localhost:2331
    Connected to 127.0.0.1

    SAM-ICE found !

    Reading all registers
    Read 4 bytes @ address 0x00000000 (Data = 0xE59FF05C)

    Remote debugging using localhost:2331
    0x00000000 in ?? ()
    <gdb> break main
    No symbol table is loaded use the file command.
    Make breakpoint pending on future shared library load? n
    <gdb> continue
    continuing
    Read 4 bytes @ address 0x00000000 (Data = 0xE59FF05C)
    Starting target CPU...

    and nothing happens.

    what´s the error?

    regards


    edit:
    ok fixed it by using the elf file with the file command

    The post was edited 2 times, last by Gobliins ().

  • Hi,

    to get an idea what is necessary to setup a debug session with GDB,
    you should refer to the GDB sample projects which come with the J-Link software and documentation package.
    The GDB sample projects are located at $JLINK_INST_DIR$\Samples\GDB\Projects.
    Every project comes with a GDBInit file (*.gdb) which is located in the "Setup" folder of the project.
    The GDBinit files contain all necessary steps to setup GDB for the debug session.

    Best regards
    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.