Sd card file error when using I2C 2
Posted: Sat Oct 08, 2022 5:06 pm
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
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