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

Best way to start new project on nRF toolchain manager

I'm new to the nRF connect sdk (but have used the previous sdk in the past), and am wondering what the best way to start a new project is? With the old sdk, it was easiest to just copy a sample project and use that, but I'm wondering if there is a better way now with zephyr etc?

  • Hi!

    We still recommend copying a sample application that most closely resembles the application you want to write.

    If you want to start completely from scratch, you can create the application directory <app> and src directory <app>/src and place the main.c file in src. Then create prj.conf and CMakeLists.txt in <app>. 

    CMakeLists.txt should contain

    cmake_minimum_required(VERSION 3.13.1)
    
    find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
    project(hello_world)
    target_sources(app PRIVATE src/main.c)
     

    Best regards,

    Heidi

Related