I am stumped at the moment trying to figure out what changed in SDK v1.7.1.
This works ok in SDK v1.6.1 with no issues.
It also builds ok when using “west build -b nrf9160dk_nrf9160ns -p”
I am buidling
/opt/nordic/ncs/v1.7.1/nrf/applications/serial_lte_modem
using the command
west build -b circuitdojo_feather_nrf9160ns -p
And I get this error, when I attempt to enable UART2
In file included from /opt/nordic/ncs/v1.7.1/zephyr/include/arch/arm/aarch32/arch.h:20,
from /opt/nordic/ncs/v1.7.1/zephyr/include/arch/cpu.h:19,
from /opt/nordic/ncs/v1.7.1/zephyr/include/kernel_includes.h:33,
from /opt/nordic/ncs/v1.7.1/zephyr/include/kernel.h:17,
from /opt/nordic/ncs/v1.7.1/zephyr/include/init.h:11,
from /opt/nordic/ncs/v1.7.1/zephyr/include/device.h:29,
from /opt/nordic/ncs/v1.7.1/zephyr/include/drivers/uart.h:26,
from /opt/nordic/ncs/v1.7.1/zephyr/drivers/serial/uart_nrfx_uarte.c:11:
/opt/nordic/ncs/v1.7.1/nrf/applications/serial_lte_modem/build/zephyr/include/generated/devicetree_unfixed.h:5351:38: error: ‘DT_N_S_soc_S_peripheral_40000000_S_uart_a000_P_current_speed’ undeclared here (not in a function); did you mean ‘DT_N_S_soc_S_peripheral_40000000_S_uart_9000_P_current_speed’?
…. and more errors.
I have modified the stock repository as follows…
Added the file “circuitdojo_feather_nrf9160ns.overlay” with the contents…
&uart2 {
compatible = “nordic,nrf-uarte”;
current-speed = <115200>;
status = “okay”;
/*
tx-pin = <10>;
rx-pin = <11>;
rts-pin = <12>;
cts-pin = <13>;
hw-flow-control;
*/
// without CTS RTS support
rx-pin = <23>;
tx-pin = <24>;
};
&i2c2 {
status = “disabled”;
};
Modified the “prj.conf” file as follows…
Removed the comment on the following two lines near the bottom of the file…
CONFIG_SLM_CONNECT_UART_2=y
CONFIG_UART_2_NRF_HW_ASYNC_TIMER=2
This results in this above error when attempting to use UART2, if I can get some help digging into what changed in v1.7.1 it would be much appreciated, thank you!
Allan