This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to create a INI file to inject data from file

Hello,

I have got an application that receives through the SSI packets of data and makes fancy signal processing with it. The size of each packet is 512 bytes.

In order to debug by signal processing layer I would like to create a script to read data from a text file in packets of 512 and store it in my input buffer. When the first buffer is processed, indicate to the INI file to read the next 512 values and do process again.

Pseudocode of my INI file:
- Open external txt file
- while data available - Read from file and inject 512 values - Call fucntion or create a OS event - Wait until code arrives at a precise adress

How can I do this? Thanks in advance for your help.

Cheers,

Carlos

Parents
  • Is this even possible?

    I can see placing different (hex) files into memory, and running some code, then moving to another file, but not so much processing a file a sector at a time.

    Consider delivering your data sets via other mechanisms, for example streams of data in NAND, as files on an SD Card which the target can process directly. Build a test framework for your functions and feed them with the data.

Reply
  • Is this even possible?

    I can see placing different (hex) files into memory, and running some code, then moving to another file, but not so much processing a file a sector at a time.

    Consider delivering your data sets via other mechanisms, for example streams of data in NAND, as files on an SD Card which the target can process directly. Build a test framework for your functions and feed them with the data.

Children
No data