eclipse / mita

mita
Eclipse Public License 2.0
56 stars 20 forks source link

[XDK] SD card: appendingTextWrite size limit? #345

Closed 3sztof closed 5 years ago

3sztof commented 5 years ago

Current behaviour: I have experienced a problem when writing to a file on a microSD card: the maximum file size seems to be 65 kB. I have tried with several different SD cards all formated in FAT32 with different allocation unit sizes... Rebooting the XDK and continuing to write to the same file doesn't help, it seems as some buffer if full... Maybe it has something to do with the "writer" in a snippet below?

Related code:

setup sd : SDCard {
    var writer : string = appendingTextWrite("CollectedData.csv");
}

...

every 100 milliseconds {
    sd.writer.write(`${accelerationX} , ${accelerationY} , ${accelerationZ} , ${pressure} , ${realCycleTime} \n`);
}

XDK Community Support Thread

You can find the discussion about this issue HERE.

3sztof commented 5 years ago

Solved: there is a uint16_t variable "writerFilePosition" which limits the file size when appending in the generated C source. I just changed it to uint32_t...

Note do devs: fix it maybe? My issue doesn't seem to drag too much attention... 😟

wegendt-bosch commented 5 years ago

Hi, thanks for the issue report. Please be mindful that 1-2 working days is not a long time to respond to issues like this and that this will only appear fixed on your end with the next workbench release.