Hello together,
Im currently doing my bachelor thesis and my task is to develop a user interface that can control a NRF52840 and write some parameters over UART.
Im able receive data that I sent from a python script, but if I want to start advertising it gets interrupted and the error message says: ASSERTION FAIL [error == 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:305 k_sem_take failed with error -11
I already looked at everything I found relating to that error message. It seems like the UART, which is interrupt driven and fifo, interrupts the bluetooth hci core. I dont have any idea how to fix that, since Im not really experienced with zephyr or embedde programming.
In general: I need some code that reads the UART and does not interrupt the bluetooth functionality of the board. I didn't find a different UART solution that worked, it doesn't has to be interrupt driven or fifo! I hope some of you may help me :)
Thank you in advance for your answers!
The code is as following: