# SD log project error?

**URL:** <https://forum.xod.io/t/sd-log-project-error/3989>\
**Category:** Hardware Interfacing Questions\
**Created:** [May 21, 2020, 6:28am UTC](https://forum.xod.io/t/sd-log-project-error/3989 "2020-05-21T06:28:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gcabral](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@gcabral](https://forum.xod.io/u/gcabral)\
**Post date:** [May 21, 2020, 6:28am UTC](https://forum.xod.io/t/sd-log-project-error/3989/1 "2020-05-21T06:28:36Z")

</div>

Hi,

I tried to make a easy SD-log project but

![Img_2](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/3/34626f3259ec1d549e2fdacc207bc08a2e4f6fec.png)

But after debbuging I get some error that I cannot figure out…

Any suggestions about what is the reason and how to solve it ?

![Img_3](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/d/db7d814f645bcbd5a5b5b3d09d97129eed55dc73.png)

The card is formated for FAT32.

Thanks in advance

/GC

---

<div class="post-metadata">

**Author:** ![gabbapeople](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/gabbapeople/32/1517_2.png) [@gabbapeople](https://forum.xod.io/u/gabbapeople)\
**Post date:** [May 21, 2020, 12:44pm UTC](https://forum.xod.io/t/sd-log-project-error/3989/2 "2020-05-21T12:44:04Z")

</div>

Hi! @gcabral

The problem can be caused by several reasons, first of all:

1. RAM Memory size on the microcontroller. When uploading, see how much memory the patch takes up. The SD library is greedy and may need an additional 512 byte buffer to write and edit files. If you don’t have enough memory, the program may crash. If possible, use a controller with a large amount of RAM.

2. File naming. FAT file systems have a limitation when it comes to naming conventions. You must use the 8.3 format, so that file names look like “NAME001.EXT”, where “NAME001” is an 8 character or fewer string, and “EXT” is a 3 character extension. People commonly use the extensions .TXT and .LOG. It is possible to have a shorter file name (for example, mydata.txt, or time.log), but you cannot use longer file names. [Read more on the 8.3 convention.](https://en.wikipedia.org/wiki/8.3_filename)

Also in XOD, the full path to the file should not exceed 16 characters. Use short file and folder names.

---

<div class="post-metadata">

**Author:** ![gcabral](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@gcabral](https://forum.xod.io/u/gcabral)\
**Post date:** [May 21, 2020, 2:37pm UTC](https://forum.xod.io/t/sd-log-project-error/3989/3 "2020-05-21T14:37:32Z")

</div>

Hi gabbapeople,

Thank you for the support.

Option/remark 1 - is not the case because I also tested it with arduino mega. Same result came out.

Option/remark 2 - I must check 8.3 format… I did not knew it before. Afeter the results I will share it.

Once more, I appreciate the support.

/GC

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [June 20, 2020, 2:37pm UTC](https://forum.xod.io/t/sd-log-project-error/3989/4 "2020-06-20T14:37:40Z")

</div>

Closed on June 20, 2020, 2:37pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
