This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf9160 cannot enable uarte2

Hi

I am using the mqtt_simple project and want to use the second UART (UARTE2) for other serial communication. 

For quick test I have add the folloing in the main function:

struct device *uart1 = device_get_binding("UART_1");
uart_irq_callback_set(uart1, uart_cb);

This cause errors:

Exception occurred in Secure State
***** HARD FAULT *****
Fault escalation (see below)
***** BUS FAULT *****
Precise data bus error
BFAR Address: 0x50008120
***** Hardware exception *****
Current thread ID = 0x20020284
Faulting instruction address = 0x959a
Fatal fault in ISR! Spinning...

I am using command line build with west and non-secure

When I look at the debug output I see that UARTE2 is in the secure domain:

Peripheral Domain Status
04 NRF_UARTE1 Non-Secure OK
05 NRF_UARTE2 Secure SKIP

Anyone know how to proceed with UARTE2?

Do I have to make modifications to SPM (secure_partition_manager) or is it a project setting I have missed?

 

Related