Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    i2c error numbers

    Scheduled Pinned Locked Moved Issues & Bugs
    i2c bus errorpytrack
    3 Posts 2 Posters 428 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      crumble
      last edited by

      I compiled firmware 1.20 so that I get the failure reason of
      STATIC void hw_i2c_master_readfrom(machine_i2c_obj_t *i2c_obj, uint16_t slave_addr, uint32_t memaddr, uint8_t addr_size, uint8_t *data, uint16_t len) ;

      When I do not wait to init my pytrack running 0.0.8 I get
      #define ESP_ERR_TIMEOUT 0x107 /*!< Operation timed out */
      which seems to be fine.

      It returns 0x6 when it crashes unintended. This number is not defined in esp_err.h . Does someone know the meaning of this code?

      @Pycom please add the idf error code to the i2c bus error message.

      1 Reply Last reply Reply Quote 0
      • I Offline
        iwahdan
        last edited by

        Hello @crumble ,

        Well indeed, I cannot find Error 0x6 in IDF , however we updated the release-candidate branch with IDF, lwip, mbedtls, DNS errors amended to Micropython Error Codes. you can give it a try. tag v1.20.0.rc7.2

        Wahdan

        1 Reply Last reply Reply Quote 1
        • C Offline
          crumble
          last edited by

          Thanks.

          I assume that I run into one of the ESP32 bugs related to memory problems with multicore or reading multiple times the same address. But therefore it is strange that the returning value is always 6.

          As long as it fails mainly on initilazing pytrack and WDT helps, I am fine. I will be happy. if the *Py can be configured so that ctrl-c stops the watchdog or sets wait time to max.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom