Git Product home page Git Product logo

Comments (7)

jimakos96 avatar jimakos96 commented on September 28, 2024 1

Thanks you this worked perfectly

from ubxlib.

RobMeades avatar RobMeades commented on September 28, 2024

Hi and thanks for posting, sorry you're having trouble with this.

From the code you have posted above it looks as though your deviceConfig is not a const type, which the compiler would naturally zero for you, hence you likely need to set it to 0 first, i.e.:

uDeviceCfg_t deviceConfig = {0};

...otherwise the fields that you are not populating in the structure could contain anything, which could cause U_ERROR_COMMON_INVALID_PARAMETER.

Give this a try and let us know how it goes.

from ubxlib.

jimakos96 avatar jimakos96 commented on September 28, 2024

ok i tried that , now i am getting a crash from the error
assert failed: periph_module_enable periph_ctrl.c:58 (periph < PERIPH_MODULE_MAX)

from ubxlib.

RobMeades avatar RobMeades commented on September 28, 2024

assert failed: periph_module_enable periph_ctrl.c:58 (periph < PERIPH_MODULE_MAX)

This is not a ubxlib file, not something I have ever seen before I'm afraid. Which version of ESP-IDF are you using? We test with version 5.0.3 and we have customers who are using 5.2 successfully with I2C.

You will likely need to find out what the values of periph and PERIPH_MODULE_MAX are and where the value for periph is coming from.

from ubxlib.

jimakos96 avatar jimakos96 commented on September 28, 2024

i am using the ESP-IDF v5.2.1-dirty

from ubxlib.

RobMeades avatar RobMeades commented on September 28, 2024

Checking the ESP-IDF pages for ESP32C6, it says:

ESP32-C6 has 1 I2C controller (also called port), responsible for handling communication on the I2C bus. A single I2C controller can be a master or a slave.

ESP-IDF usually numbers ports from zero, so it might be that you only have I2C port 0, hence you might need:

deviceConfig.transportCfg.cfgI2c.i2c = 0;

from ubxlib.

RobMeades avatar RobMeades commented on September 28, 2024

I will close this now, please feel free to open a new issue if there is more to discuss.

from ubxlib.

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.