Black Magic Probe

Sysprogs forums Forums VisualGDB Black Magic Probe

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #13103
    XSpectrum
    Participant

    Hi,

    I’m trying to setup Black Magic Probe to debug NRF51/2. I have done the full custom debugging settings as this post:

    Debugger setup for Black Magic Probe?

    I got a too long wait operation until I exit:

     

    VisualGDB is licensed to Company (site license)
    C:\SysGCC\arm-eabi\bin\arm-eabi-gdb.exe –interpreter mi C:\Projects\TestNRF2\VisualGDB\Debug\TestNRF2
    -gdb-version
    Excess command line arguments ignored. (C:\Projects\TestNRF2\VisualGDB\Debug\TestNRF2)
    GNU gdb (GDB) 8.0.1
    Copyright (C) 2017 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&gt;
    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-w64-mingw32 –target=arm-eabi”.
    Type “show configuration” for configuration details.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/&gt;.
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/&gt;.
    For help, type “help”.
    Type “apropos word” to search for commands related to “word”…
    –interpreter: No such file or directory.
    C:\Projects\TestNRF2\TestNRF2/mi: No such file or directory.
    Undefined command: “-gdb-version”. Try “help”.
    Warning: could not set a breakpoint on main. ‘Step into new instance’ will not work.
    Quit
    System.Exception: GDB has exited prematurely
    at VisualGDB.GDBDebugEngine.c(or a, q1 b)

    .
    I can easily upload the elf file using the command line as follow:

    .
    arm-none-eabi-gdb.exe C:\Projects\TestNRF2\VisualGDB\Debug\TestNRF2
    GNU gdb (GNU Tools for ARM Embedded Processors) 7.6.0.20140228-cvs
    Copyright (C) 2013 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&gt;
    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-w64-mingw32 –target=arm-none-eabi”.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>&#8230;
    Reading symbols from C:\Projects\TestNRF2\VisualGDB\Debug\TestNRF2…done.
    (gdb) set confirm off
    (gdb) target extended-remote \\.\COM5
    Remote debugging using \\.\COM5
    (gdb) monitor swdp_scan
    Target voltage: Not Implemented!
    Available Targets:
    No. Att Driver
    1 Nordic nRF51 0x0084
    (gdb) attach 1
    Attaching to program: C:\Projects\TestNRF2\VisualGDB\Debug\TestNRF2, Remote target
    0x0001c10e in nrf_delay_us (number_of_us=1000000)
    at C:/Users/user1/AppData/Local/VisualGDB/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nordic.nrf5x-legacy/nRF5x/components/drivers_nrf/delay/nrf_delay.h:206
    206 );
    (gdb) load
    Loading section .softdevice, size 0x1b000 lma 0x0
    Loading section .isr_vector, size 0xc0 lma 0x1b000
    Loading section .text, size 0x12e0 lma 0x1b0c0
    Loading section .init_array, size 0x4 lma 0x1c3a0
    Loading section .fini_array, size 0x4 lma 0x1c3a4
    Loading section .data, size 0x4 lma 0x1c3a8
    Start address 0x1c098, load size 115628
    Transfer rate: 23 KB/sec, 955 bytes/write.
    (gdb) quit
    Detaching from program: C:\Projects\TestNRF2\VisualGDB\Debug\TestNRF2, Remote target
    I tried also to change the version of GDB tools but got the same result.

    Could you please suggest something to solve this issue?

    Thanks

    • This topic was modified 6 years, 4 months ago by XSpectrum.
    • This topic was modified 6 years, 4 months ago by XSpectrum.
    • This topic was modified 6 years, 4 months ago by XSpectrum.
    • This topic was modified 6 years, 4 months ago by XSpectrum.
    • This topic was modified 6 years, 4 months ago by XSpectrum.
    #13113
    support
    Keymaster

    Hi,

    Looks like the VisualGDB debug engine might not be initialized properly. Could you please share a screenshot of your About VisualGDB window?

    #13128
    XSpectrum
    Participant

    I use the version 5.2 build 1374. This is my first time to work on VisualGDB and I didn’t try other debuggers yet.

    #13136
    support
    Keymaster

    Hi,

    Thanks for the update. We would still need to see the About window to check the initialization status of various VisualGDB components.

    #13142
    XSpectrum
    Participant

    Hi,

    Thanks for reply. About window has only the version number and license. Do you mean another window/log?

    #13144
    support
    Keymaster

    Hi,

    The window displays various service information that is required for us to check whether VisualGDB is initialized correctly. We also could not find any orders associated with your email address. Please let us know the address associated with your license.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.