Hi Sir,
As follow the Getting start guide from nRF connect, I follow below command to get the latest example code.
-------
west init -m github.com/.../fw-nrfconnect-nrf west update
cd <sourcecode_root>\ncs pip3 install -r zephyr\scripts\requirements.txt pip3 install -r nrf\scripts\requirements.txt pip3 install -r mcuboot\scripts\requirements.txt
Set up a project in SEGGER Embedded Studio" to enable the project for "at_client".
---------
I follow the step of "
But when run the compile, there is a fatal error show as below.
C:/SDK/ncs/nrf/drivers/at_cmd/at_cmd.c:12:10: fatal error: bsd_limits.h: No such file or directoryRebuilding ‘zephyr/include/generated/driver-validation.h’ from solution ‘build’ in configuration ‘Common’ 1> Combining ‘zephyr/include/generated/driver-validation.h’ Rebuilding ‘zephyr/CMakeFiles/driver_validation_h_target’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘zephyr/driver_validation_h_target’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘zephyr/include/generated/kobj-types-enum.h’ from solution ‘build’ in configuration ‘Common’ 1> Combining ‘zephyr/include/generated/kobj-types-enum.h’ Rebuilding ‘zephyr/include/generated/otype-to-str.h’ from solution ‘build’ in configuration ‘Common’ 1> Combining ‘zephyr/include/generated/otype-to-str.h’ Rebuilding ‘zephyr/CMakeFiles/kobj_types_h_target’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘zephyr/kobj_types_h_target’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘zephyr/misc/generated/syscalls.json’ from solution ‘build’ in configuration ‘Common’ 1> Combining ‘zephyr/misc/generated/syscalls.json’ Rebuilding ‘zephyr/include/generated/syscall_list.h’ from solution ‘build’ in configuration ‘Common’ 1> Combining ‘zephyr/include/generated/syscall_list.h’ Rebuilding ‘zephyr/CMakeFiles/syscall_list_h_target’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘zephyr/include/generated/syscall_dispatch.c’ from solution ‘build’ in configuration ‘Common’ 1> Combining ‘zephyr/include/generated/syscall_dispatch.c’ Rebuilding ‘zephyr/syscall_list_h_target’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘zephyr/include/generated/syscall_macros.h’ from solution ‘build’ in configuration ‘Common’ 1> Combining ‘zephyr/include/generated/syscall_macros.h’ Rebuilding ‘zephyr/CMakeFiles/syscall_macros_h_target’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘zephyr/syscall_macros_h_target’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘cmake_object_order_depends_target_offsets’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘zephyr/offsets’ from solution ‘build’ in configuration ‘Common’ 1> Compiling ‘offsets.c’ Rebuilding ‘zephyr/include/generated/offsets.h’ from solution ‘build’ in configuration ‘Common’ 1> Combining ‘zephyr/include/generated/offsets.h’ Rebuilding ‘zephyr/CMakeFiles/offsets_h’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘zephyr/offsets_h’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘cmake_object_order_depends_target_app’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘app/libapp.a’ from solution ‘build’ in configuration ‘Common’ 1> Compiling ‘main.c’ Rebuilding ‘cmake_object_order_depends_target_zephyr’ from solution ‘build’ in configuration ‘Common’ 1> Archiving ‘libapp.a’ Rebuilding ‘zephyr/libzephyr.a’ from solution ‘build’ in configuration ‘Common’ 1> Compiling ‘isr_tables.c’ 2> Compiling ‘sw_isr_common.c’ 1> Compiling ‘arm_core_cmse.c’ 2> Compiling ‘crc32_sw.c’ 1> Compiling ‘crc16_sw.c’ 2> Compiling ‘crc8_sw.c’ 1> Compiling ‘crc7_sw.c’ 2> Compiling ‘fdtable.c’ 1> Compiling ‘mempool.c’ 2> Compiling ‘rb.c’ 1> Compiling ‘thread_entry.c’ 2> Compiling ‘work_q.c’ 1> Compiling ‘printk.c’ 1> Compiling ‘assert.c’ 2> Compiling ‘configs.c’ 1> Compiling ‘soc.c’ 2> Compiling ‘mpu_regions.c’ 1> Compiling ‘system_nrf9160.c’ 2> Compiling ‘nrfx_glue.c’ 1> Compiling ‘addr_utils.c’ 2> Compiling ‘socket_offload.c’ 1> Compiling ‘rand32_timer.c’ 2> Compiling ‘power.c’ 1> Compiling ‘policy_residency.c’ 2> Compiling ‘uart_console.c’ 1> Compiling ‘nrf_power_clock.c’ 2> Compiling ‘sys_clock_init.c’ 1> Compiling ‘nrf_rtc_timer.c’ Rebuilding ‘cmake_object_order_depends_target_..__nrf__drivers__at_cmd’ from solution ‘build’ in configuration ‘Common’ 1> Archiving ‘libzephyr.a’ Rebuilding ‘cmake_object_order_depends_target_..__nrf__lib__at_host’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘cmake_object_order_depends_target_arch__arm__core’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘cmake_object_order_depends_target_arch__arm__core__cortex_m’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘cmake_object_order_depends_target_arch__arm__core__cortex_m__mpu’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘cmake_object_order_depends_target_drivers__gpio’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘cmake_object_order_depends_target_drivers__serial’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘cmake_object_order_depends_target_kernel’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘cmake_object_order_depends_target_lib__libc__minimal’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘cmake_object_order_depends_target_subsys__net’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘cmake_object_order_depends_target_subsys__net__ip’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘zephyr/linker.cmd’ from solution ‘build’ in configuration ‘Common’ 1> Combining ‘zephyr/linker.cmd’ Rebuilding ‘zephyr/CMakeFiles/linker_script_target’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘zephyr/linker_script_target’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘cmake_object_order_depends_target_zephyr_prebuilt’ from solution ‘build’ in configuration ‘Common’ Rebuilding ‘zephyr/arch/arm/core/libarch__arm__core.a’ from solution ‘build’ in configuration ‘Common’ 1> Assembling ‘swap_helper.S’ 2> Assembling ‘exc_exit.S’ 1> Assembling ‘cpu_idle.S’ 1> Assembling ‘isr_wrapper.S’ 2> Assembling ‘fault_s.S’ 1> Compiling ‘swap.c’ 2> Compiling ‘irq_init.c’ 1> Compiling ‘fault.c’ 2> Compiling ‘irq_manage.c’ 1> Compiling ‘thread.c’ 2> Compiling ‘fatal.c’ 1> Compiling ‘sys_fatal_error_handler.c’ 2> Compiling ‘thread_abort.c’ Rebuilding ‘zephyr/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a’ from solution ‘build’ in configuration ‘Common’ 1> Archiving ‘libarch__arm__core.a’ 2> Assembling ‘vector_table.S’ 1> Assembling ‘reset.S’ 1> Compiling ‘prep_c.c’ 2> Assembling ‘nmi_on_reset.S’ 2> Compiling ‘scb.c’ 1> Compiling ‘nmi.c’ 2> Compiling ‘exc_manage.c’ Rebuilding ‘zephyr/arch/arm/core/cortex_m/mpu/libarch__arm__core__cortex_m__mpu.a’ from solution ‘build’ in configuration ‘Common’ 1> Archiving ‘libarch__arm__core__cortex_m.a’ 2> Compiling ‘arm_core_mpu.c’ 1> Compiling ‘arm_mpu.c’ Rebuilding ‘zephyr/lib/libc/minimal/liblib__libc__minimal.a’ from solution ‘build’ in configuration ‘Common’ 1> Archiving ‘libarch__arm__core__cortex_m__mpu.a’ 2> Compiling ‘atoi.c’ 1> Compiling ‘strtol.c’ 2> Compiling ‘strtoul.c’ 1> Compiling ‘malloc.c’ 2> Compiling ‘bsearch.c’ 1> Compiling ‘exit.c’ 2> Compiling ‘strncasecmp.c’ 1> Compiling ‘strstr.c’ 2> Compiling ‘string.c’ 1> Compiling ‘prf.c’ 2> Compiling ‘stdout_console.c’ 1> Compiling ‘sprintf.c’ 2> Compiling ‘fprintf.c’ Rebuilding ‘zephyr/subsys/net/libsubsys__net.a’ from solution ‘build’ in configuration ‘Common’ 1> Archiving ‘liblib__libc__minimal.a’ 2> Compiling ‘buf.c’ Rebuilding ‘zephyr/subsys/net/ip/libsubsys__net__ip.a’ from solution ‘build’ in configuration ‘Common’ 1> Archiving ‘libsubsys__net.a’ 2> Compiling ‘net_context.c’ 1> Compiling ‘net_core.c’ 2> Compiling ‘net_if.c’ 1> Compiling ‘net_pkt.c’ 2> Compiling ‘net_tc.c’ 1> Compiling ‘utils.c’ Rebuilding ‘zephyr/drivers/gpio/libdrivers__gpio.a’ from solution ‘build’ in configuration ‘Common’ 1> Archiving ‘libsubsys__net__ip.a’ 2> Compiling ‘gpio_nrfx.c’ Rebuilding ‘zephyr/drivers/serial/libdrivers__serial.a’ from solution ‘build’ in configuration ‘Common’ 1> Archiving ‘libdrivers__gpio.a’ 2> Compiling ‘uart_nrfx_uarte.c’ Rebuilding ‘zephyr/modules/nrf/lib/at_host/lib..__nrf__lib__at_host.a’ from solution ‘build’ in configuration ‘Common’ 1> Archiving ‘libdrivers__serial.a’ 2> Compiling ‘at_host.c’ Rebuilding ‘zephyr/modules/nrf/drivers/at_cmd/lib..__nrf__drivers__at_cmd.a’ from solution ‘build’ in configuration ‘Common’ 1> Archiving ‘lib..__nrf__lib__at_host.a’ 2> Compiling ‘at_cmd.c’ 2> C:/SDK/ncs/nrf/drivers/at_cmd/at_cmd.c:12:10: fatal error: bsd_limits.h: No such file or directory 2> compilation terminated. Build failed
If I comment #include <bsd_limits.h>, I can compile success.
The question is
1. Is the "bsd_limits.h" require for this project?
2. if this is file is require, how do I add the path in this project?
Thank you.
BRs, Han