This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Getting Started with NCS (NRF Connect SDK) with simple PWMs.

Hi,

I trouble the support team for quite a few months now with NRF5 and I am now trying to get started with the up to date SDK and hopefully being able to get along with matter functionnalities.

I am using the SDK on VS Code and I find it a bit troubling how things works with Zephyr. I started on a standard blinky but I can't find any examples using Zephyr for a PWM or interrupt based events. So far my attempts at getting along the new SDK was applying changes in the zephyr.dts file : 

I am then very concerned about the way to proceed, the blink exemple seems to use deprecated GPIO definitions (device_get_binding()) and I am not able to set up anything easily.
I hope you can make my way into this easier.
Best Regards,
Charles
  • Could you attach the detailed error message that you get?

    -Priyanka

  • Error: c:\Users\user\Desktop\project\project_app\build\nrf52840dk_nrf52840.dts.pre.tmp:680.1-8 syntax error
    FATAL ERROR: Unable to parse input tree
    CMake Error at C:\Users\user\ncs\v1.8.0\zephyr\cmake\dts.cmake:225 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    C:\Users\user\ncs\v1.8.0\zephyr\cmake\app\boilerplate.cmake:545 (include)
    C:\Users\user\ncs\v1.8.0\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:24 (include)
    C:\Users\user\ncs\v1.8.0\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:35 (include_boilerplate)
    c:\Users\user\Desktop\project\project_app\build\CMakeLists.txt:4 (find_package)


    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: 'c:\Users\user\ncs\v1.8.0\toolchain\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\Users\user\ncs\v1.8.0\toolchain\opt\bin\python.exe' '-Bc:\Users\user\Desktop\project\project_app\build' '-Sc:\Users\user\Desktop\project\project_app' -GNinja -DBOARD=nrf52840dk_nrf52840 -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DBOARD_ROOT:STRING=c:/Users\user/Desktop/project/project_app -DCONFIG_DEBUG_OPTIMIZATIONS:STRING=y -DCONFIG_DEBUG_THREAD_INFO:STRING=y -DDTC_OVERLAY_FILE:STRING=c:/Users/user/Desktop/project/project_app/nrf52840dk_nrf52840.overlay -DCONF_FILE:STRING=c:/Users/user/Desktop/project/project_app\/prj.conf

  • We can take a look around now:

    1. Have you made sure that you have taken CMakeLists and prj.conf back to how it was before you modified it?

    CMakeLists:

    prj.conf:

    2. When you generate the build configuration, do you enable the debug option?

    Also, could you tell me the path where you create the project folder?

    -Priyanka

  • Yes my files are the default files.

    I created a directory in my desktop named project c:\Users\user\Desktop\project. Then I opened the empty directory with vs code and created the application with the name project_app.

    I enabled the debug options.

  • Could you create the folder "projects" inside the c:\Users\user\ncs ?

    Then, when you open the VS Code via Toolchain manager, click on "Create a new application from sample" and enter the details similar to as follows (your Application location will be c:\Users\user\ncs\projects)

    And, later when generating the build configurations, do not enable the debug options.

    Regards,

    Priyanka

1 2 3