Hi,
I've created a project combining gps, nvs, and mqtt based off the nrf and zephyr project samples. I've been able to go into the sample projects and add .overlay files to the project and spm sample to output to another UART, but in my combined project it will only output through the Jlink on the LTE Link Monitor and not to the UART I defined. The project loads and builds without error. I have tried with a fresh install of nRF Connect SDK and all dependencies and am on v1.0.0.
CMakeLists
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cmake_minimum_required(VERSION 3.8.2)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
project(new_sample)
# NORDIC SDK APP START
target_sources(app PRIVATE src/main.c)
# new stuff
target_include_directories(app PRIVATE $ENV{ZEPHYR_BASE}/subsys/fs/nvs C:/Users/user/Desktop/includes)
target_sources(app PRIVATE C:/Users/user/Desktop/includes/button.c)
target_sources(app PRIVATE C:/Users/user/Desktop/includes/gps_.c)
target_sources(app PRIVATE C:/Users/user/Desktop/includes/led.c)
target_sources(app PRIVATE C:/Users/user/Desktop/includes/mqtt_.c)
# NORDIC SDK APP END
prj.conf
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# General config
CONFIG_ASSERT=y
CONFIG_TEST_RANDOM_GENERATOR=y
# BSD library
CONFIG_BSD_LIBRARY=y
# AT host library
CONFIG_AT_HOST_LIBRARY=y
# above is from at_client
# nvs
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_NVS=y
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=4
CONFIG_NVS_LOG_LEVEL_DBG=y
CONFIG_REBOOT=y
nrf9160_pca10090ns.overlay
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Needed to get NRF_UARTE2 and NRF_PWMn defined. */
&uart2 {
status = "ok";
};
&uart0 {
current-speed = <115200>;
status = "ok";
tx-pin = <11>;
rx-pin = <12>;
rts-pin = <13>;
cts-pin = <14>;
};
nrf9160_pca10090.overlay in spm sample
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Needed to get NRF_UARTE2 and NRF_PWMn defined. */
&pwm1 {
status = "ok";
};
&pwm2 {
status = "ok";
};
&pwm3 {
status = "ok";
};
&uart2 {
status = "ok";
};
&uart0 {
current-speed = <115200>;
status = "ok";
tx-pin = <11>;
I've attached a zip of my main.c and includes. I left out the certificates.h and kconfig
Thanks