Coder Social home page Coder Social logo

ESP: I2C module. about simba HOT 2 CLOSED

eerimoq avatar eerimoq commented on July 20, 2024
ESP: I2C module.

from simba.

Comments (2)

eerimoq avatar eerimoq commented on July 20, 2024

Software i2c implemented as no hardware i2c seems to be available.

from simba.

rahuldeo2047 avatar rahuldeo2047 commented on July 20, 2024

I am evaluating Simba OS for my pet project. Using the Simba framework, driver seems easy enough to implement.
However, I came across an issue where read part is not working.

ESP8266 I2C module read is not working.

https://github.com/rahuldeo2047/ESP_rtos_eval/blob/master/simba/i2c/sensors/lib/mpu6050_basic/mpu6050_basic.c#L235

Write is working fine as it returns as expected.
Please ignore the coding standard.

LOG:

0.140:info:main:default: Mounting the file system...
0.190:info:main:default: done.
Scanning the i2c bus for slaves...

Found slave with address 0x68.

Scan complete. Found 1 slaves.
recheck Found slave with address 0x68.

transport initialization status: 0.

mpu initialization status: 0.

LINE: 287.

LINE: 110 : transport_p->i2c_address 0x68.

LINE: 134 : i2c_scan 1.

LINE: 146 : i2c_scan return 0.

LINE: 298.

LINE: 321.

LINE: 243 res 2.

LINE: 243 res 2.

LINE: 243 res 2.

LINE: 243 res 2.

LINE: 243 res 2.

LINE: 243 res 2.

LINE: 243 res 2.

LINE: 243 res 2.

LINE: 243 res 2.

LINE: 243 res 2.

LINE: 243 res 2.

LINE: 243 res 2.

LINE: 243 res 2.

LINE: 184 : i2c_write return 1.

LINE: 196 : check return 1.

LINE: 206 : i2c_read return -1.
Read failed with -5.

Only read is failing. I checked with the mpu6050 datasheet. Seems fine to me.

from simba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.