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

    Firmware release 1.0.1.b1

    Scheduled Pinned Locked Moved Announcements & News
    28 Posts 9 Posters 8.7k Views 9 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
      TravisT @sakis
      last edited by

      @sakis
      Thank you sir!

      1 Reply Last reply Reply Quote 0
      • L Offline
        livius
        last edited by

        @daniel
        can you add to updater tool option to use files from dir not from internet?
        e.g.

        1. i can transfer all files to pendrive and go to computer without internet connection and update my board
        2. i can change something in source code and do custom make
          and need to flash it to the board
          previously i do this simple by replace files in "updater" folder and run updater tool

        think about people first, then computers

        1 Reply Last reply Reply Quote 0
        • D Offline
          DongYin
          last edited by

          @daniel
          I set my Lopy to WLAN.STA mode and connect it with the router, then i ping it's IP address on my computer successfully.
          But if there is a way i can ping the IP address of my computer on the Lopy.
          If and how i can save any data to the flash?

          L 1 Reply Last reply Reply Quote 0
          • L Offline
            livius @DongYin
            last edited by

            @DongYin said in Firmware release 1.0.1.b1:

            If and how i can save any data to the flash?

            you can write files to the `\flash' folder without any problem

            think about people first, then computers

            D 1 Reply Last reply Reply Quote 1
            • R Offline
              Ralph
              last edited by Ralph

              @livius, before Daniel replies, let me add that (if you didn't know this already,) you can still update your board manually by placing the bin file in the /sys directory on the board itself using FTP, then rebooting the board. Your idea of making it an option in the updater would probably be better, but until that happens, you can do it this way.

              Edit: This works even nicer:
              make BOARD=LOPY ESPPORT=/dev/ttyUSB0 flash

              L 1 Reply Last reply Reply Quote 0
              • L Offline
                livius @Ralph
                last edited by livius

                @Ralph said in Firmware release 1.0.1.b1:

                make BOARD=LOPY ESPPORT=/dev/ttyUSB0 flash

                what this command flash do?
                write e.g. appimg.bin or also partition.bin, bootloader.bin some other things like erase mem...

                EDIT

                placing the bin file in the /sys directory on the board itself using FTP, then rebooting the board

                this does not work for me - but i tested this tommorow only once at night
                then maybe i do something wrong
                when i do this and restart the board it do not run

                i then reflash it with the updater tool once again
                and flash board with command line to put my custom source code make
                updater.py -f ......
                but i must change script of updater.py and remove erase_sytem_mem steap
                from some reason this steap time out
                a little hint here 'erase_sytem_mem' have one letter typing error should be 'erase_system_mem' ;-)

                think about people first, then computers

                1 Reply Last reply Reply Quote 0
                • R Offline
                  Ralph
                  last edited by

                  @livius it writes all three .bin files, but it doesn't erase anything else on the file system.

                  L 1 Reply Last reply Reply Quote 0
                  • L Offline
                    livius @Ralph
                    last edited by livius

                    @Ralph
                    thank you for the explanation
                    one question here - why then updater tool do erase mem?

                    EDIT:
                    and for windows it is like this?
                    make BOARD=WIPY ESPPORT=COM6 flash

                    think about people first, then computers

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      Ralph
                      last edited by

                      @livius As I understand from my colleagues, the updater tool does the same as the flash command does: it only erases what it needs to, to write the firmware, partition and bootloader.

                      And yes that looks about right to me for windows. ESPPORT just needs to be the full comport.

                      L 1 Reply Last reply Reply Quote 1
                      • L Offline
                        livius @Ralph
                        last edited by livius

                        @Ralph
                        ok - maybe this steap is unnesceserry at all it is used only if args.tar = None
                        in update.py is

                            def erase_sytem_mem(self):
                                # Erase first 3.5Mb (this way fs and MAC address will be untouched)
                                self.erase(0, 0x3100000)
                        

                        i will use flash switch from make
                        thank you again

                        think about people first, then computers

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          DongYin @livius
                          last edited by

                          @livius said in Firmware release 1.0.1.b1:

                          @DongYin said in Firmware release 1.0.1.b1:

                          If and how i can save any data to the flash?

                          you can write files to the `\flash' folder without any problem

                          Thank you! i used uos.mkdir("setting.ini") to write a file to '\flash', then how to write&read it by programs?

                          L 1 Reply Last reply Reply Quote 0
                          • L Offline
                            livius @DongYin
                            last edited by livius

                            @DongYin
                            look at:
                            https://docs.python.org/3/tutorial/inputoutput.html
                            there are paragraphs about files
                            also look here
                            https://docs.pycom.io/pycom_esp32/library/uos.html

                            os.mkdir create directory

                            think about people first, then computers

                            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