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 Causes crashes on FiPy and WiPy

    Scheduled Pinned Locked Moved Discussion
    i2cwipyfipy
    4 Posts 2 Posters 802 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.
    • N Offline
      noobiemcfoob Pybytes Beta
      last edited by

      I have a WiPy 2.0 and a FiPy, both updated to the most available firmware ("MicroPython v1.8.6-849-83e2f7f on 2018-03-19; FiPy with ESP32").

      When I attempt to use any of the I2C functions, the device crashes. This happens with either device. I've attempted using the I2C features with nothing connected to the board, with it connected to an I2C slave and with SDA and SCL connected to a 4.7kohm pull-up resistor.

      Regardless of what I do I see something like this:

      >>> from machine import I2C
      >>> i2c = I2C(0, I2C.MASTER)
      >>> i2c.scan()
      []
      >>> ets Jun  8 2016 00:22:57
      
      rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
      configsip: 0, SPIWP:0xee
      clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
      mode:DIO, clock div:1
      load:0x3fff8028,len:8
      load:0x3fff8030,len:1728
      load:0x4009fa00,len:0
      load:0x4009fa00,len:14584
      entry 0x400a059c
      Attempting to connect to WiFi with stored configuration
      Stored SSID:Password - SQUANCH:Pentair1
      Connected to SQUANCH! Connection: ('192.168.1.22', '255.255.255.0', '192.168.1.1', '192.168.1.1')
      Enabling NTP
      NTP Enabled
      MicroPython v1.8.6-849-83e2f7f on 2018-03-19; FiPy with ESP32
      Type "help()" for more information.
      >>> 
      
      
      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jmarcelino @noobiemcfoob
        last edited by

        @noobiemcfoob
        How is the board connected? Do you have a Pycom expansion board?

        Can you try to do a full erase and firmware upgrade?

        1 Reply Last reply Reply Quote 0
        • N Offline
          noobiemcfoob Pybytes Beta
          last edited by

          heh, full erase fixed it. All better now!

          1 Reply Last reply Reply Quote 0
          • N Offline
            noobiemcfoob Pybytes Beta
            last edited by

            I spoke too soon! >.<

            From a fresh wipe and firmware upgrade, I was able to run the I2C library. However, once I loaded my own modules onto the device and used them to connect to my network, calling "init" on an I2C instance caused the WiPy to freeze (connected over serial, but I could no longer type into the console).

            I built a bit-banged version of I2C yesterday and am able to use it on the same pins ("P8", "P9") without issue.

            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