Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Setting up Eclipse with unprecise manual
Setting up Eclipse with unprecise manual [message #1800319] Mon, 24 December 2018 13:37
Uli S is currently offline Uli SFriend
Messages: 3
Registered: December 2018
Junior Member

I want to setup eclipse with a provided manual on a win7 system. The Manual is as follows:

eclipse cdt( Version: 2018-09 (4.9.0) i used)
unofficial build of riscv toolchain for windows( gdb have bug in official toolchain for windows. if you use linux it's okay, if you use windows you have to build yourself or find prebuilt from somewhere like sifive)
cmake4eclipse plugin


- add ${toolchain}/bin to path env
- add so search path (if you use linux)
- put ninja to your search path
- run eclipse cdt new c/c++ project
- add cmakelists.txt like this:
cmake_minimum_required(VERSION 3.0)

set(SDK_ROOT "C:/Kendryte/kendryte-standalone-sdk-0.5.2/")
set(TOOLCHAIN "C:/Kendryte/kendryte-toolchain/bin")



# config self use headers
INCLUDE_DIRECTORIES(${SDK_ROOT}/lib/arch/include ${SDK_ROOT}/lib/utils/include)

# build library first
add_subdirectory(${SDK_ROOT}/lib lib)

# compile project
add_source_files(src/*.c src/*.s src/*.S src/*.cpp)

- configure cmake. using generate "Eclipse Ninja"
- build project
- launch openocd with -m0
- add debug config "gdb hardware debug"
- configure gdb using "localhost:3333" and configure
- start debugging

I did work on a lot of points, but I'm not sure I'm doing the right things.
For now I did:
- download the eclipse cdt version
- downloaded Ninja and added it to PATH
- installed cmake
- installed cmake4eclipse in eclipse
- installed mingw

My questions are:
1. How can I configure cmake to use Eclipse Ninja to generate?
2. how can I specify openocd with -m0 in eclipse? I have the executables already downloaded.
3. When I manually use cmkae-gui (with specified source code and where to place binaries) I should get a bin file, right? But I don't get a bin file form it...

I would really looking forward to getting form knowledge elclipse user some advide. Thank you very much
Previous Topic:Jenkins -> Building Eclipse RCP applications in Eclipse Oxygen
Next Topic:Eclipse Name
Goto Forum:

Current Time: Thu May 28 05:26:31 GMT 2020

Powered by FUDForum. Page generated in 0.02620 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top