wiken
New Member
Posts: 45
|
Post by wiken on Mar 21, 2019 12:39:43 GMT
HI.
I have encountered a weird problem.
Lately, Reading and Writing stops working, except for in setup. Then the firmware can read all files containing calibration data. When trying to read or write a files on SD using a command, the firmware reboots or just responds "file not found", so command filepointer.exists(); does not find the file. That same file was found during setup.
I'm wondering if the stack hits the floor, and if the TC-275 can reboot as a result of that. The overflow area should be flagged, but I can't find anything i documentation about this.
I have about 25000 lines of code in this project.
Does anyone have a similar problem?
\Wiken
|
|
wiken
New Member
Posts: 45
|
Post by wiken on Apr 5, 2019 9:00:41 GMT
I have tested a lot of variables, but found nothing wrong. The code I used worked on Arduino Due. I have tried to replace the SD Card, with no other result. There is no way to see, what happens when the library fails to find the file on the SD Card.
I have to abandon the SD Card and go for the EEProm. \Wiken
|
|
wiken
New Member
Posts: 45
|
Post by wiken on Jul 11, 2019 14:07:19 GMT
Hi. I know now more about this. It's depending on the SD card, some cards makes the unit reboot, some cards don't. I get init failed with some cards, and init ok with some. I the latter case, the unit reboots with a init ok, and it finds and reads all data from the card.
After setup is executed, and loop is entered, the sd library reports file not found using res=filepointet.exists(filename);
What happens between setup and loop? Wiken 🤔
|
|
jimmie
Junior Member
Posts: 86
|
Post by jimmie on Jul 17, 2019 2:28:00 GMT
Hi. I know now more about this. It's depending on the SD card, some cards makes the unit reboot, some cards don't. I get init failed with some cards, and init ok with some. I the latter case, the unit reboots with a init ok, and it finds and reads all data from the card. After setup is executed, and loop is entered, the sd library reports file not found using res=filepointet.exists(filename); What happens between setup and loop? Wiken 🤔
Can you share what SD card was successful? I am having the same problem where my SD card is not being recognized.
Thanks.
|
|
wiken
New Member
Posts: 45
|
Post by wiken on Jul 17, 2019 10:21:11 GMT
Hi. I know now more about this. It's depending on the SD card, some cards makes the unit reboot, some cards don't. I get init failed with some cards, and init ok with some. I the latter case, the unit reboots with a init ok, and it finds and reads all data from the card. After setup is executed, and loop is entered, the sd library reports file not found using res=filepointet.exists(filename); What happens between setup and loop? Wiken 🤔
Can you share what SD card was successful? I am having the same problem where my SD card is not being recognized.
Thanks.
It's a SanDisk SDHC 8Gbytes. \Wiken
|
|
jimmie
Junior Member
Posts: 86
|
Post by jimmie on Jul 17, 2019 11:04:11 GMT
Thank you. In a separate post, I found out that I had to downgrade the Ethernet library to 1.1.2 for the Ethernet shield to work. My SD card sketch is not working too so I am wondering what SD library version did you use?
|
|
wiken
New Member
Posts: 45
|
Post by wiken on Jul 19, 2019 6:28:42 GMT
I have used the library that came with the ShieldBuddy. It's a soft-SPI that uses pin 50-53 on the SB. Wiken
|
|
jimmie
Junior Member
Posts: 86
|
Post by jimmie on Jul 20, 2019 16:00:35 GMT
Thank you.
|
|