Debuging using GDB from Command line

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

  • Debuging using GDB from Command line

    Hi

    I am Using J-link edu & GDB Server to debug my SW from command line.
    I use the command line with Code sourcery GDB "arm-stellaris-eabi-gdb"
    "
    E:\....\test programming using GDB>arm-stellaris-eabi-gdb Monnit2BuzzerTesting
    GNU gdb (Sourcery G++ 4.4-104) 6.8.50.20090630-cvs
    Copyright (C) 2009 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "--host=i686-mingw32 --target=arm-stellaris-eabi".
    For bug reporting instructions, please see:
    <support.codesourcery.com/GNUToolchain/>...
    (gdb) target remote localhost:2331
    Remote debugging using localhost:2331
    0x00000000 in ?? ()
    (gdb) monitor interface SWD
    Select SWD as target interface
    (gdb) monitor flash download=1
    Flash download enabled
    (gdb) load
    Loading section .text, size 0x15b0 lma 0x1000
    Loading section .rodata, size 0x180 lma 0x25b0
    Loading section .data, size 0x128 lma 0x2730
    Start address 0x10f0, load size 6232
    Transfer rate: 154 bytes/sec, 2077 bytes/write.
    (gdb) q"

    But it seams that the program is not written to the Flash ,
    Also I used "monitor Flash device = LM3S6938" and "monitor flash breakpoint=1" before load but I have the same results?
    Is there anything missing?

    Regards
    Hossam Alzomor
  • Hi Hossam,

    Could you please provide your GDBInit file as well as an test ELF file that runs on an eval board and can be used for reproduction?

    By the way: Which version of the GDBServer do you use?


    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.