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

    Using ESP-IDF on a Lopy/Pygate

    Scheduled Pinned Locked Moved Firmware
    8 Posts 3 Posters 81 Views 3 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.
    • G Offline
      Gonçalo Ferreira
      last edited by

      Hi, I was trying to program my Lopy4 that is going to be connected to a pygate in C/C++. For that I installed ubuntu on a VmWare Virtual Machine and installed ESP-IDF. I followed the steps of https://github.com/pycom/pycom-esp-idf and https://github.com/pycom/pycom-micropython-sigfox and got this directory's on my esp directory
      adca40b4-0bda-4776-966b-1b5a6cf56614-image.png
      I exported the paths from both xtensa-esp32-elf/bin and pycom-micropython-sigfox.git. Nevertheless when i trie to make BOARD=LOPY4 i got this error
      fa902502-3c2f-4a41-83a2-4107622fb682-image.png
      how can i get this to work? Sorry if the question is stupid but its the firts time i use ESP-IDF and make.
      Dont realy know also how can I set the lopy as a pygate expansion board so i can use the example codes in pycom-micropython-sigfox.git.
      Thanks for the help

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @Gonçalo Ferreira
        last edited by

        @Gonçalo-Ferreira You have to checkout the requested version. Go into the esp-idf directory and run:

        git checkout 3394ee5

        Then this error message should be history.

        Note: You will get a warning that the repository is now in "detached HEAD" state. Sounds cruel, but is not critical.

        G 1 Reply Last reply Reply Quote 1
        • G Offline
          Gonçalo Ferreira @robert-hh
          last edited by

          @robert-hh said in Using ESP-IDF on a Lopy/Pygate:

          git checkout 3394ee5

          Hi @robert-hh , thanks for your reply!
          I did that
          66411470-ea6c-4191-9eef-29bd3716bd49-image.png
          but it still gives me the same error
          28224aee-97a3-424b-b7d8-b2d464a295ab-image.png
          can you help me?

          G 1 Reply Last reply Reply Quote 0
          • G Offline
            Gonçalo Ferreira @Gonçalo Ferreira
            last edited by

            @Gonçalo-Ferreira @robert-hh I figured out the problem,, I was not exporting the correct path.
            Now i make make BOARD=LOPY4 and it says i dont have pyserial intalled and i dont find de README.md with the instructions to install it.
            Can you help me?
            08f5e830-329c-4965-9f03-2c817a17ade0-image.png

            1 Reply Last reply Reply Quote 0
            • G Offline
              Gonçalo Ferreira
              last edited by

              Srry, i was able to resolve the Pyserial problem. The make BOARD=LOPY4 worked oaky, but when i do make BOARD=LOPY4 flash its says that the port is not correct. Then i saw my usb devices and my board is the ttyACM0. I did make ESPPORT=/dev/ttyACM0 flash and this error happended
              333081ae-182c-42ce-ab3c-31a242b2479c-image.png
              what is wrong?
              srry for the questions mentioned before

              G 1 Reply Last reply Reply Quote 0
              • G Offline
                Gonçalo Ferreira @Gonçalo Ferreira
                last edited by

                @Gonçalo-Ferreira if i dont use "sudo make" it gives me permission denied on open the port

                robert-hhR 1 Reply Last reply Reply Quote 0
                • robert-hhR Offline
                  robert-hh @Gonçalo Ferreira
                  last edited by

                  @Gonçalo-Ferreira sudo uses other environment variables. So you are back to the old error. For port access you have to add you user name to a group with the name dialout. Ask google how to do that.

                  rcolisteteR 1 Reply Last reply Reply Quote 1
                  • rcolisteteR Offline
                    rcolistete @robert-hh
                    last edited by rcolistete

                    For Ubuntu and other Debian-like Linux :

                    $ sudo usermod -a -G dialout <username>
                    

                    My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

                    1 Reply Last reply Reply Quote 1

                    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