Hello everyone,
I ran into a problem, i'm trying to use a pyboard to record datas of both an gyro-accelerometer (on I2C 1) and a barometer (on I2C 2).
So i made a basic code that get all datas and store them in a file on the sd card... The thing is the file always get corrupted.
So as we all do, i tried removing parts of the code to see what specificaly was causing the problem and it seems that it's the barometer, if i comment out EVERYTHING linked to I2C 2 the file is ok...
So, is it impossible to use both an sd card and I2C 2 at the same time? And if not, what could be causing the problem?
Regards, Timon
Sd card file error when using I2C 2
Re: Sd card file error when using I2C 2
Please use Github Discussions - this site is no longer read by people who know what they're doing.
Without the code, how can we tell what's going wrong?
If you have the SD card mounted as USB storage on your computer, that can cause corruption and is not recommended.
Without the code, how can we tell what's going wrong?
If you have the SD card mounted as USB storage on your computer, that can cause corruption and is not recommended.
Re: Sd card file error when using I2C 2
Definitely possible.timonjacquemin wrote: ↑Sat Oct 08, 2022 5:06 pmSo, is it impossible to use both an sd card and I2C 2 at the same time? And if not, what could be causing the problem?
Need to see your code. Please post to GitHub Discussions.