blob: eee732593d2fa2779e4cc51cff5f8512300b2d0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
(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
===================
Create Connection
===================
open the new connection dialog:
Target -> New Connection
Generic Connection
Connection Name: myboard
Type: TCP
Host: (ip address of board)
NOTE: The connection is activated immediately so the board must be online
and tcf-agent must be running on the board. The connection can be
controlled with:
Target -> Connect/Disconnect
!!!
!!! This "setup debug" section is outdated! It is better to cross-compile
!!! the tcf-agent (https://www.eclipse.org/tcf/downloads.php) and setup
!!! the debug connection like Yocto (HOWTO-eclipse-yocto.txt).
!!!
!!! NOTE: The '"Debugger" tab' part of the below instructions is still
!!! valid and necessary!
!!!
(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: 2345
|