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

How to manage data protection when GATT data attributes are placed on User space ?

Hello,

My device has GATT data attributes configured to have BLE_GATTS_VLOC_USER so the data are in application stack. In this way, the softdevice has direct access to the data via my supplied pointers. My question is this would lead to data access problem such as when softdevice is trying to read the data, and my application thread is trying to update the data. I cannot possibly use a mutex since I do not have control over softdevice or its BLE operations. How could I solve this data access problem ?