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

Mesh Light Switch Sample

Hello all,

I am trying to compile the Light Switch sample here https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/mesh/light_switch/README.html

I imported it through the nRF Connect SDK Project and tried building it and I get the following error:

Building ‘C:/v1.7.0/zephyr/include/dt-bindings/gpio/gpio.h’ from solution ‘build’ in configuration ‘Common’
Building ‘C:/v1.7.0/zephyr/include/dt-bindings/i2c/i2c.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/misc/generated/syscalls.json’ from solution ‘build’ in configuration ‘Common’
  Combining ‘zephyr/misc/generated/syscalls.json’
Building ‘zephyr/misc/generated/struct_tags.json’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/CMakeFiles/parse_syscalls_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/parse_syscalls_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/driver-validation.h’ from solution ‘build’ in configuration ‘Common’
  Combining ‘zephyr/include/generated/driver-validation.h’
Building ‘zephyr/CMakeFiles/driver_validation_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/driver_validation_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/kobj-types-enum.h’ from solution ‘build’ in configuration ‘Common’
  Combining ‘zephyr/include/generated/kobj-types-enum.h’
Building ‘zephyr/include/generated/otype-to-str.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/CMakeFiles/kobj_types_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/otype-to-size.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/kobj_types_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/syscall_list.h’ from solution ‘build’ in configuration ‘Common’
  Combining ‘zephyr/include/generated/syscall_list.h’
Building ‘zephyr/CMakeFiles/syscall_list_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/syscall_dispatch.c’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/syscall_list_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_offsets’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘offsets.c’
    arch.h
    cpu.h
    kernel_includes.h
    kernel.h
    offsets_aarch32.c
    offsets.c
    In function 'arch_irq_lock':
    'DT_N_S_soc_S_interrupt_controller_e000e100_P' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_interrupt_controller_e000e100_ORD'?
    in definition of macro 'DT_CAT'
    in expansion of macro 'DT_PROP'
    in expansion of macro 'DT_N_INST_0_arm_v8m_nvic'
    in expansion of macro 'UTIL_PRIMITIVE_CAT'
    in expansion of macro 'UTIL_CAT'
    in expansion of macro 'DT_INST'
    in expansion of macro 'NVIC_NODEID'
    in expansion of macro 'NUM_IRQ_PRIO_BITS'
    in expansion of macro 'Z_EXC_PRIO'
    in expansion of macro '_EXC_IRQ_DEFAULT_PRIO'
    each undeclared identifier is reported only once for each function it appears in
    in definition of macro 'DT_CAT'
    in expansion of macro 'DT_PROP'
    in expansion of macro 'DT_N_INST_0_arm_v8m_nvic'
    in expansion of macro 'UTIL_PRIMITIVE_CAT'
    in expansion of macro 'UTIL_CAT'
    in expansion of macro 'DT_INST'
    in expansion of macro 'NVIC_NODEID'
    in expansion of macro 'NUM_IRQ_PRIO_BITS'
    in expansion of macro 'Z_EXC_PRIO'
    in expansion of macro '_EXC_IRQ_DEFAULT_PRIO'
    arm_mpu_v8m.h
    arm_mpu.h
    arch.h
    cpu.h
    kernel_includes.h
    kernel.h
    offsets_aarch32.c
    offsets.c
    At top level:
    #error "NUM_IRQ_PRIO_BITS and __NVIC_PRIO_BITS are not set to the same value"
Build failed

I am using Windows 10, SEGGER Embedded Studios v5.60, nRF Connect SDK 1.7 and have bluetooth mesh enabled in prj.conf. Also using the nRF 5340 DK and targeting the application core.

Are there any other configurations I'm missing? Or other solutions to get the sample to compile?

Thanks

Parents Reply Children
  • Hi Jala

    This build runs on my computer, so it looks like an install issue.
    Are you able to build other samples, or is it only this one that crashes?

    When the build fail, can you have a look at the "Terminal" tab in VS Code?
    Here I am mostly interested in the version information found at the top, from Zephyr Version to C and CXX compiler identifications.

    Regards,
    Sigurd Hellesvik

Related