Sysprogs forums › Forums › VisualGDB › Black Magic Probe
Tagged: BMP NRF
- This topic has 5 replies, 2 voices, and was last updated 7 years, 5 months ago by
support.
-
AuthorPosts
-
December 2, 2017 at 08:55 #13103
XSpectrum
ParticipantHi,
I’m trying to setup Black Magic Probe to debug NRF51/2. I have done the full custom debugging settings as this post:
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>
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/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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>
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/>…
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
December 2, 2017 at 18:45 #13113support
KeymasterHi,
Looks like the VisualGDB debug engine might not be initialized properly. Could you please share a screenshot of your About VisualGDB window?
December 2, 2017 at 21:49 #13128XSpectrum
ParticipantI use the version 5.2 build 1374. This is my first time to work on VisualGDB and I didn’t try other debuggers yet.
December 2, 2017 at 23:51 #13136support
KeymasterHi,
Thanks for the update. We would still need to see the About window to check the initialization status of various VisualGDB components.
December 3, 2017 at 07:26 #13142XSpectrum
ParticipantHi,
Thanks for reply. About window has only the version number and license. Do you mean another window/log?
December 3, 2017 at 18:39 #13144support
KeymasterHi,
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.
-
AuthorPosts
- You must be logged in to reply to this topic.