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

    ESP8266 - Can't upload project

    Scheduled Pinned Locked Moved Pymakr
    4 Posts 2 Posters 57 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.
    • P Offline
      Philippe Grenon
      last edited by Philippe Grenon

      Board: NodeMCU with ESP-8266 (CH340g)
      TLDR: I'm trying to upload scripts from Visual Studio Code to this board using Pymakr and it's not working.

      I followed the steps at https://docs.micropython.org/en/latest/esp8266/tutorial/intro.html in order to flash micropython on the board.
      Here is what I did, steps by steps:

      • connected the device and loaded micropython on it successfully
        • I used this version https://micropython.org/download/esp8266/ since the board has 4mb flash, but to be sure, I also tested with the 1mb version and with the 512kb version. same result.
      • opened VS code with Pymakr plugin installed and created a pymakr project
        • af8846e5-5b48-4de2-b90e-c73c84ecd7a1-image.png
        • Note: at this point, I can write python in the console, but when I click the "open device in file explorer" I get this: 11b8949f-fa7c-48e9-b75b-6bdd05ab01e4-image.png
      • modified the code inside boot.py to add a connect method, following the tutorial here https://docs.micropython.org/en/latest/esp8266/tutorial/network_basics.html
      • I save the changes and hit this button to upload: 45a76765-06f5-4348-ac38-418ac3be982d-image.png
      • but when I click the download button here, my code has disappeared from boot.py 28103f0a-0834-40f1-b776-931af00feb52-image.png

      Also, if I add a file main.py to the project and press the "Sync project to device", nothing is uploaded because I only see this7b9ac179-1df3-4b35-8302-f66f71ec7817-image.png

      Can anyone help me with this please?

      Thanks in advance

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

        @Philippe-Grenon
        ESP8266 is not supported type of controller here.
        You probably go to wrong web page as you have linked main micropython page, back to that page and ask there. Here are pycom product which use ESP32.
        You can use ESP32 from different vendors but then you must build your custom image (it is easy btw), but for sure not ESP8266.

        think about people first, then computers

        P 1 Reply Last reply Reply Quote 2
        • P Offline
          Philippe Grenon
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • P Offline
            Philippe Grenon @livius
            last edited by

            @livius Thanks a lot!! That clears it up haha. I guess these tutorial is erroneous then https://randomnerdtutorials.com/micropython-esp32-esp8266-vs-code-pymakr/ and https://microcontrollerslab.com/micropython-esp32-esp8266-program-vs-code-pymakr/

            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