Hello,
im trying to send Data from one Devkit to another (nrf9160 from nrf52840) the Problem is that if i enable Bluetooth on the nRF52 i get an error when receving/transmitting Data via UART.
The Error Code is (RTT LOG of NRF52):
00> [00:00:11.234,375] <inf> app_uart: Received data len:1 bytes,offset:0
00>
00> [00:00:11.234,771] <inf> cmd: Length Rec: 1
00> ASSERTION FAIL [!arch_is_in_isr()] @ WEST_TOPDIR/zephyr/kernel/mutex.c:101
00>
00> mutexes cannot be used inside ISRs
00>
00> [00:00:11.235,473] <err> os: r0/a1: 0x00000004 r1/a2: 0x00000065 r2/a3: 0x00000000
00> [00:00:11.235,961] <err> os: r3/a4: 0x20002230 r12/ip: 0x00000000 r14/lr: 0x0002c447
00> [00:00:11.236,450] <err> os: xpsr: 0x61000021
00> [00:00:11.236,785] <err> os: Faulting instruction address (r15/pc): 0x00032e2e
00> [00:00:11.237,243] <err> os: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
00> [00:00:11.237,670] <err> os: Fault during interrupt handling
00>
00> [00:00:11.238,037] <err> os: Current thread: 0x20001ec8 (unknown)
00> [00:00:11.258,300] [1;31m<err> fatal_error: Resetting system
As far as my Code is concerned i dont use extra Threads or Mutexes in the Uart Code.
My Code for both Kits is Zipped here:
nRF91ichip.rar
nRF52bchip.rar
As you can tell im trying to Implement a Cross DFU via Uart.
Any possible Solutions or Ideas would be greatly appreceated