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

    Problems getting L01 into bootloader mode

    Scheduled Pinned Locked Moved LoPy
    l01bootloader
    6 Posts 2 Posters 838 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.
    • T Offline
      Thosch42
      last edited by

      Hi all!
      I've a couple of L01 boards on a custom baseboard. So far, application runs fine. I can communicate with the L01 via wired serial port and WiFi. REPL works fine. But firmware upgrade is not possible, because I can't get the L01 into the bootloader mode.
      When I'm shorting P2 (G23) to GND and hard reset the L01, the serial console gives me

      >ets Jun  8 2016 00:22:57
      
      rst:0x1 (POWERON_RESET),boot:0x2b (HSPI_FLASH_BOOT)
      flash read err, 1000
      Falling back to built-in command interpreter.
      OK
      >ets Jun  8 2016 00:22:57
      
      rst:0x10 (RTCWDT_RTC_RESET),boot:0x2b (HSPI_FLASH_BOOT)
      flash read err, 1000
      Falling back to built-in command interpreter.
      OK
      

      while the last five lines will be repeated for ever. It stops throwing these five lines, if I hit ENTER.

      Any idea what's wrong?

      Cheers,
      Thomas

      D 1 Reply Last reply Reply Quote 0
      • D Offline
        danielm @Thosch42
        last edited by

        @thosch42
        Do you have something connected to P8?

        I experienced this behaviour one year ago. This is from my email communication with Daniel Campora:

        Hi Daniel,

        it was caused by gate pull-up of external P-channel MOSFET connected to P8 (via 150Ohm resistor). The MOSFET is used to cut power to CO2 sensor (GSS CozIR LP) from high-side because the sensor does not offer any sleep function. When the pull-up resistor (to 3.3V) was 22k it caused below-mentioned issues. When I replaced it with 100k, it now work ok. I do not exactly understand why it was causing these issues.

        Best regards,

        Daniel

        Hello Daniel,

        Thanks for the update. I checked the ESP32 datasheet and this pin (GPIO2 from the ESP32) must be low in order to enable flashing mode. The ESP32 enables a weak-pull down (around 60K) to check the state of this pin. When you replaced the pull-up with 100K the internal pull down of the ESP32 becomes stronger and allows to enter flashing mode.
        Cheers,
        Daniel

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          Thosch42 @danielm
          last edited by

          @danielm
          Yep! It's SCL of a I2C bus, pulles up to 3.3V with 4k7. Hmm, pretty bad. I will check if I2C is working with a 100k pull up, but I think it won't.

          1000 THX!!!

          Cheers,
          Thomas

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            danielm @Thosch42
            last edited by

            @thosch42
            Glad I could help.
            I am also afraid that the I2C bus will not work with such weak pull-up. Try to set lowest I2C frequency which is supported by all devices on the bus. You can also try slightly stronger pull-up.

            T 1 Reply Last reply Reply Quote 0
            • T Offline
              Thosch42 @danielm
              last edited by

              @danielm
              I cut the wire to the I2C bus, and the firmware upgrade works immediately :-)
              And my other problem, that the L01 won't run boot.py or main.py is fixed also.

              L01 does not run boot.py...

              Fortunately, it's only the prototype. The 2nd iteration will start next week...

              Cheers,
              Thomas

              D 1 Reply Last reply Reply Quote 0
              • D Offline
                danielm @Thosch42
                last edited by

                @thosch42
                Well, you learned the hard way. It happens all the time, at least for me :)

                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