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

Asset Tracker + Uart DMA

Hi,

I'm Trying to add uart with DMA functionality to the asset tracker sample code. 

but when running : 

Fullscreen
1
uart_callback_set(uart_wifi, uart_callback_algo, uart_wifi);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I get: 

Fullscreen
1
2
3
4
5
6
7
8
9
10
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 = 0x20027910
Faulting instruction address = 0x2ed76
Fatal fault in ISR! Spinning...
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

this is my nrf9160_pca10090ns.overlay : 

Fullscreen
1
2
3
4
5
6
7
&uart1 {
current-speed = <115200>;
compatible = "nordic,nrf-uarte";
status = "okay";
tx-pin = <19>;
rx-pin = <18>;
};
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

these flags I added to prj.conf:

Fullscreen
1
2
3
4
CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y
CONFIG_UART_1_NRF_UARTE=y
CONFIG_ARM_MPU=n
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

any idea how to make this work? 

BTW, I was able to make the uart work without using the DMA.

thanks !