-
Notifications
You must be signed in to change notification settings - Fork 78
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
Inkplate 10 SD Card Error #195
Comments
Hi @mattncsu, really sorry for the delayed reply. In case you are still experiencing this issue, the cards we use are SDHC and they have been formatted in FAT32 as you've said. Did you change the jumper pins on your board? This could be an issue with the SD card module not being powered correctly. If you have a multimeter, could you check if the SD card has 3V3 between these pins: |
Hi, apologies for reviving this old issue, but I'm experiencing the same problem. I have not touched the jumper pins on the board. If there are no SD cards in the module, I get a reading of about 70mV and almost zero with a SD card inserted. |
Hi, I am having the same problem - was there any fix or resolution for this? I've also not touched the jumpers and there is an 8GB SDHC FAT32 sd card in the reader. I was trying the examples on my soldered_inkplate10 and can't get a few to work as I get an error similar to:
and
Please let me know what more I can try? Thanks.... |
Hi @RandalR, this is related to the MicroPython library, could you please open this as an issue there and I'll reply. @amir , terribly sorry for missing your message here. Do you still need help with the SD card? |
Sorry, I’m still new and finding my way around – where would you like me to file a bug report?
Thanks
-Randal
From: Robert Sorić ***@***.***>
Sent: Monday, 7 October, 2024 06:49
To: SolderedElectronics/Inkplate-Arduino-library ***@***.***>
Cc: RandalR ***@***.***>; Mention ***@***.***>
Subject: Re: [SolderedElectronics/Inkplate-Arduino-library] Inkplate 10 SD Card Error (Issue #195)
Hi @RandalR <https://github.com/RandalR> ,
this is related to the MicroPython <https://github.com/SolderedElectronics/Inkplate-micropython> library, could you please open this as an issue there and I'll reply.
@amir <https://github.com/amir> , terribly sorry for missing your message here. Do you still need help with the SD card?
—
Reply to this email directly, view it on GitHub <#195 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIE4EG4JAIXDVOSWZJUVGDDZ2J7LXAVCNFSM6AAAAABPL6V7F2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJWHAZTOOBZGU> .
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@rsoric no worries at all, I'm still unable to use my SD card and have to load assets from a remote server which adversely impacts the battery life |
@RandalR , we're still working on an official template for a bug report @amir , glad you found a workaround in the meantime. I'm out of office for the time being but on Monday I'll be able to test this out on one of our boards. One thing that comes to mind is that the SD card implementation with ESP32 is pretty straight forward, I think it's card compatibility that's the issue. Could you please try using the official SD card formatter to see if the card is in FAT32? Could you try a different SD card, Inoffice we are also using SD-XC cards, 8 and 16 gb. |
Hi, I thought I had mentioned that I had read that maybe card compatibility may be an issue so that’s why I specifically used an older 8GB SanDisk. I had also read in the docs that it would be looking for a FAT32 filesystem, which is what I put on it. I can try with that formatter, but I seriously doubt that it will result in a different outcome.
I thought it was a hardware issue since I was reading about “jumpers” and voltages?
Thanks for your message and for your help
-Randal R.
From: Robert Sorić ***@***.***>
Sent: Friday, 11 October, 2024 01:52
To: SolderedElectronics/Inkplate-Arduino-library ***@***.***>
Cc: RandalR ***@***.***>; Mention ***@***.***>
Subject: Re: [SolderedElectronics/Inkplate-Arduino-library] Inkplate 10 SD Card Error (Issue #195)
@RandalR <https://github.com/RandalR> , we're still working on an official template for a bug report
@amir <https://github.com/amir> , glad you found a workaround in the meantime. I'm out of office for the time being but on Monday I'll be able to test this out on one of our boards.
One thing that comes to mind is that the SD card implementation with ESP32 is pretty straight forward, I think it's card compatibility that's the issue. Could you please try using the official SD card formatter <https://www.sdcard.org/downloads/formatter/> to see if the card is in FAT32? Could you try a different SD card, Inoffice we are also using SD-XC cards, 8 and 16 gb.
—
Reply to this email directly, view it on GitHub <#195 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIE4EG47TOHJZ76Q3FTZDPLZ257QRAVCNFSM6AAAAABPL6V7F2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBWG42TMNZXGA> .
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi @RandalR, The reason I was mentioning those things is that it was my original thought when I first saw this ticket. From what I understand the boards weren't modified in any way via hardware - the microSD slot should work just fine. After consulting with my senior colleagues, there could be a potential issue with some Inkplate 10 boards regarding the SD card. Could you please take a picture of the back of your board and also to identify the version number, printed faintly in one of the corners: |
Hi @RandalR , thanks, that helps. Can you try shorting JP1 and seeing if that fixes the issue? This will ensure that the microSD card has constant power. If that doesn't help, we'll have to call it a hardware issue and will kindly ask you to contact us via customer support to continue resolving this. |
Thanks for your quick reply @rsoric - before I break out the soldering iron, I was wondering if there was a definitive test program that I could try? Something that you know works in MicroPython so I can try it here? I've only loaded the examples onto it for now - I think it was "exampleSd.py" - and that's where this issue popped up. If that example should absolutely work I can then try the hardware jumper. I just wanted to be sure it wasn't something that I did since I am not an experienced developer of these sorts of devices and it has been many years since I worked on an Arduino board... |
Hey @RandalR , of course, I just tested this, i have placed the files from soldered_inkplate10/SD_card_example_files in the root folder of my SD card and I placed the SD card in the device and I ran this:
As you can see I could read from the .txt file and list all the files on the SD card. It took a while but the .bmp also drew: The example should thus work. |
@rsoric - Thanks for this. Following your example I was able to get the image to load. However, I think I've discovered maybe the root cause of my issue with the SD card:: Go through your example again (you can comment out the drawImage part for time's sake) and after the last line completes, run the same command again, just repeat the "exampleSd.py" program. Here, if I do this, I get the error:
BUT if I power-cycle the device between runs (via the button next to the SD card slot), it works without giving an error. But I must turn it off and back on to enable it to do so, thus:
I am fairly certain that - being new to the platform - I was unaware of this particular requirement, and if it was mentioned anywhere in the documentation then I missed it. This might have led to my frustration and conclusion that there was a problem or hardware issue. Of course, if yours works fine, but mine continues to fail in this way, then there is still an issue. Please let me know what you think and if you were able to duplicate my results. |
Hey @RandalR , so I've got good news, I was able to replicate this issue and I've found the root cause. It's basically the main micropython firmware version. First my hunch was to try and wait longer for the hardware reset of the SD card, and to unmount before trying to mount again - but this didn't fix the issue. Then I was looking this up and found some users have fixed it by updating to a higher verison of micropython firmware, we use 1.18 included in this library, but versions up to 1.23 are available. This is running the same sketch (without the drawImage):
As you can see it works in this way. Unfortunately this isn't possible to fix in a simple manner, we would have to port the library to a newer version of the micropython firmware, but I'm glad we atleast found the cause. |
Well, as they say: "knowing is half the battle." ... I was wondering if some form of "reset" would work - anything that could be done programmatically without having to physically toggle the power switch. I will have to rethink a couple of projects if a better solution can't be found. Thank you for all of your time and dedication to helping me sort this out - I did think I was going crazy for a bit where a program works and then it doesn't!! lol Please let me know if there is anything I can do to help or test in the future. Thanks again! |
Hello,
Is there a special kind of microSD card required for Inkplate 10? I have tried a 32gb SDXC and a 2gb SD card in FAT and FAT32. I get "SD Card Error!" on the screen when I try the Inkplate10_SD_Pictures and Inkplate10_SD_TXT_Read examples.
Thanks!
The text was updated successfully, but these errors were encountered: