-
I have been using cFS to write files to my data acquisition system, and have been incorporating the DS app into my system which I used the eval-cert3 branch to make. I've updated the message and command APIs on the DS app, however I've come across a bit of a snag in getting readable files, as most (although not all) of my file data is corrupted. I'm able to get files to open, write, and close, but most of the data I write is corrupted and I'm not really sure why or how to fix it. Here is the snippet where I write the header for a file. I am able to enter the first if-statement, as the Result from CFE_FS_WriteHeader is satisfied. And I am able to enter the second if-statement where I manually write the secondary header using OS_write. (snip from ds/fsw/src/ds_file.c)
and here is my output file. My actual data is being written by a different function, but I suspect the issue is related since the headers are also partially corrupted. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Why do you think the data is corrupted? Note these are binary files, not text. You'd have to open them in a hex editor to see the contents. ("hexedit" is a convenient command line tool I use often) |
Beta Was this translation helpful? Give feedback.
Why do you think the data is corrupted? Note these are binary files, not text. You'd have to open them in a hex editor to see the contents. ("hexedit" is a convenient command line tool I use often)