So after reading on this forum for a while, I renamed the overlay file to sparkfun_thing_plus_nrf9160ns.overlay but when I click build in vs code I get the following errors:

c:\Users\David\Desktop\LTE3\LTE7\build\zephyr\include\generated\devicetree_unfixed.h:5127:38: error: 'DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_rts_pin' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_tx_pin'?
 5127 | #define DT_N_NODELABEL_uart0         DT_N_S_soc_S_peripheral_40000000_S_uart_8000
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\David\ncs\v1.8.0\zephyr\include\devicetree.h:2641:24: note: in definition of macro 'DT_CAT'
 2641 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
c:\Users\David\Desktop\LTE3\LTE7\src\slm_at_host.c:248:6: note: in expansion of macro 'DT_PROP'
  248 |      DT_PROP(DT_NODELABEL(uart0), rts_pin),
      |      ^~~~~~~
C:\Users\David\ncs\v1.8.0\zephyr\include\devicetree.h:2641:24: note: in expansion of macro 'DT_N_NODELABEL_uart0'
 2641 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:\Users\David\ncs\v1.8.0\zephyr\include\devicetree.h:177:29: note: in expansion of macro 'DT_CAT'
  177 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
c:\Users\David\Desktop\LTE3\LTE7\src\slm_at_host.c:248:14: note: in expansion of macro 'DT_NODELABEL'
  248 |      DT_PROP(DT_NODELABEL(uart0), rts_pin),
      |              ^~~~~~~~~~~~
c:\Users\David\Desktop\LTE3\LTE7\build\zephyr\include\generated\devicetree_unfixed.h:5127:38: note: each undeclared identifier is reported only once for each function it appears in
 5127 | #define DT_N_NODELABEL_uart0         DT_N_S_soc_S_peripheral_40000000_S_uart_8000
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\David\ncs\v1.8.0\zephyr\include\devicetree.h:2641:24: note: in definition of macro 'DT_CAT'
 2641 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
c:\Users\David\Desktop\LTE3\LTE7\src\slm_at_host.c:248:6: note: in expansion of macro 'DT_PROP'
  248 |      DT_PROP(DT_NODELABEL(uart0), rts_pin),
      |      ^~~~~~~
C:\Users\David\ncs\v1.8.0\zephyr\include\devicetree.h:2641:24: note: in expansion of macro 'DT_N_NODELABEL_uart0'
 2641 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:\Users\David\ncs\v1.8.0\zephyr\include\devicetree.h:177:29: note: in expansion of macro 'DT_CAT'
  177 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
c:\Users\David\Desktop\LTE3\LTE7\src\slm_at_host.c:248:14: note: in expansion of macro 'DT_NODELABEL'
  248 |      DT_PROP(DT_NODELABEL(uart0), rts_pin),
      |              ^~~~~~~~~~~~
c:\Users\David\Desktop\LTE3\LTE7\build\zephyr\include\generated\devicetree_unfixed.h:5127:38: error: 'DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_cts_pin' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_tx_pin'?
 5127 | #define DT_N_NODELABEL_uart0         DT_N_S_soc_S_peripheral_40000000_S_uart_8000
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\David\ncs\v1.8.0\zephyr\include\devicetree.h:2641:24: note: in definition of macro 'DT_CAT'
 2641 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
c:\Users\David\Desktop\LTE3\LTE7\src\slm_at_host.c:249:6: note: in expansion of macro 'DT_PROP'
  249 |      DT_PROP(DT_NODELABEL(uart0), cts_pin));
      |      ^~~~~~~
C:\Users\David\ncs\v1.8.0\zephyr\include\devicetree.h:2641:24: note: in expansion of macro 'DT_N_NODELABEL_uart0'
 2641 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:\Users\David\ncs\v1.8.0\zephyr\include\devicetree.h:177:29: note: in expansion of macro 'DT_CAT'
  177 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
c:\Users\David\Desktop\LTE3\LTE7\src\slm_at_host.c:249:14: note: in expansion of macro 'DT_NODELABEL'
  249 |      DT_PROP(DT_NODELABEL(uart0), cts_pin));
      |              ^~~~~~~~~~~~
[117/313] Building C object CMakeFiles/app.dir/src/slm_at_socket.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\Users\David\ncs\v1.8.0\toolchain\opt\bin\cmake.EXE' --build 'c:\Users\David\Desktop\LTE3\LTE7\build'
The terminal process terminated with exit code: 1.

What am I missing here?
Sincerely,
DC

    DCInnovation you’ll likely have to provide more information. Looks like you’re modifying an overlay? Beyond NCS 1.7.x boards with the ns suffix have a underscore:

    circuitdojo_feather_nrf9160_ns
    sparkfun_thing_plus_nrf9160_ns

    6 days later

    I had been using the 1.8.0 version of the SDK, after rolling back to 1.7.1 it compiled and uploaded correctly.

    I then ran into an issue where the at commands reference for 1.7.1 didn’t list all the arguments needed for publishing to mqtt topics (the data type argument isn’t mentioned). I finally found the data type argument in the documentation for version 1.6.1 and that worked well. I now am able to publish and subscribe to mqtt topics! It’s nice to be up and running.

      Terms and Conditions | Privacy Policy