nRF Connect SDK with External GSM 7600 with nRF52840

Hi,
I am working on nRF52840. Previously I was using the nRF SDK as there was no library available for external GSM(MQTT) so I am moving to nRF Connect SDK. I have successfully set up the environment now I want to communicate nRF52840 with external GSM(SIMCOM 7600G) and send data over the MQTT library. How can I start? Is there any tutorial? 

Parents Reply Children
  • Hi  ,

    Here are the updated logs.

     *  Executing task: nRF Connect: Build: mqtt_publisher_test/build (active) 
    
    Building mqtt_publisher_test
    west build --build-dir f:\Development\nordicsemi\Myapps\mqtt_publisher_test\build f:\Development\nordicsemi\Myapps\mqtt_publisher_test
    
    [0/1] Re-running CMake...
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: F:/Development/nordicsemi/Myapps/mqtt_publisher_test
    -- Cache files will be written to: F:/Development/nordicsemi/v2.1.2/zephyr/.cache
    -- Zephyr version: 3.1.99 (F:/Development/nordicsemi/v2.1.2/zephyr)
    -- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
    -- Board: nrf52840dk_nrf52840
    -- Found host-tools: zephyr 0.14.1 (F:/Development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk)
    -- Found dtc: F:/Development/nordicsemi/toolchains/v2.1.2/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: zephyr 0.14.1 (F:/Development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk)
    -- Found BOARD.dts: F:/Development/nordicsemi/v2.1.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
    -- Found devicetree overlay: f:/Development/nordicsemi/Myapps/mqtt_publisher_test/nrf52840dk_nrf52840.overlay
    -- Generated zephyr.dts: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/dts.cmake
    Parsing F:/Development/nordicsemi/Myapps/mqtt_publisher_test/Kconfig
    Loaded configuration 'F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/.config'
    Configuration saved to 'F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/.config'
    Kconfig header saved to 'F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/include/generated/autoconf.h'
    -- Configuring done
    -- Generating done
    -- Build files have been written to: F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build
    [1/330] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
    [2/330] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
    [3/330] Generating include/generated/offsets.h
    [4/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
    [5/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj
    [6/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
    [7/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj
    [8/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
    [9/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
    [10/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
    [11/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
    [12/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
    [13/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
    [14/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
    [15/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
    [16/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
    [17/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
    [18/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
    [19/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
    [20/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
    [21/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
    [22/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
    [23/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
    [24/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/ring_buffer.c.obj
    [25/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
    [26/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
    [27/330] Building ASM object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_nrf_common.S.obj
    [28/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
    [29/330] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
    [30/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
    [31/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
    [32/330] Building C object zephyr/CMakeFiles/zephyr.dir/lib/util/fnmatch/fnmatch.c.obj
    [33/330] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj
    [34/330] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
    [35/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/debug/thread_info.c.obj
    [36/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_backend_rtt.c.obj
    [37/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_mgmt.c.obj
    [38/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_msg.c.obj
    [39/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_cmds.c.obj
    [40/330] Building C object CMakeFiles/app.dir/src/main.c.obj
    FAILED: CMakeFiles/app.dir/src/main.c.obj 
    F:\Development\nordicsemi\toolchains\v2.1.2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\"config-tls-generic.h\" -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -IF:/Development/nordicsemi/v2.1.2/zephyr/include/zephyr -IF:/Development/nordicsemi/v2.1.2/zephyr/include -Izephyr/include/generated -IF:/Development/nordicsemi/v2.1.2/zephyr/soc/arm/nordic_nrf/nrf52 -IF:/Development/nordicsemi/v2.1.2/zephyr/lib/util/fnmatch/. -IF:/Development/nordicsemi/v2.1.2/zephyr/soc/arm/nordic_nrf/common/. -IF:/Development/nordicsemi/v2.1.2/zephyr/subsys/net/lib/sockets/. -IF:/Development/nordicsemi/v2.1.2/nrf/include -IF:/Development/nordicsemi/v2.1.2/modules/hal/cmsis/CMSIS/Core/Include -IF:/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx -IF:/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/drivers/include -IF:/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/mdk -IF:/Development/nordicsemi/v2.1.2/zephyr/modules/hal_nordic/nrfx/. -IF:/Development/nordicsemi/v2.1.2/modules/debug/segger/SEGGER -IF:/Development/nordicsemi/v2.1.2/modules/debug/segger/Config -IF:/Development/nordicsemi/v2.1.2/zephyr/modules/segger/. -IF:/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/include -IF:/Development/nordicsemi/v2.1.2/zephyr/modules/mbedtls/configs -isystem F:/Development/nordicsemi/v2.1.2/zephyr/lib/libc/minimal/include -isystem f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -isystem F:/Development/nordicsemi/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/include -Og -imacros F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=F:/Development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros F:/Development/nordicsemi/v2.1.2/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=F:/Development/nordicsemi/Myapps/mqtt_publisher_test=CMAKE_SOURCE_DIR -fmacro-prefix-map=F:/Development/nordicsemi/v2.1.2/zephyr=ZEPHYR_BASE -fmacro-prefix-map=F:/Development/nordicsemi/v2.1.2=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c ../src/main.c
    In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                     from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
    ../src/main.c: In function 'main':
    f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:669:17: error: 'CONFIG_MODEM_GSM_APN' undeclared (first use in this function)
      669 |   CONFIG_BOARD, CONFIG_MODEM_GSM_APN,
          |                 ^~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:167:11: note: in definition of macro 'Z_LOG_TO_PRINTK'
      167 |         ##__VA_ARGS__); \
          |           ^~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro 'Z_LOG2'
      252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
          |  ^~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro 'Z_LOG'
       61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
          |                        ^~~~~
    f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:2: note: in expansion of macro 'LOG_INF'
      668 |  LOG_INF("Board '%s' APN '%s' UART '%s' device %p (%s)",
          |  ^~~~~~~
    f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:669:17: note: each undeclared identifier is reported only once for each function it appears in
      669 |   CONFIG_BOARD, CONFIG_MODEM_GSM_APN,
          |                 ^~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:167:11: note: in definition of macro 'Z_LOG_TO_PRINTK'
      167 |         ##__VA_ARGS__); \
          |           ^~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro 'Z_LOG2'
      252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
          |  ^~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro 'Z_LOG'
       61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
          |                        ^~~~~
    f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:2: note: in expansion of macro 'LOG_INF'
      668 |  LOG_INF("Board '%s' APN '%s' UART '%s' device %p (%s)",
          |  ^~~~~~~
    In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:34,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util.h:17,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:15,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:100,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:11,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:9,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                     from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:430:65: error: '_v2' undeclared (first use in this function); did you mean '_v5'?
      430 | #define Z_LOG_LOCAL_ARG_NAME(idx, arg) COND_CODE_0(idx, (arg), (_v##idx))
          |                                                                 ^~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:67:26: note: in definition of macro '__DEBRACKET'
       67 | #define __DEBRACKET(...) __VA_ARGS__
          |                          ^~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:59:2: note: in expansion of macro '__GET_ARG2_DEBRACKET'
       59 |  __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
          |  ^~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:56:2: note: in expansion of macro '__COND_CODE'
       56 |  __COND_CODE(_ZZZZ##_flag, _if_0_code, _else_code)
          |  ^~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:173:2: note: in expansion of macro 'Z_COND_CODE_0'
      173 |  Z_COND_CODE_0(_flag, _if_0_code, _else_code)
          |  ^~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:132:2: note: in expansion of macro 'COND_CODE_0'
      132 |  COND_CODE_0(NUM_VA_ARGS_LESS_1(__VA_ARGS__), \
          |  ^~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:118:7: note: in expansion of macro 'Z_CBPRINTF_IS_PCHAR'
      118 |   0 : Z_CBPRINTF_IS_PCHAR(x, flags))
          |       ^~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1055:2: note: in expansion of macro 'Z_CBPRINTF_IS_X_PCHAR'
     1055 |  fixed_arg0(idx, x, fixed_arg1)
          |  ^~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:33:2: note: in expansion of macro 'Z_FOR_EACH_IDX_FIXED_ARG_EXEC'
       33 |  z_call(1, x, fixed_arg0, fixed_arg1)
          |  ^~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:36:2: note: in expansion of macro 'Z_FOR_LOOP_2'
       36 |  Z_FOR_LOOP_2(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro 'Z_FOR_LOOP_3'
       41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro 'Z_FOR_LOOP_4'
       46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro 'Z_FOR_LOOP_5'
       23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
          |                                                     ^
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1058:2: note: in expansion of macro 'Z_FOR_EACH_ENGINE'
     1058 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_FIXED_ARG_EXEC, sep, \
          |  ^~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:562:2: note: in expansion of macro 'Z_FOR_EACH_IDX_FIXED_ARG'
      562 |  Z_FOR_EACH_IDX_FIXED_ARG(F, sep, fixed_arg, REVERSE_ARGS(__VA_ARGS__))
          |  ^~~~~~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1075:2: note: in expansion of macro 'Z_BYPASS'
     1075 |  fixed_arg0(x)
          |  ^~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:43:2: note: in expansion of macro 'Z_FOR_EACH_EXEC'
       43 |  z_call(3, x, fixed_arg0, fixed_arg1)
          |  ^~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro 'Z_FOR_LOOP_4'
       46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro 'Z_FOR_LOOP_5'
       23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
          |                                                     ^
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:569:2: note: in expansion of macro 'Z_FOR_EACH_ENGINE'
      569 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_EXEC, (,), Z_BYPASS, _, __VA_ARGS__)
          |  ^~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:562:46: note: in expansion of macro 'REVERSE_ARGS'
      562 |  Z_FOR_EACH_IDX_FIXED_ARG(F, sep, fixed_arg, REVERSE_ARGS(__VA_ARGS__))
          |                                              ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:129:3: note: in expansion of macro 'FOR_EACH_IDX_FIXED_ARG'
      129 |  (FOR_EACH_IDX_FIXED_ARG(Z_CBPRINTF_IS_X_PCHAR, (+), flags, __VA_ARGS__))
          |   ^~~~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:134:8: note: in expansion of macro 'Z_CBPRINTF_HAS_PCHAR_ARGS'
      134 |       (Z_CBPRINTF_HAS_PCHAR_ARGS(flags, __VA_ARGS__)))
          |        ^~~~~~~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:152:9: note: in expansion of macro 'Z_CBPRINTF_PCHAR_COUNT'
      152 |   _rv = Z_CBPRINTF_PCHAR_COUNT(flags, __VA_ARGS__) > 0 ? 1 : 0; \
          |         ^~~~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:302:2: note: in expansion of macro 'Z_CBPRINTF_MUST_RUNTIME_PACKAGE'
      302 |  Z_CBPRINTF_MUST_RUNTIME_PACKAGE(flags, __VA_ARGS__)
          |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:404:20: note: in expansion of macro 'CBPRINTF_MUST_RUNTIME_PACKAGE'
      404 |  bool has_rw_str = CBPRINTF_MUST_RUNTIME_PACKAGE( \
          |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:447:2: note: in expansion of macro 'Z_LOG_MSG2_CREATE3'
      447 |  Z_LOG_MSG2_CREATE3(_try_0cpy, _mode,  _cstr_cnt, _domain_id, _source,\
          |  ^~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:64:53: note: in expansion of macro '__DEBRACKET'
       64 | #define __GET_ARG2_DEBRACKET(ignore_this, val, ...) __DEBRACKET val
          |                                                     ^~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:59:2: note: in expansion of macro '__GET_ARG2_DEBRACKET'
       59 |  __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
          |  ^~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_internal.h:56:2: note: in expansion of macro '__COND_CODE'
       56 |  __COND_CODE(_ZZZZ##_flag, _if_0_code, _else_code)
          |  ^~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:173:2: note: in expansion of macro 'Z_COND_CODE_0'
      173 |  Z_COND_CODE_0(_flag, _if_0_code, _else_code)
          |  ^~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:430:40: note: in expansion of macro 'COND_CODE_0'
      430 | #define Z_LOG_LOCAL_ARG_NAME(idx, arg) COND_CODE_0(idx, (arg), (_v##idx))
          |                                        ^~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1069:2: note: in expansion of macro 'Z_LOG_LOCAL_ARG_NAME'
     1069 |  fixed_arg0(idx, x)
          |  ^~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:38:2: note: in expansion of macro 'Z_FOR_EACH_IDX_EXEC'
       38 |  z_call(2, x, fixed_arg0, fixed_arg1)
          |  ^~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro 'Z_FOR_LOOP_3'
       41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro 'Z_FOR_LOOP_4'
       46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:51:2: note: in expansion of macro 'Z_FOR_LOOP_5'
       51 |  Z_FOR_LOOP_5(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro 'Z_FOR_LOOP_6'
       23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
          |                                                     ^
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1072:2: note: in expansion of macro 'Z_FOR_EACH_ENGINE'
     1072 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_EXEC, sep, F, _, __VA_ARGS__)
          |  ^~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:506:2: note: in expansion of macro 'Z_FOR_EACH_IDX'
      506 |  Z_FOR_EACH_IDX(F, sep, REVERSE_ARGS(__VA_ARGS__))
          |  ^~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:449:7: note: in expansion of macro 'FOR_EACH_IDX'
      449 |       FOR_EACH_IDX(Z_LOG_LOCAL_ARG_NAME, (,), __VA_ARGS__)); \
          |       ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:458:2: note: in expansion of macro 'Z_LOG_MSG2_CREATE2'
      458 |  Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
          |  ^~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:240:2: note: in expansion of macro 'Z_LOG_MSG2_CREATE'
      240 |  Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
          |  ^~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro 'Z_LOG2'
      252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
          |  ^~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro 'Z_LOG'
       61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
          |                        ^~~~~
    f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:2: note: in expansion of macro 'LOG_INF'
      668 |  LOG_INF("Board '%s' APN '%s' UART '%s' device %p (%s)",
          |  ^~~~~~~
    In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\toolchain.h:50,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\lib\libc\minimal\include\string.h:13,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\mpsc_packet.h:9,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:10,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:9,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                     from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:290:15: error: expression in static assertion is not an integer
      290 |  BUILD_ASSERT(!((sizeof(double) < VA_STACK_ALIGN(long double)) && \
          |               ^
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:333:2: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG2'
      333 |  Z_CBPRINTF_PACK_ARG2(arg_idx, _pbuf, _pkg_len, _pkg_offset, _pmax, arg)
          |  ^~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1069:2: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG'
     1069 |  fixed_arg0(idx, x)
          |  ^~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:38:2: note: in expansion of macro 'Z_FOR_EACH_IDX_EXEC'
       38 |  z_call(2, x, fixed_arg0, fixed_arg1)
          |  ^~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro 'Z_FOR_LOOP_3'
       41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro 'Z_FOR_LOOP_4'
       46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:51:2: note: in expansion of macro 'Z_FOR_LOOP_5'
       51 |  Z_FOR_LOOP_5(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro 'Z_FOR_LOOP_6'
       23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
          |                                                     ^
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1072:2: note: in expansion of macro 'Z_FOR_EACH_ENGINE'
     1072 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_EXEC, sep, F, _, __VA_ARGS__)
          |  ^~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:506:2: note: in expansion of macro 'Z_FOR_EACH_IDX'
      506 |  Z_FOR_EACH_IDX(F, sep, REVERSE_ARGS(__VA_ARGS__))
          |  ^~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:440:2: note: in expansion of macro 'FOR_EACH_IDX'
      440 |  FOR_EACH_IDX(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:477:2: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE_GENERIC'
      477 |  Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
          |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:335:2: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE'
      335 |  Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
          |  ^~~~~~~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:220:3: note: in expansion of macro 'CBPRINTF_STATIC_PACKAGE'
      220 |   CBPRINTF_STATIC_PACKAGE(NULL, 0, _plen, Z_LOG_MSG2_ALIGN_OFFSET, flags, \
          |   ^~~~~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:414:3: note: in expansion of macro 'Z_LOG_MSG2_STACK_CREATE'
      414 |   Z_LOG_MSG2_STACK_CREATE(_cstr_cnt, _domain_id, _source, _level, _data, \
          |   ^~~~~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:447:2: note: in expansion of macro 'Z_LOG_MSG2_CREATE3'
      447 |  Z_LOG_MSG2_CREATE3(_try_0cpy, _mode,  _cstr_cnt, _domain_id, _source,\
          |  ^~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:458:2: note: in expansion of macro 'Z_LOG_MSG2_CREATE2'
      458 |  Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
          |  ^~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:240:2: note: in expansion of macro 'Z_LOG_MSG2_CREATE'
      240 |  Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
          |  ^~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro 'Z_LOG2'
      252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
          |  ^~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro 'Z_LOG'
       61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
          |                        ^~~~~
    f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:2: note: in expansion of macro 'LOG_INF'
      668 |  LOG_INF("Board '%s' APN '%s' UART '%s' device %p (%s)",
          |  ^~~~~~~
    In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:100,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:11,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:9,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                     from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:176:8: error: '_v' undeclared (first use in this function); did you mean '_v5'?
      176 |  (void)_v; \
          |        ^~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:298:23: note: in expansion of macro 'Z_CBPRINTF_ARG_SIZE'
      298 |  uint32_t _arg_size = Z_CBPRINTF_ARG_SIZE(_arg); \
          |                       ^~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:333:2: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG2'
      333 |  Z_CBPRINTF_PACK_ARG2(arg_idx, _pbuf, _pkg_len, _pkg_offset, _pmax, arg)
          |  ^~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1069:2: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG'
     1069 |  fixed_arg0(idx, x)
          |  ^~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:38:2: note: in expansion of macro 'Z_FOR_EACH_IDX_EXEC'
       38 |  z_call(2, x, fixed_arg0, fixed_arg1)
          |  ^~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro 'Z_FOR_LOOP_3'
       41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro 'Z_FOR_LOOP_4'
       46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:51:2: note: in expansion of macro 'Z_FOR_LOOP_5'
       51 |  Z_FOR_LOOP_5(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro 'Z_FOR_LOOP_6'
       23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
          |                                                     ^
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1072:2: note: in expansion of macro 'Z_FOR_EACH_ENGINE'
     1072 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_EXEC, sep, F, _, __VA_ARGS__)
          |  ^~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:506:2: note: in expansion of macro 'Z_FOR_EACH_IDX'
      506 |  Z_FOR_EACH_IDX(F, sep, REVERSE_ARGS(__VA_ARGS__))
          |  ^~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:440:2: note: in expansion of macro 'FOR_EACH_IDX'
      440 |  FOR_EACH_IDX(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:477:2: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE_GENERIC'
      477 |  Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
          |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:335:2: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE'
      335 |  Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
          |  ^~~~~~~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:220:3: note: in expansion of macro 'CBPRINTF_STATIC_PACKAGE'
      220 |   CBPRINTF_STATIC_PACKAGE(NULL, 0, _plen, Z_LOG_MSG2_ALIGN_OFFSET, flags, \
          |   ^~~~~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:414:3: note: in expansion of macro 'Z_LOG_MSG2_STACK_CREATE'
      414 |   Z_LOG_MSG2_STACK_CREATE(_cstr_cnt, _domain_id, _source, _level, _data, \
          |   ^~~~~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:447:2: note: in expansion of macro 'Z_LOG_MSG2_CREATE3'
      447 |  Z_LOG_MSG2_CREATE3(_try_0cpy, _mode,  _cstr_cnt, _domain_id, _source,\
          |  ^~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:458:2: note: in expansion of macro 'Z_LOG_MSG2_CREATE2'
      458 |  Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
          |  ^~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:240:2: note: in expansion of macro 'Z_LOG_MSG2_CREATE'
      240 |  Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
          |  ^~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro 'Z_LOG2'
      252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
          |  ^~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro 'Z_LOG'
       61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
          |                        ^~~~~
    f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:2: note: in expansion of macro 'LOG_INF'
      668 |  LOG_INF("Board '%s' APN '%s' UART '%s' device %p (%s)",
          |  ^~~~~~~
    In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\toolchain.h:50,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\lib\libc\minimal\include\string.h:13,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\mpsc_packet.h:9,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:10,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:9,
                     from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                     from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:290:15: error: expression in static assertion is not an integer
      290 |  BUILD_ASSERT(!((sizeof(double) < VA_STACK_ALIGN(long double)) && \
          |               ^
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:333:2: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG2'
      333 |  Z_CBPRINTF_PACK_ARG2(arg_idx, _pbuf, _pkg_len, _pkg_offset, _pmax, arg)
          |  ^~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1069:2: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG'
     1069 |  fixed_arg0(idx, x)
          |  ^~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:38:2: note: in expansion of macro 'Z_FOR_EACH_IDX_EXEC'
       38 |  z_call(2, x, fixed_arg0, fixed_arg1)
          |  ^~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:41:2: note: in expansion of macro 'Z_FOR_LOOP_3'
       41 |  Z_FOR_LOOP_3(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:46:2: note: in expansion of macro 'Z_FOR_LOOP_4'
       46 |  Z_FOR_LOOP_4(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:51:2: note: in expansion of macro 'Z_FOR_LOOP_5'
       51 |  Z_FOR_LOOP_5(z_call, sep, fixed_arg0, fixed_arg1, ##__VA_ARGS__) \
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:23:53: note: in expansion of macro 'Z_FOR_LOOP_6'
       23 |     _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
          |                                                     ^
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_loops.h:1072:2: note: in expansion of macro 'Z_FOR_EACH_ENGINE'
     1072 |  Z_FOR_EACH_ENGINE(Z_FOR_EACH_IDX_EXEC, sep, F, _, __VA_ARGS__)
          |  ^~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\util_macro.h:506:2: note: in expansion of macro 'Z_FOR_EACH_IDX'
      506 |  Z_FOR_EACH_IDX(F, sep, REVERSE_ARGS(__VA_ARGS__))
          |  ^~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:440:2: note: in expansion of macro 'FOR_EACH_IDX'
      440 |  FOR_EACH_IDX(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
          |  ^~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf_internal.h:477:2: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE_GENERIC'
      477 |  Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
          |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\sys\cbprintf.h:335:2: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE'
      335 |  Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
          |  ^~~~~~~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:227:3: note: in expansion of macro 'CBPRINTF_STATIC_PACKAGE'
      227 |   CBPRINTF_STATIC_PACKAGE(_msg->data, _plen, \
          |   ^~~~~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:414:3: note: in expansion of macro 'Z_LOG_MSG2_STACK_CREATE'
      414 |   Z_LOG_MSG2_STACK_CREATE(_cstr_cnt, _domain_id, _source, _level, _data, \
          |   ^~~~~~~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:447:2: note: in expansion of macro 'Z_LOG_MSG2_CREATE3'
      447 |  Z_LOG_MSG2_CREATE3(_try_0cpy, _mode,  _cstr_cnt, _domain_id, _source,\
          |  ^~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_msg.h:458:2: note: in expansion of macro 'Z_LOG_MSG2_CREATE2'
      458 |  Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
          |  ^~~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:240:2: note: in expansion of macro 'Z_LOG_MSG2_CREATE'
      240 |  Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
          |  ^~~~~~~~~~~~~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log_core.h:252:2: note: in expansion of macro 'Z_LOG2'
      252 |  Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
          |  ^~~~~~
    F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:61:24: note: in expansion of macro 'Z_LOG'
       61 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
          |                        ^~~~~
    f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:668:2: note: in expansion of macro 'LOG_INF'
      668 |  LOG_INF("Board '%s' APN '%s' UART '%s' device %p (%s)",
          |  ^~~~~~~
    [41/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_core.c.obj
    [42/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_output.c.obj
    [43/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/kernel_service.c.obj
    [44/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_fprintf.c.obj
    [45/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/device_service.c.obj
    [46/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/devmem_service.c.obj
    [47/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/backends/shell_uart.c.obj
    [48/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_utils.c.obj
    [49/330] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell.c.obj
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'f:\Development\nordicsemi\toolchains\v2.1.2\opt\bin\cmake.EXE' --build 'f:\Development\nordicsemi\Myapps\mqtt_publisher_test\build'
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 
    

  • You need to look at your first error message, which is this line:

    F:\Development\nordicsemi\toolchains\v2.1.2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\"config-tls-generic.h\" -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -IF:/Development/nordicsemi/v2.1.2/zephyr/include/zephyr -IF:/Development/nordicsemi/v2.1.2/zephyr/include -Izephyr/include/generated -IF:/Development/nordicsemi/v2.1.2/zephyr/soc/arm/nordic_nrf/nrf52 -IF:/Development/nordicsemi/v2.1.2/zephyr/lib/util/fnmatch/. -IF:/Development/nordicsemi/v2.1.2/zephyr/soc/arm/nordic_nrf/common/. -IF:/Development/nordicsemi/v2.1.2/zephyr/subsys/net/lib/sockets/. -IF:/Development/nordicsemi/v2.1.2/nrf/include -IF:/Development/nordicsemi/v2.1.2/modules/hal/cmsis/CMSIS/Core/Include -IF:/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx -IF:/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/drivers/include -IF:/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/mdk -IF:/Development/nordicsemi/v2.1.2/zephyr/modules/hal_nordic/nrfx/. -IF:/Development/nordicsemi/v2.1.2/modules/debug/segger/SEGGER -IF:/Development/nordicsemi/v2.1.2/modules/debug/segger/Config -IF:/Development/nordicsemi/v2.1.2/zephyr/modules/segger/. -IF:/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/include -IF:/Development/nordicsemi/v2.1.2/zephyr/modules/mbedtls/configs -isystem F:/Development/nordicsemi/v2.1.2/zephyr/lib/libc/minimal/include -isystem f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -isystem F:/Development/nordicsemi/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/include -Og -imacros F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=F:/Development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros F:/Development/nordicsemi/v2.1.2/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=F:/Development/nordicsemi/Myapps/mqtt_publisher_test=CMAKE_SOURCE_DIR -fmacro-prefix-map=F:/Development/nordicsemi/v2.1.2/zephyr=ZEPHYR_BASE -fmacro-prefix-map=F:/Development/nordicsemi/v2.1.2=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c ../src/main.c
    In file included from F:\Development\nordicsemi\v2.1.2\zephyr\include\zephyr\logging\log.h:11,
                     from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:7:
    ../src/main.c: In function 'main':
    f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:669:17: error: 'CONFIG_MODEM_GSM_APN' undeclared (first use in this function)
      669 |   CONFIG_BOARD, CONFIG_MODEM_GSM_APN,
          |                 ^~~~~~~~~~~~~~~~~~~~

    This indicates that CONFIG_MODEM_GSM_APN is not set on your end.

     

    Kind regards,

    Håkon

  • Hi  

    That is defined in autoconf.h if I add this file I am getting following errors.

    * Executing task: nRF Connect: Build: mqtt_publisher_test/build (active)

    Building mqtt_publisher_test
    west build --build-dir f:\Development\nordicsemi\Myapps\mqtt_publisher_test\build f:\Development\nordicsemi\Myapps\mqtt_publisher_test

    [1/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_help.c.obj
    [2/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
    [3/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets_misc.c.obj
    [4/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_log_backend.c.obj
    [5/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/getnameinfo.c.obj
    [6/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_history.c.obj
    [7/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/pm.c.obj
    [8/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/policy.c.obj
    [9/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_cmds.c.obj
    [10/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_wildcard.c.obj
    [11/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/state.c.obj
    [12/282] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
    [13/282] Building C object zephyr/CMakeFiles/zephyr.dir/F_/Development/nordicsemi/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_abort_zephyr.c.obj
    [14/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
    [15/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/getaddrinfo.c.obj
    [16/282] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
    [17/282] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
    [18/282] Building C object zephyr/CMakeFiles/zephyr.dir/F_/Development/nordicsemi/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c.obj
    [19/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets_select.c.obj
    [20/282] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj
    [21/282] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj
    [22/282] Generating linker_zephyr_pre1.cmd
    [23/282] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj
    [24/282] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj
    [25/282] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
    [26/282] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
    [27/282] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj
    [28/282] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
    [29/282] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/mdk/system_nrf52840.c.obj
    [30/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_ops.c.obj
    [31/282] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
    [32/282] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets.c.obj
    [33/282] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj
    [34/282] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\libarch__arm__core__aarch32__cortex_m.a
    [35/282] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj
    [36/282] Building C object modules/segger/CMakeFiles/modules__segger.dir/F_/Development/nordicsemi/v2.1.2/modules/debug/segger/SEGGER/SEGGER_RTT.c.obj
    [37/282] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
    [38/282] Building C object modules/segger/CMakeFiles/modules__segger.dir/SEGGER_RTT_zephyr.c.obj
    [39/282] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/drivers/src/nrfx_ppi.c.obj
    [40/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
    [41/282] Linking C static library modules\segger\libmodules__segger.a
    [42/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
    [43/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
    [44/282] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/F_/Development/nordicsemi/v2.1.2/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
    [45/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
    [46/282] Linking C static library modules\hal_nordic\nrfx\libmodules__hal_nordic__nrfx.a
    [47/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
    [48/282] Building C object CMakeFiles/app.dir/src/main.c.obj
    In file included from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:23:
    F:\Development\nordicsemi\Myapps\gsm_modem_test\build\zephyr\include\generated\autoconf.h:7: warning: "CONFIG_BOARD" redefined
    7 | #define CONFIG_BOARD "nrf21540dk_nrf52840"
    |
    In file included from <command-line>:
    F:\Development\nordicsemi\Myapps\mqtt_publisher_test\build\zephyr\include\generated\autoconf.h:8: note: this is the location of the previous definition
    8 | #define CONFIG_BOARD "nrf52840dk_nrf52840"
    |
    In file included from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:23:
    F:\Development\nordicsemi\Myapps\gsm_modem_test\build\zephyr\include\generated\autoconf.h:554: warning: "CONFIG_NET_MAX_ROUTERS" redefined
    554 | #define CONFIG_NET_MAX_ROUTERS 1
    |
    In file included from <command-line>:
    F:\Development\nordicsemi\Myapps\mqtt_publisher_test\build\zephyr\include\generated\autoconf.h:593: note: this is the location of the previous definition
    593 | #define CONFIG_NET_MAX_ROUTERS 2
    |
    In file included from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:23:
    F:\Development\nordicsemi\Myapps\gsm_modem_test\build\zephyr\include\generated\autoconf.h:559: warning: "CONFIG_NET_MAX_CONN" redefined
    559 | #define CONFIG_NET_MAX_CONN 4
    |
    In file included from <command-line>:
    F:\Development\nordicsemi\Myapps\mqtt_publisher_test\build\zephyr\include\generated\autoconf.h:615: note: this is the location of the previous definition
    615 | #define CONFIG_NET_MAX_CONN 8
    |
    In file included from f:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:23:
    F:\Development\nordicsemi\Myapps\gsm_modem_test\build\zephyr\include\generated\autoconf.h:566: warning: "CONFIG_NET_BUF_DATA_SIZE" redefined
    566 | #define CONFIG_NET_BUF_DATA_SIZE 128
    |
    In file included from <command-line>:
    F:\Development\nordicsemi\Myapps\mqtt_publisher_test\build\zephyr\include\generated\autoconf.h:622: note: this is the location of the previous definition
    622 | #define CONFIG_NET_BUF_DATA_SIZE 256
    |
    [49/282] Linking C static library app\libapp.a
    [50/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
    [51/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
    [52/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
    [53/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mailbox.c.obj
    [54/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
    [55/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
    [56/282] Linking C static library zephyr\libzephyr.a
    [57/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mutex.c.obj
    [58/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/msg_q.c.obj
    [59/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/pipes.c.obj
    [60/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/idle.c.obj
    [61/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/queue.c.obj
    [62/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/condvar.c.obj
    [63/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/stack.c.obj
    [64/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sem.c.obj
    [65/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/work.c.obj
    [66/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mempool.c.obj
    [67/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/system_work_q.c.obj
    [68/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/xip.c.obj
    [69/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/poll.c.obj
    [70/282] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
    [71/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sched.c.obj
    [72/282] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
    [73/282] Generating linker_zephyr_pre0.cmd
    [74/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timer.c.obj
    [75/282] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
    [76/282] Building C object zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj
    [77/282] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
    [78/282] Linking C static library zephyr\arch\common\libisr_tables.a
    [79/282] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
    [80/282] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj
    [81/282] Linking C static library zephyr\arch\common\libarch__common.a
    [82/282] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
    [83/282] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
    [84/282] Linking C static library zephyr\kernel\libkernel.a
    [85/282] Linking C static library zephyr\arch\arch\arm\core\aarch32\mpu\libarch__arm__core__aarch32__mpu.a
    [86/282] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
    [87/282] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
    [88/282] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
    [89/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtol.c.obj
    [90/282] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
    [91/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoul.c.obj
    [92/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/bsearch.c.obj
    [93/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoll.c.obj
    [94/282] Linking C static library zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a
    [95/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/atoi.c.obj
    [96/282] Building C object zephyr/soc/arm/nordic_nrf/nrf52/CMakeFiles/soc__arm__nordic_nrf__nrf52.dir/power.c.obj
    [97/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoull.c.obj
    [98/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strspn.c.obj
    [99/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/qsort.c.obj
    [100/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strncasecmp.c.obj
    [101/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strstr.c.obj
    [102/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strerror.c.obj
    [103/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/string.c.obj
    [104/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/abort.c.obj
    [105/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/math/sqrt.c.obj
    [106/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/math/sqrtf.c.obj
    [107/282] Building C object zephyr/soc/arm/nordic_nrf/nrf52/CMakeFiles/soc__arm__nordic_nrf__nrf52.dir/soc.c.obj
    [108/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/malloc.c.obj
    [109/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/fprintf.c.obj
    [110/282] Linking C static library zephyr\soc\arm\nordic_nrf\nrf52\libsoc__arm__nordic_nrf__nrf52.a
    [111/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/exit.c.obj
    [112/282] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/perror.c.obj
    [113/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/sprintf.c.obj
    [114/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
    [115/282] Building C object zephyr/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj
    [116/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/stdout_console.c.obj
    [117/282] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/time/gmtime.c.obj
    [118/282] Linking C static library zephyr\soc\arm\common\cortex_m\libsoc__arm__common__cortex_m.a
    [119/282] Linking C static library zephyr\lib\libc\minimal\liblib__libc__minimal.a
    [120/282] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/pthread_common.c.obj
    [121/282] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/nanosleep.c.obj
    [122/282] Linking C static library zephyr\lib\posix\liblib__posix.a
    [123/282] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
    [124/282] Linking C static library zephyr\subsys\net\libsubsys__net.a
    [125/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
    [126/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
    [127/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_mgmt.c.obj
    [128/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
    [129/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
    [130/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
    [131/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
    [132/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
    [133/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/nbr.c.obj
    [134/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_mld.c.obj
    [135/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv6.c.obj
    [136/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
    [137/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
    [138/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/route.c.obj
    [139/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6.c.obj
    [140/282] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_decoder.c.obj
    [141/282] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_rx.c.obj
    [142/282] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_encoder.c.obj
    [143/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
    [144/282] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_transport_socket_tcp.c.obj
    [145/282] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_transport_socket_tls.c.obj
    [146/282] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_transport.c.obj
    [147/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_nbr.c.obj
    [148/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_shell.c.obj
    [149/282] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
    [150/282] Linking C static library zephyr\subsys\random\libsubsys__random.a
    [151/282] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/uart_console.c.obj
    [152/282] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt.c.obj
    [153/282] Building C object zephyr/subsys/net/lib/config/CMakeFiles/subsys__net__lib__config.dir/init.c.obj
    [154/282] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_control_nrf.c.obj
    [155/282] Linking C static library zephyr\drivers\console\libdrivers__console.a
    [156/282] Linking C static library zephyr\subsys\net\lib\config\libsubsys__net__lib__config.a
    [157/282] Linking C static library zephyr\subsys\net\lib\mqtt\libsubsys__net__lib__mqtt.a
    [158/282] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/F_/Development/nordicsemi/v2.1.2/nrf/drivers/entropy/entropy_cc3xx.c.obj
    [159/282] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/entropy_nrf5.c.obj
    [160/282] Linking C static library zephyr\drivers\clock_control\libdrivers__clock_control.a
    [161/282] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_nrfx.c.obj
    [162/282] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/tcp.c.obj
    [163/282] Linking C static library zephyr\drivers\entropy\libdrivers__entropy.a
    [164/282] Linking C static library zephyr\drivers\gpio\libdrivers__gpio.a
    [165/282] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj
    [166/282] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
    [167/282] Linking C static library zephyr\subsys\net\ip\libsubsys__net__ip.a
    [168/282] Linking C static library zephyr\drivers\serial\libdrivers__serial.a
    [169/282] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/common.c.obj
    [170/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/aria.c.obj
    [171/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/aesni.c.obj
    [172/282] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
    [173/282] Building C object modules/nrf/lib/fatal_error/CMakeFiles/..__nrf__lib__fatal_error.dir/fatal_error.c.obj
    [174/282] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/pinctrl_nrf.c.obj
    [175/282] Linking C static library zephyr\drivers\timer\libdrivers__timer.a
    [176/282] Linking C static library modules\nrf\lib\fatal_error\lib..__nrf__lib__fatal_error.a
    [177/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/zephyr_init.c.obj
    [178/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/camellia.c.obj
    [179/282] Building C object modules/nrf/drivers/hw_cc310/CMakeFiles/..__nrf__drivers__hw_cc310.dir/hw_cc310.c.obj
    [180/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ccm.c.obj
    [181/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/chacha20.c.obj
    [182/282] Linking C static library zephyr\drivers\pinctrl\libdrivers__pinctrl.a
    [183/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/aes.c.obj
    [184/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/asn1write.c.obj
    [185/282] Linking C static library modules\nrf\drivers\hw_cc310\lib..__nrf__drivers__hw_cc310.a
    [186/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/base64.c.obj
    [187/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/chachapoly.c.obj
    [188/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/cmac.c.obj
    [189/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/debug.c.obj
    [190/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ecdsa.c.obj
    [191/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/asn1parse.c.obj
    [192/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ctr_drbg.c.obj
    [193/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/cipher_wrap.c.obj
    [194/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/constant_time.c.obj
    [195/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/cipher.c.obj
    [196/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ecp.c.obj
    [197/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ecdh.c.obj
    [198/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ecjpake.c.obj
    [199/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/dhm.c.obj
    [200/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/hkdf.c.obj
    [201/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/des.c.obj
    [202/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ecp_curves.c.obj
    [203/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/hmac_drbg.c.obj
    [204/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/entropy.c.obj
    [205/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/gcm.c.obj
    [206/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/error.c.obj
    [207/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/mps_trace.c.obj
    [208/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/entropy_poll.c.obj
    [209/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/bignum.c.obj
    [210/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/pem.c.obj
    [211/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/net_sockets.c.obj
    [212/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/mps_reader.c.obj
    [213/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/padlock.c.obj
    [214/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/memory_buffer_alloc.c.obj
    [215/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/md5.c.obj
    [216/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/nist_kw.c.obj
    [217/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/pkwrite.c.obj
    [218/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/pk.c.obj
    [219/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/pkcs12.c.obj
    [220/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/md.c.obj
    [221/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/pkcs5.c.obj
    [222/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/oid.c.obj
    [223/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/pk_wrap.c.obj
    [224/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/platform_util.c.obj
    [225/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/poly1305.c.obj
    [226/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto.c.obj
    [227/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_aead.c.obj
    [228/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/platform.c.obj
    [229/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/pkparse.c.obj
    [230/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_mac.c.obj
    [231/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_cipher.c.obj
    [232/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_se.c.obj
    [233/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_rsa.c.obj
    [234/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_ecp.c.obj
    [235/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_its_file.c.obj
    [236/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_slot_management.c.obj
    [237/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_hash.c.obj
    [238/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ripemd160.c.obj
    [239/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_storage.c.obj
    [240/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/rsa_alt_helpers.c.obj
    [241/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_client.c.obj
    [242/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_cache.c.obj
    [243/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_cookie.c.obj
    [244/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/psa_crypto_driver_wrappers.c.obj
    [245/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_debug_helpers_generated.c.obj
    [246/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/sha256.c.obj
    [247/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/sha1.c.obj
    [248/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_ticket.c.obj
    [249/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/sha512.c.obj
    [250/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls13_client.c.obj
    [251/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls13_generic.c.obj
    [252/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/version_features.c.obj
    [253/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls13_keys.c.obj
    [254/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/version.c.obj
    [255/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_cli.c.obj
    [256/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_srv.c.obj
    [257/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/threading.c.obj
    [258/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_ciphersuites.c.obj
    [259/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/rsa.c.obj
    [260/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls13_server.c.obj
    [261/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509_crl.c.obj
    [262/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/timing.c.obj
    [263/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_msg.c.obj
    [264/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509_csr.c.obj
    [265/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509write_crt.c.obj
    [266/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509_create.c.obj
    [267/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509write_csr.c.obj
    [268/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/ssl_tls.c.obj
    [269/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509.c.obj
    [270/282] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/F_/Development/nordicsemi/v2.1.2/modules/crypto/mbedtls/library/x509_crt.c.obj
    [271/282] Linking C static library modules\mbedtls\libmodules__mbedtls.a
    [272/282] Linking C executable zephyr\zephyr_pre0.elf
    FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map
    cmd.exe /C "cd . && F:\Development\nordicsemi\toolchains\v2.1.2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr\zephyr_pre0.elf -Wl,-T zephyr/linker_zephyr_pre0.cmd -Wl,-Map=F:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr/zephyr_pre0.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a zephyr/lib/libc/minimal/liblib__libc__minimal.a zephyr/lib/posix/liblib__posix.a zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a zephyr/soc/arm/nordic_nrf/nrf52/libsoc__arm__nordic_nrf__nrf52.a zephyr/subsys/net/libsubsys__net.a zephyr/subsys/net/ip/libsubsys__net__ip.a zephyr/subsys/net/lib/mqtt/libsubsys__net__lib__mqtt.a zephyr/subsys/net/lib/config/libsubsys__net__lib__config.a zephyr/subsys/random/libsubsys__random.a zephyr/drivers/clock_control/libdrivers__clock_control.a zephyr/drivers/console/libdrivers__console.a zephyr/drivers/gpio/libdrivers__gpio.a zephyr/drivers/serial/libdrivers__serial.a zephyr/drivers/entropy/libdrivers__entropy.a zephyr/drivers/timer/libdrivers__timer.a zephyr/drivers/pinctrl/libdrivers__pinctrl.a modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.a modules/mbedtls/libmodules__mbedtls.a modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a modules/segger/libmodules__segger.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -L"f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/thumb/v7e-m/nofp" -LF:/Development/nordicsemi/Myapps/mqtt_publisher_test/build/zephyr -lgcc zephyr/arch/common/libisr_tables.a -no-pie -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -Wl,-X -Wl,-N -Wl,--orphan-handling=warn F:/Development/nordicsemi/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m4/soft-float/no-interrupts/libnrf_cc310_platform_0.9.15.a && cmd.exe /C "cd /D F:\Development\nordicsemi\Myapps\mqtt_publisher_test\build\zephyr && F:\Development\nordicsemi\toolchains\v2.1.2\opt\bin\cmake.exe -E echo ""
    f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: app/libapp.a(main.c.obj): in function `cmd_sample_modem_suspend':
    F:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:154: undefined reference to `gsm_ppp_stop'
    f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: app/libapp.a(main.c.obj): in function `cmd_sample_modem_resume':
    F:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:171: undefined reference to `gsm_ppp_start'
    f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: app/libapp.a(main.c.obj): in function `tls_init':
    F:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:115: undefined reference to `tls_credential_add'
    f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: app/libapp.a(main.c.obj): in function `main':
    F:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:667: undefined reference to `gsm_ppp_register_modem_power_callback'
    f:/development/nordicsemi/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: F:\Development\nordicsemi\Myapps\mqtt_publisher_test\src\main.c:683: undefined reference to `__device_dts_ord_131'
    collect2.exe: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'f:\Development\nordicsemi\toolchains\v2.1.2\opt\bin\cmake.EXE' --build 'f:\Development\nordicsemi\Myapps\mqtt_publisher_test\build'

    * The terminal process terminated with exit code: 1.
    * Terminal will be reused by tasks, press any key to close it.




  • Muqarrab said:
    That is defined in autoconf.h if I add this file I am getting following errors.

    autoconf is automatically generated based on your local configuration, and shall newer be directly included by your source code. 

    Each time you add a configuration, this shall be done in your project configuration, ie. the my_application/prj.conf file.

     

    I would recommend that you get to know the fundamentals of NCS, by looking at our nordic academy:

    https://academy.nordicsemi.com/

     

    Kind regards,

    Håkon

  • Hi  
    The First GSM_Moodem test code was working fine but now getting error for both examples

Related