This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Noob question to compile my first example

Hello,

Working on MAC. High Sierra.
got a 52840 dongle (but also a thingy and a devkit following the latest conference)
Trying to start at the beginning and build the blink project.
Starting to follow the tutorial on the dongle nRF52840
Installed Segger, all latest sdk available as nothing indicates which one I need.
Try new a new nordic project compile : Good
try adding the code from blink : cannot find nerf_delay.h (ok some library path missing but I know nothing about segger)
after some search
so importing a file like said I get a new error : core_cm4.h no such file or directory
I also tried to find some makefile and after some time tried and got the following error :
make: /usr/local/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc: Command not found
Cannot find: '/usr/local/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc'.
So I found the files Makefile.common and makefile.posix to modify them and
 make
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
mkdir _build
cd _build && mkdir nrf52840_xxaa
Assembling file: gcc_startup_nrf52840.S
clang: warning: argument unused during compilation: '-mcpu=cortex-m4' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-mthumb' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-mabi=aapcs' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-mfloat-abi=hard' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-mfpu=fpv4-sp-d16' [-Wunused-command-line-argument]
../../../../../../modules/nrfx/mdk/gcc_startup_nrf52840.S:23:5: error: unknown directive
    .syntax unified
    ^
../../../../../../modules/nrfx/mdk/gcc_startup_nrf52840.S:24:5: error: unknown directive
    .arch armv7e-m
 
So here I am after a few hours not even able to begin blinking anything and nothing in the forum about that as far as I see.
Any tips, full working tutorial to follow?
Thanks
Related