Home › Forums › Mastering STM32 book support forum › OpenOCD Debug in Eclipse won't start
- This topic has 20 replies, 3 voices, and was last updated 7 years, 11 months ago by bobbydigital.
-
AuthorPosts
-
December 29, 2016 at 11:51 pm #5477bobbydigitalParticipant
There are no other messages that are added. The only thing I didn’t paste were the CDT Build console:
14:51:14 **** Incremental Build of configuration Debug for project blinkdec9 ****
make all
Invoking: Cross ARM GNU Print Size
arm-none-eabi-size –format=berkeley “blinkdec9.elf”
text data bss dec hex filename
5347 176 416 5939 1733 blinkdec9.elf
Finished building: blinkdec9.siz14:51:14 Build Finished (took 70ms)
and the GDB OpenOCD Debugging gdb traces:
874,741 2-gdb-show language
874,742 2^done,value=”auto”
874,742 (gdb)
874,743 3-data-evaluate-expression “sizeof (void*)”
874,744 3^done,value=”4″
874,744 (gdb)
874,745 4-gdb-set language auto
874,746 4^done
874,746 (gdb)
874,746 5-interpreter-exec console “show endian”
874,747 ~”The target endianness is set automatically (currently little endian)\n”
874,748 5^done
874,748 (gdb)
874,749 6-gdb-version
874,750 ~”GNU gdb (GNU Tools for ARM Embedded Processors) 7.10.1.20160923-cvs\n”
874,751 ~”Copyright (C) 2015 Free Software Foundation, Inc.\n”
874,751 ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is fre\
e software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitt\
ed by law. Type \”show copying\”\nand \”show warranty\” for details.\n”
874,752 ~”This GDB was configured as \”–host=x86_64-apple-darwin10 –target=arm-none-eabi\”.\nType \
\”show configuration\” for configuration details.”
874,752 ~”\nFor bug reporting instructions, please see:\n”
874,752 ~”<http://www.gnu.org/software/gdb/bugs/>.\n”
874,752 ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/soft\
ware/gdb/documentation/>.\n”
874,752 ~”For help, type \”help\”.\n”
874,752 ~”Type \”apropos word\” to search for commands related to \”word\”.\n”
874,752 6^done
874,752 (gdb)
874,753 7-environment-cd /Users/dalycb/Documents/Eclipse/temp3/blinkdec9
874,754 7^done
874,754 (gdb)
874,754 8-gdb-set breakpoint pending on
874,755 8^done
874,755 (gdb)
874,756 9-enable-pretty-printing
874,757 9^done
874,757 (gdb)
874,757 10-gdb-set python print-stack none
874,758 10^done
874,758 (gdb)
874,758 11-gdb-set print object on
874,759 11^done
874,759 (gdb)
874,759 12-gdb-set print sevenbit-strings on
874,760 12^done
874,760 (gdb)
874,761 13-gdb-set charset ISO-8859-1
874,762 13^done
874,762 (gdb)
874,762 14source .gdbinit
874,763 &”source .gdbinit\n”
874,764 &”.gdbinit: No such file or directory.\n”
874,764 14^error,msg=”.gdbinit: No such file or directory.”
874,764 (gdb)
874,764 15set mem inaccessible-by-default off
874,765 &”set mem inaccessible-by-default off\n”
874,766 =cmd-param-changed,param=”mem inaccessible-by-default”,value=”off”
874,766 15^done
874,766 (gdb)
874,767 16-gdb-set auto-solib-add on
874,767 16^done
874,767 (gdb)
874,768 17-target-select remote localhost:3333
874,770 &”localhost: unknown host\n”
874,771 17^error,msg=”localhost:3333: No such file or directory.”
874,771 (gdb)
874,773 18-gdb-exit
874,773 18^exitDecember 29, 2016 at 11:54 pm #5479Carmine NovielloKeymasterWell, as I can see you are running on a Mac. Once started the external tool, type this command on a terminal session:
$ telnet localhost 3333
And past here the output
December 30, 2016 at 12:30 am #5481bobbydigitalParticipantnull-685b357e69f4:~ username$ telnet localhost 3333
localhost: nodename nor servname provided, or not knowntried this with sudo to and same thing.
thanks for the help, really appreciate it!
December 30, 2016 at 7:47 am #5483Carmine NovielloKeymasterOk. That helps a lot. You have something wrong with the network settings.
From the terminal session run this command:$ cat /etc/hosts
and past here the content.
December 30, 2016 at 7:00 pm #5485bobbydigitalParticipantHuh. The directory exists, but the cat command returns nothing.
December 30, 2016 at 7:30 pm #5487bobbydigitalParticipantGOT IT! Thank you!
This was the issue. I had nothing in /etc/hosts for whatever reason. I added this to the blank file:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhostAnd I can enter debug mode. Thank you again very much for this! I really appreciate the help and patience!
-
AuthorPosts
- You must be logged in to reply to this topic.