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

Read 10kB from internal flash and send it via NUS UART BLE

Can you please provide an example on how to read 10kB from the internal flash using pstorage_load and send it to mobile phone (NRF Toolbox) via NUS UART BLE ble_nus_string_send?

A modification of ble_app_uart example from the SDK to do the task would be awesome.

PS: Similar questions have been asked before such as

devzone.nordicsemi.com/.../

but I could not find any answer that would show the complete solution to this.

Parents
  • Well, I have tried but so far I have failed. I do not know for example how to synchronize BLE and Flash read. BLE can send only a 6 * 20 bytes then have to wait. In the meantime I should read next data from flash to be ready to send them. I am also afraid that my solution will maybe work but will be far from good. That is why I really hope somebody knowledgeable could spend his/her 5 minutes and provide an example that everybody could benefit from.

Reply
  • Well, I have tried but so far I have failed. I do not know for example how to synchronize BLE and Flash read. BLE can send only a 6 * 20 bytes then have to wait. In the meantime I should read next data from flash to be ready to send them. I am also afraid that my solution will maybe work but will be far from good. That is why I really hope somebody knowledgeable could spend his/her 5 minutes and provide an example that everybody could benefit from.

Children
No Data
Related