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

Command line Make example project for nRF52 DK

I'm trying to build the "blinky" example found in nRF5_SDK_15.3.0_59ac345/examples/peripheral/blinky/pca10040e/blank/armgcc

Actually the pca10040e directory contains 'blank' and 'mbr' directories, I just went with blank but I've no idea what the difference is and which I should be using. I went with 'blank' and tried a 'make' command. Everything compiled but the linker is missing a library. I've installed both the  nRF5_SDK_15.3.0 and s132 packages but searching my machine and there's no occurrences of either libc_nano* or libg_nano. I'm not sure if those libs are target, as in Nordic nRF52 specific or arm specific, in which case they should have been installed with my arm-none-eabi-gcc packages?

/usr/lib64/gcc/arm-none-eabi/7/ld: cannot find -lc_nano
/usr/lib64/gcc/arm-none-eabi/7/ld: cannot find -lg_nano
/usr/lib64/gcc/arm-none-eabi/7/ld: cannot find -lc_nano

So should I be making in 'blank' or 'mbr' and where should I install libs from?

Parents Reply
  • I'm not sure about some of your points. The Makefile already sets up the CXXFLAGS variable, it's obviously not used, or possibly not used but it's certainly set up in the Makefile. Makefile.common specifies the toolchain, or possibly just the location of the toolchain, so possibly I don't have to mess with it. I hope that's right.

    As for the SDK supporting C++, the SDK will contain a lot of C Libraries, but that should not be an issue as C++ code can call C functions. Then the gcc toolchain already has very good support for C++ so that's not an issue. I'd imagine that as the heart of the nRF52 is an ARM ISA CPU that there's a good percentage of the STL supported, possibly much of it of little use in an embedded target but I'd say it's there.

    So all the bits are there I just have to figure out how to plug them all in together.

    If by SDK Support of C++ you mean the IDE I don't really have much interest in the IDE.

Children
No Data
Related