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

loading data from file in nrf51 dk

Hi,

I am working on adc module of nrf51,through adc i am taking data and storing it in array.now i have to crossexamine this adc data with the prestored data and have to predict some result.

Q.) the prestored data is saved in a file(assume in .csv file),if I am loading data from this file using fstream into an object of library I am using,then it is not working,because files are not handled in DK. MY question is : how can i load that prestored data into object of library i am using.

more clearly how i can load data at the run time from that specific file.

Parents
  • I am not sure if you got the question. I want file contents (i.e. x number of values stored in file) to be loaded in an object (like array), something like Firmware reading a file that is in Flash.

    Now I have two questions :

    1. How do I flash a file along with Firmware on nRF51 Processor (for e.g. It can be .txt file or some format that Firmware can understand)?

    2. Once the file is flashed, Can I modify the contents of that file using Firmware? If yes, How can we do it?

Reply
  • I am not sure if you got the question. I want file contents (i.e. x number of values stored in file) to be loaded in an object (like array), something like Firmware reading a file that is in Flash.

    Now I have two questions :

    1. How do I flash a file along with Firmware on nRF51 Processor (for e.g. It can be .txt file or some format that Firmware can understand)?

    2. Once the file is flashed, Can I modify the contents of that file using Firmware? If yes, How can we do it?

Children
No Data
Related