Skip to content

2.5.0-beta3 doesn't compile with Generic ESP8266 Modules #5697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
4Source opened this issue Jan 30, 2019 · 7 comments
Closed

2.5.0-beta3 doesn't compile with Generic ESP8266 Modules #5697

4Source opened this issue Jan 30, 2019 · 7 comments

Comments

@4Source
Copy link

4Source commented Jan 30, 2019

Basic Infos

  • [ X ] This issue complies with the issue POLICY doc.
  • [ X ] I have read the documentation at readthedocs and the issue is not addressed there.
  • [ X ] I have tested that the issue is present in current master branch (aka latest git).
  • [ X ] I have searched the issue tracker for a similar issue.
  • [ X ] If there is a stack dump, I have decoded it.
  • [ X ] I have filled out all fields below.

Platform

  • Hardware: [ESP-12]
  • Core Version: [30.01.19]
  • Development Env: [Arduino]
  • Operating System: [Windows]

Settings in IDE

  • Module: [Generic ESP8266 Module]
  • Flash Mode: [qio]
  • Flash Size: [1MB]
  • lwip Variant: [v2 Lower Memory]
  • Reset Method: [ck]
  • Flash Frequency: [40Mhz]
  • CPU Frequency: [80Mhz]
  • Upload Using: [SERIAL]
  • Upload Speed: [115200]

Problem Description

Didnt compile with latest version 2.5.0-beta3. Previously I used Version 2.4.2 every thing works fine.
Error shown:
exec: "cmd.exe": executable file not found in% PATH%
Compile Error for the Board Generic ESP8266 Modules.

MCVE Sketch

Exampel/ESP8266/Blink.ino
or all other tested programms

@lrmoreno007
Copy link
Contributor

lrmoreno007 commented Jan 30, 2019

It does not seem the same problem, but check this please:

https://github.com/esp8266/Arduino/blob/master/doc/faq/a04-board-generic-is-unknown.rst

You installed with Board Manager or from Git?

@lrmoreno007
Copy link
Contributor

lrmoreno007 commented Jan 30, 2019

Ok, forget my last comment.

The most common problem is that the user you use in Windows does not have enough privileges to execute "cmd.exe". Run Arduino IDE as Administrator and it should work, or elevate your user privileges.

Another reason may be that really the path to cmd.exe is not in your %PATH% environment variable, check your "System" environment variable and add %SystemRoot%\system32.
https://helpdeskgeek.com/windows-10/add-windows-path-environment-variable/

Another reason is that the cmd.exe file does not really exist (search it in %SystemRoot%\system32), in which case your Windows is corrupt for some reason. You can try copying cmd.exe from another computer with the same Windows version or reinstall Windows.

@devyte
Copy link
Collaborator

devyte commented Jan 31, 2019

This is either a problem in your Windows, or a problem with your installation. I suggest a clean install from scratch of the Arduino IDE and then of this core. If that doesn't work, you'll need help from someone who knows a bit about how Windows works to figure out why cmd.exe isn't found. I suggest seeking help at esp8266.com or stackoverflow.

Either way, it's not a problem in the core hosted in this repo. Closing.

@devyte devyte closed this as completed Jan 31, 2019
@zoomx
Copy link

zoomx commented Feb 19, 2019

I got the same error. Core 2.5.0, Windows Seven
The solution, for me, was to delete all folders in Temp (C:\Users<YourUsername>\AppData\Local\Temp) because enabling verbose output during compilation I noticed that the compiler used a folder with compiled binaries of another sketch.

It's not a PATH problem, I have not C:\Windows\system32 in my path and it works.

@zoomx
Copy link

zoomx commented Feb 20, 2019

Further investigations.

In 2.4.2 core platform.txt has this line

## windows-compatible version without git

in 2.5.0 core platform.txt there are these lines

## windows-compatible version without git
recipe.hooks.core.prebuild.1.pattern.windows=cmd.exe /c rem cannot sign on windows

in 2.5.6-Dev core platform.txt these lines where removed again

So I was wrong, I need C:\Windows\system32 only for 2.5.0 but it is not a Windows problem. It was changed something between cores <=2.4.2 and 2.5.0 that need cmd.exe.
If I put a comment on recipe.hooks.core...... I get an error that python is not in my PATH.

@d-a-v
Copy link
Collaborator

d-a-v commented Feb 20, 2019

Please follow #5792

@4Source
Copy link
Author

4Source commented Feb 23, 2019

You installed with Board Manager or from Git?

I installed with Board Manager.

Thanks for all your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants