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

    Lopy4 Guru meditation error

    Scheduled Pinned Locked Moved Issues & Bugs
    firmwarelopy4errorguru meditationguru error
    37 Posts 4 Posters 8.9k Views 4 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.
    • robert-hhR Offline
      robert-hh @bjsi9
      last edited by

      @bjsi9 Yes. They can be empty and are empty on fresh installe devices. lib is used for storing python code of library style. It is also named in uos.path. But that is convention.

      1 Reply Last reply Reply Quote 0
      • B Offline
        bjsi9 @jmarcelino
        last edited by

        @jmarcelino I've sent my code to you. Do you think its possible that the code, compined with the firmware update, burned the circuit? :) I'm running out of ideas.

        1 Reply Last reply Reply Quote 0
        • B Offline
          bjsi9
          last edited by

          I just deleted the boot.py and main.py on one of my LoPy4's via the FTP. When i start the device same chrash every other second.

          robert-hhR J 2 Replies Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @bjsi9
            last edited by

            @bjsi9 Can you try to erase the flash completely using esptool.py, subcommand erase_flash, and specifying the flash size. That will delete EVERYTHING including configuration and registration options. That will be restored with a pycom update, you can run afterwards.
            If you have the firmware creating environment set up, you can also run the command:
            make erase
            As always, you need to tie P2 to GND to activate the ROM bootloader.

            B M 2 Replies Last reply Reply Quote 0
            • B Offline
              bjsi9 @robert-hh
              last edited by

              @robert-hh I found the esptool.py on this link, and copied to a file on my desktop: https://github.com/pycom/pycom-micropython-sigfox/blob/master/esp32/tools/esptool.py

              I need som guidelines on how to proceed. I think this file goes to the lib folder, and i have to command it from the pymakr.
              If this is correct, what is the exact command to execute til esptool? Thank you

              robert-hhR 1 Reply Last reply Reply Quote 0
              • robert-hhR Offline
                robert-hh @bjsi9
                last edited by robert-hh

                @bjsi9 Esptool.py is executed on your PC from the command line (cmd on Windows, terminal on Linux/Max). It is also used internally by the pycom update tool. Just call :

                python3 esptool.py --help

                to erase, run

                python3 esptool.py -p <portname> -c esp32 erase_flash

                Edit: Esptool is also here: https://github.com/espressif/esptool

                1 Reply Last reply Reply Quote 1
                • J Offline
                  jmarcelino @bjsi9
                  last edited by jmarcelino

                  @bjsi9
                  Could you a test please, go into safe boot so you have control and do

                  import pycom
                  pycom.wifi_on_boot(False)
                  

                  To disable WiFi hostAP on boot until activated again.

                  Then let me know if stops crashing.

                  Thanks!

                  B 1 Reply Last reply Reply Quote 2
                  • B Offline
                    bjsi9 @jmarcelino
                    last edited by bjsi9

                    @jmarcelino Success! My two LoPy4's with firmware 1.17.3.b1 and my own code running, no chrashes so far. Haven't tested for more than 10 minutes, but looks fine. Will test SiPy's tomorrow.
                    THANK YOU

                    Update: Still running 1+ hours. Great succes

                    robert-hhR 1 Reply Last reply Reply Quote 0
                    • robert-hhR Offline
                      robert-hh @bjsi9
                      last edited by robert-hh

                      @jmarcelino Good to know that WiFi on boot is also disabled on safe boot. Or am I wrong?

                      B 1 Reply Last reply Reply Quote 0
                      • B Offline
                        bjsi9 @robert-hh
                        last edited by

                        @robert-hh I dont think so. Because i can connect to the wifiAP when it is safe boot.
                        But not now, after this "fix". In both safe boot and normal.
                        I put the pycom.wifi_on_boot(False) into my main.py. And so far running fine.

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          MarcosPycom77 @jmarcelino
                          last edited by

                          @jmarcelino do you already searching for a solution or have found it ???? I have the same problem

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            MarcosPycom77 @robert-hh
                            last edited by

                            This post is deleted!
                            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
                            • 2
                            • 2 / 2
                            • First post
                              Last post

                            Pycom on Twitter

                            Pycom