Hello,
I am supposed to get to learn the nRF52840 DK, so I can start programming with it. I managed to build an executable for the blinky example using make in the Terminal. My next task was to get Eclipse working for building and debugging, which I could not manage. Hence this ticket. I tried to access an original article "Development with GCC and Eclipse" which I saw has been cited by several posts on the net, but the resource seems to be not accessible any more @ this link:
https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/development-with-gcc-and-eclipse
Hence I tried to manage with the posts I found, one of them being the following one:
I followed the instructions, but still cannot manage to get Eclipse building the same blinky example that I used to test the tools via the Terminal.
The output I get is:
make all
../../../../../../components/toolchain/gcc/Makefile.common:130: *** Cannot continue. Stop.
Cannot find: # '/home/koko/Desktop/nRF52840/gcc-arm-none-eabi-10.3-2021.07-x86_64-linux/gcc-arm-none-eabi-10.3-2021.07/bin/arm-none-eabi-gcc'
/home/koko/Desktop/nRF52840/gcc-arm-none-eabi-10.3-2021.07-x86_64-linux/gcc-arm-none-eabi-10.3-2021.07/bin/arm-none-eabi-gcc.
Please set values in: "/home/koko/Desktop/nRF52840/nRF5_SDK_17.0.2_d674dde/components/toolchain/gcc/Makefile.posix" according to the actual configuration of your system.
"make all" terminated with exit code 2. Build might be incomplete
I work on Ubuntu 20.04 LTS, downloaded the Eclipse for Embedded from the following link:
https://www.eclipse.org/downloads/packages/release/2021-06/r/eclipse-ide-embedded-cc-developers
My settings (paths) under "Project --> Properties --> MCU" are the same I used for testing the tools via the Terminal, e.g.
- Arm Toolchains Path --> Toolchain Folder
- SEGGER J-Link Path --> Executable / Folder
I error above happens when I use the default build command. It I change it to "make VERBOSE=1", I get a different error:
"make VERBOSE=1" all
Cannot run program "make VERBOSE=1": Unknown reason
Error: Program "make VERBOSE=1" not found in PATH
PATH=[/home/koko/Desktop/nRF52840/nRF5_SDK_17.0.2_d674dde/examples/peripheral/blinky/pca10056/blank/armgcc:/home/koko/Desktop/nRF52840/gcc-arm-none-eabi-10.3-2021.07-x86_64-linux/gcc-arm-none-eabi-10.3-2021.07/bin:/home/koko/.local/bin:/home/koko/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin]
So, I started to get more confused than instructed, and wanted to ask if somebody could direct me to another step-by-step resource describing how exactly Eclipse is to bet set up ?
I would be thankful for any feedback