David Pinball
Member
Hi
I have a project - DotClk - this presents an animated clock on HUB75 style LED panels. I've been fighting an issue of the SD Card corrupting for about 3 years now. I've finally put together some example code that recreates the issue.
Setup is as follows:
Teensy 3.5
120MHz standard clock speed
Compiler set at Faster
SD Card 8GB Kingston, speed rated 4
The project involves displaying a digital clock, with an animation presented at various times. The animations are on the SD Card held in binary files of my design. After some time, possibly days / weeks / months, the clock will crash - no display is shown and the teensy LED tick of the clock stops. When examining the SD Card and comparing the contents it is found that one or more of the files is corrupted.
I have put together a minimal code example to recreate the issue - the code looks unnecessarily complex but it is based on the full project which is complex. This example just accesses the SD Card with the same routines as in the original project but without any delays. When I ran this it crashed within 2 days.
The code example can be found here:
https://github.com/sigmafx/DotClk_Fault
An SD Card inserted into the teensy needs the files from the following repository:
https://github.com/sigmafx/DotClk-Resources
When the code is running, the LED on the teensy will flash at .5Hz, and when it crashes it will stop - comparing the files on SD Card against the repository will show where there are corruptions.
I have tried many things to fix this issue - adding watchdog timer, setting the low voltage comparator check, changing the SD library, different SD Cards, formatting cards differently etc, etc.
I would really appreciate any help with this issue.
Many thanks
David.
I have a project - DotClk - this presents an animated clock on HUB75 style LED panels. I've been fighting an issue of the SD Card corrupting for about 3 years now. I've finally put together some example code that recreates the issue.
Setup is as follows:
Teensy 3.5
120MHz standard clock speed
Compiler set at Faster
SD Card 8GB Kingston, speed rated 4
The project involves displaying a digital clock, with an animation presented at various times. The animations are on the SD Card held in binary files of my design. After some time, possibly days / weeks / months, the clock will crash - no display is shown and the teensy LED tick of the clock stops. When examining the SD Card and comparing the contents it is found that one or more of the files is corrupted.
I have put together a minimal code example to recreate the issue - the code looks unnecessarily complex but it is based on the full project which is complex. This example just accesses the SD Card with the same routines as in the original project but without any delays. When I ran this it crashed within 2 days.
The code example can be found here:
https://github.com/sigmafx/DotClk_Fault
An SD Card inserted into the teensy needs the files from the following repository:
https://github.com/sigmafx/DotClk-Resources
When the code is running, the LED on the teensy will flash at .5Hz, and when it crashes it will stop - comparing the files on SD Card against the repository will show where there are corruptions.
I have tried many things to fix this issue - adding watchdog timer, setting the low voltage comparator check, changing the SD library, different SD Cards, formatting cards differently etc, etc.
I would really appreciate any help with this issue.
Many thanks
David.