Hi, I'm building an application that will use the nrf9160 as a middle man for a websocket connection that becomes a uart connection on the main processor. Thus I want to receive messages on uart1 and send them to the websocket, and then receive messages on the websocket and send them to uart1. I want to still have full debug capabilities on the virtual com port over usb, so that's why I'm not trying to use uart0.
When I'm calling a uart function like uart_rx_enable / uart_tx, I get a runtime error that looks like this:
[00:00:00.384,674] <err> lte_app: Cannot set UART callback (err -88)
[00:00:00.387,756] <err> os: ***** SECURE FAULT *****
[00:00:00.387,756] <err> os: Invalid entry point
[00:00:00.387,786] <err> os: r0/a1: 0x0002afd0 r1/a2: 0x20011758 r2/a3: 0x00000200
[00:00:00.387,786] <err> os: r3/a4: 0x00000064 r12/ip: 0x00000000 r14/lr: 0x0000a233
[00:00:00.387,786] <err> os: xpsr: 0x20000000
[00:00:00.387,817] <err> os: Faulting instruction address (r15/pc): 0x00000000
[00:00:00.387,847] <err> os: >>> ZEPHYR FATAL ERROR 38: Unknown error on CPU 0
[00:00:00.387,878] <err> os: Current thread: 0x2000ea08 (unknown)
[00:00:00.482,940] <err> os: Halting system
The uart hardware seems to be correctly initialized as indicated by testing for readyness and printing uart device name:
<dbg> lte_app: main: UART device uart@9000 is ready
I'm on SDK v2.7.0
My board is set to: nrf910dk/nrf9160/ns
here is my config: