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? 

  • Try moving the callback functions outside of this if preprocessor check.

    Yes, I have removed it as shown in the above reply but still getting above issues

  • Hi  
    I have made changes but getting the above issues now. Can you please check?

  • Can you please post the updated compile log?

     

    Kind regards,

    Håkon

  • 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

Related