I want to upload a sketch to an NodeMCU Amica with an Esp8266 module on it.
When uploading the sketch (from examples - blink) I get the following error message:
Error in command line, need pyserial path as 1st arg and esptool path as 2nd.
I have no idea what it means or how I can solve the problem.
I hope somebody is able to help me out of this.
Thank you.
Check the checkbox next to "Show verbose output during: compilation"
Check the checkbox next to "Show verbose output during: upload
Click "OK"
Sketch > Upload
After the upload fails, you'll see a button on the right side of the orange bar "Copy error messages" (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button.
In a forum reply here, click on the reply field.
Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
Press "Ctrl + V". This will paste the upload output between the code tags.
Move the cursor outside of the code tags before you add any additional text to your reply.
What is your reason for having the ESP8266 core for Arduino installed at /home/lodv/arduino-1.8.8/hardware/esp8266com/esp8266? This indicates you did not use the standard, reliable, and easy Boards Manager installation process like the other 99.99% of the users of that package.
As far as I know I used the board manager. I don’t know any other way. Can I delete this library and install it again using the boardmanager?
Just delete the /hardware/esp8266com/esp8266 directory?
Thanks.
Yes, I think this is the best thing to do. The output does indicate that you had also installed the ESP8266 core via Boards Manager at one time. Delete the /home/lodv/arduino-1.8.8/hardware/esp8266com folder, restart the Arduino IDE, and then try compiling again. Please be very careful when deleting things on your computer. When in doubt, back up!
This doesn't solve the problem. Now Arduino doesn't start anymore. I have placed the directory back. Arduino starts, but same problem.
All the manuals I read have the same instructions:
That's how I installed it.
Is this wrong?
Which package do I need from the library manager in the IDE?
Do I have to delete the json line from the Additional Board Manager URL field?
Could the problem be in this file (see attachment)?
The hidden directory .arduino15/preferences.txt.
I think the cause of the Arduino IDE not starting after you delete that folder is that something went wrong with your Boards Manager installation of the ESP8266 core for Arduino. Once you delete the manual installation you did at /home/lodv/arduino-1.8.8/hardware/esp8266com, the Boards Manager installed package at ~/.arduino15/packages/esp8266 is used and causes a problem. Please do this:
Delete the /home/lodv/arduino-1.8.8/hardware/esp8266com folder
Delete all the files except for preferences.txt in ~/.arduino15
Delete ~/.arduino15/packages/esp8266
(In the Arduino IDE) Tools > Board > Boards Manager
Wait for downloads to finish.
Scroll down through the available packages until you see "esp8266 by ESP8266 Community". Click on it.
Click "Install".
Wait for installation to finish.
Click "Close".
Select and ESP8266 board from the Tools > Board menu.
Compile a sketch to see if it's working now.
lodevries:
All the manuals I read have the same instructions:
No, that's not wrong. That's the best way to install it, unless you are contributing development work to the ESP8266 core for Arduino or helping as a beta tester.
lodevries:
Do I have to delete the json line from the Additional Board Manager URL field?