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

nRF51 SDK makefile path-related problems

I'm trying to compile nRF51 SDK 8.0.0 under Windows. So for that purpose I'm going to components/toolchain/gcc and running 'make' there.

No targets specified and no makefile found. Stop.

Okay, I try running 'make -f Makefile.common'

Makefile.common:10: /Source//templates/gcc/Makefile.windows: No such file or directory

That doesn't seem right at all. There's no 'templates' folder in my SDK installation at all. Taking a look into Makefile.common and I see that it is definitely looking for it there:

TEMPLATE_PATH += $(SDK_SOURCE_PATH)/templates/gcc/

Is this how it's supposed to be? Am I doing something wrong? Digging deeper and it appears that there's even more path issues.

INCLUDEPATHS += -I"$(SDK_PATH)Include"

There isn't such a folder either, infact everything is scattered around in various folders. For now I can edit the makefile myself but I felt like I should report it anyway. Thanks

Parents
  • Hi, the makefiles are located in the example project folders, for instance ..\nRF51_SDK_8.0.0\examples\peripheral\blinky\pca10028\blank\armgcc for the blinky example. The project makefiles are standalone and does not depend on makefile.common anymore. However, before doing this you have to make sure that you have set the correct toolchain path for your system in "\components\toolchain\gcc\Makefile.windows".

    Just go to the ARMGCC of folder in any of the examples and type 'make' in the command line to start building.

  • I think it is better to compile the source files for each example. The reason for that is that some source files are compiled differently depending on pre-processor definitions and configuration files such as pstorage_platform.h

Reply Children
No Data
Related