Our products are based on nrf52832 / nrf52840 chips as application mcu which run freeRTOS.
One of high priority task implements algorithm for controlling motor (using QDEC and PWM embedded modules) and it is critical time constrained task e.g. it should be run every 3 mSec.
My main concern is the mutual influence between BLE (SD) interrupts and this critical task timing.
Due to the fact that motor control is implemented as close loop control algorithm which need to be periodically calculated every 3 mSecs it seems (correct me if I am wrong) that using regular BLE communication channel shall not work.
A few solutions were considered and each of them raises specific questions:
1) Masking BLE interrupts at enter to critical task and unmasking when the critical task is yielded - How would it influence on BLE communication?
2) Using Beacon for on way data transmission from server - Does it solve the issue of BLE SD interrupts?
3) Is there any other solution to this problem?
Thanks in advance