Hello, guys!
We are using nRF52840 SoC together with the 15.3.0 version of SDK.
In our project, we basically want to combine BLE_NUS services together with the ability to store data on external QSPI flash formatted in FATFS.
The set of desired activities would be as follows:
1. Send an Initial data package over BLE_NUS
2. Once the first data packet is detected, create a new file with open_apend() function.
3. Receive the rest of the BLE_NUS packets and append them in the previously created file.
4. Receive the last data package, store it in the file, and close the file.
Now, we are able to perform the steps only separately. We can send the data over BLE_NUS, we can create, open, delete, and list the files on the external flash. The trouble comes when we want to combine things.
Namely, If I try to create a file with open_apend() function (or simply to list the files in the flash with fatfs_ls() function) from within nus_data_handler() function, the program simply freeze and nothing happens.
Do you have any idea why that might happen?
Thanks in advance for your time and efforts.
Sincerely,
Bojan.