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
Hi,

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

eclipse cdt( Version: 2018-09 (4.9.0) i used)
ninja
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)
cmake
cmake4eclipse plugin

STEPS

- 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")

set(BUILDING_SDK "yes" CACHE INTERNAL "")

include(${SDK_ROOT}/cmake/common.cmake)
project(k210)

# config self use headers
include(${SDK_ROOT}/cmake/macros.internal.cmake)
INCLUDE_DIRECTORIES(${SDK_ROOT}/lib/arch/include ${SDK_ROOT}/lib/utils/include)
header_directories(${SDK_ROOT}/lib)

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

# compile project
add_source_files(src/*.c src/*.s src/*.S src/*.cpp)
include(${SDK_ROOT}/cmake/executable.cmake)



- 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:Highlight all matches for various text
Next Topic:Eclipse installer won't open
Goto Forum:
  


Current Time: Fri Apr 19 04:34:00 GMT 2024

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

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

Back to the top