Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
3sztof opened this issue May 29, 2019 · 2 comments

Comments

@3sztof
Copy link

commented May 29, 2019

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 3sztof changed the title SD card: appendingTextWrite size limit? [XDK] SD card: appendingTextWrite size limit? May 29, 2019

@3sztof

This comment has been minimized.

Copy link
Author

commented May 31, 2019

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... 😟

@3sztof 3sztof closed this May 31, 2019

@3sztof 3sztof reopened this May 31, 2019

@wegendt-bosch

This comment has been minimized.

Copy link
Contributor

commented Jun 3, 2019

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.

@wegendt-bosch wegendt-bosch self-assigned this Jun 3, 2019

@wegendt-bosch wegendt-bosch added this to the Mita 0.2.0 milestone Jun 3, 2019

wegendt-bosch added a commit that referenced this issue Jun 12, 2019
wegendt-bosch added a commit that referenced this issue Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.