ESP8266 - Can't upload project
-
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
- Note: at this point, I can write python in the console, but when I click the "open device in file explorer" I get this:
- 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:
- but when I click the download button here, my code has disappeared from
boot.py
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 thisCan anyone help me with this please?
Thanks in advance
- connected the device and loaded micropython on it successfully
-
@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/
-
This post is deleted!
-
@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.