-
Notifications
You must be signed in to change notification settings - Fork 74
Cannot create a new table in an existing database file on SD card #58
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
Comments
Hi, can we try the same without these lines:
Does the example work without changes? |
I removed the code as you suggested, along with the file check, and added
After reverting back to the original example and running that out of the box, i get if I wipe the After that, upon checking the SD card, it seems that a file |
sorry to bring this thread bacl to live but i'm having the same problem.. |
@pauloslf Not sure if your issue is the same as what was being discussed in this thread, but: If you are able to read databases, is the Write protect switched on the SD Card? If you are connecting SD Card with wires on the SPI Port, there could be some issues with EMI interference. Try reducing the speed. However, in this case both READ and WRITE should be affected. |
There is no write protection on this card, and i can write other types of files to it without any issues. In order to validate the EMI interference i tested with a of the shelf board (freenove esp32-s3 wroom) and i got the same result. i'm using IDF 5.2.2, not arduino, but i assume it should be the same no ? |
I am following the spi demo and I have so far only modified the setup function
The idea here is to create an empty db file (according to #53 which I somehow doubt) and then open it as a db, and then create a table, and run a query on it.
Expected output: i expect both queries to work and the select to return no entries
Actual output:
What doesnt make sense to me is how the two error messages are distinct from each other. I also opened the SD card on my computer and verified that it has created the file, and that it is still in fact empty.
I also have run a demo SD card writing program and verified that even obnoxiously large files can be written. If i am being a goofus I would like to know, but i suspect that there are supposed to be data files for me to put on the SD card similar to the esp8266 example. I also suspect that something fishy is going on in the
create table
query as it seems to time out, so there is a chance that error is actually lying.The text was updated successfully, but these errors were encountered: