summaryrefslogtreecommitdiff
path: root/schulung_tools/notes/HOWTO-eclipse-cross-remote.txt
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2018-04-05 09:19:52 +0200
committerJohn Ogness <john.ogness@linutronix.de>2018-04-05 09:19:52 +0200
commit674363214075c751df862ae87a9cd5ab28194cce (patch)
tree90d1fab7db4098f193509337729939fb0496428d /schulung_tools/notes/HOWTO-eclipse-cross-remote.txt
parent9dcc0caa20b786a52a328c43b062b402e064f79f (diff)
add eclipse and preempt-rt notes
These are notes that may be helpful for trainers when preparing for a schulung. Signed-off-by: John Ogness <john.ogness@linutronix.de>
Diffstat (limited to 'schulung_tools/notes/HOWTO-eclipse-cross-remote.txt')
-rw-r--r--schulung_tools/notes/HOWTO-eclipse-cross-remote.txt43
1 files changed, 43 insertions, 0 deletions
diff --git a/schulung_tools/notes/HOWTO-eclipse-cross-remote.txt b/schulung_tools/notes/HOWTO-eclipse-cross-remote.txt
new file mode 100644
index 0000000..45c8d02
--- /dev/null
+++ b/schulung_tools/notes/HOWTO-eclipse-cross-remote.txt
@@ -0,0 +1,43 @@
+(setup cross project)
+File -> New -> C Project
+"C Project" window
+ Project name: hello
+ Project type: Hello World ANSI C Project
+ Toolchains: Cross GCC
+"Basic Settings" window
+ (author, copyright, ...)
+"Select Configurations" window
+ Debug, Release
+"Cross GCC Command" window
+ Cross compiler prefix: arm-linux-gnueabihf-
+ Cross compiler path: /opt/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin
+
+(modify existing project)
+Project -> Properties
+C/C++ Build -> Settings
+
+(setup debug)
+Run -> Debug Configurations
+"Create, manage, and run configurations" window
+ select "C/C++ Remote Application" and click "New" icon
+"Main" tab
+ Connection: New...
+"Create a new connection" window
+ Connection type: SSH
+"New Connection" window
+ Connection name: qemu-arm
+ Host: localhost
+ User: root
+ Password based authentication
+ Password: root
+ Advanced
+ Port: 2222
+ Use login shell
+ Login shell command: /bin/sh -c '{0}'
+"Main" tab
+ Remote Abolsute File Path for C/C++ Application: /hello
+"Debugger" tab
+ "Main" sub-tab
+ GDB debugger: /opt/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gdb
+ "Gdbserver Settings" sub-tab
+ Port number: 12345