Page 2 of 2

Re: Problems with SD card

Posted: Fri Dec 11, 2020 4:54 pm
by dragonator
I have heard this more. Something in the past few years has broken my code, and I no longer poses the hardware to test it.

The only thing that I can imagine is that something in the gcode is not being read properly, either because the gcode used is wrong, or the SD card library is. However what exactly is difficult to say without hardware. I suspect the most likely place of the failure is in the SD_read part of the code, but the code has little in the way of debugging tools.

Re: Problems with SD card

Posted: Mon Dec 14, 2020 3:23 pm
by crisiM
Thanks for the fast respond.
line 13: int temp_buffer[5];
line 733 exceeds buffer size : for (int n = 0; n < 6; n++); changed to n<5
Now it works.

Re: Problems with SD card

Posted: Mon Dec 14, 2020 6:40 pm
by dragonator
You seem to have just found the issue that has been bugging many people. Changing it to 5 will prevent an overflow from happening. I will keep this one in mind for everyone that tries the code, and will try and fix it this week in the downloads. Many thanks for pointing this out to me.

My only personal question is how this managed to work with me, but not later. Clearly something was updated that made this a breaking mistake, where it used to be just a bad mistake.

Re: Problems with SD card

Posted: Wed Dec 16, 2020 6:46 pm
by dragonator
It is now updated on the firmware page. Lets hope it helps people.