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

Board is unknown with Git version and 1.6.7 #1387

Closed
networxnet opened this Issue Jan 8, 2016 · 25 comments

Comments

Projects
None yet
@networxnet

networxnet commented Jan 8, 2016

When i use Git version with 1.6.7 as described in the newest read.me i still have
"Board nodemcuv2 (platform esp8266, package esp8266) is unknown" error.

For my understanding it should work with 1.6.7 now?!

Can somebody please verfiy.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@Links2004

This comment has been minimized.

Show comment
Hide comment
@Links2004

Links2004 Jan 8, 2016

Collaborator

check your arduino dir you may have staring and stable mixed

Collaborator

Links2004 commented Jan 8, 2016

check your arduino dir you may have staring and stable mixed

@networxnet

This comment has been minimized.

Show comment
Hide comment
@networxnet

networxnet Jan 8, 2016

C:\Program Files (x86)\Arduino only?

networxnet commented Jan 8, 2016

C:\Program Files (x86)\Arduino only?

@Links2004

This comment has been minimized.

Show comment
Hide comment
@Links2004

Links2004 Jan 8, 2016

Collaborator

some think like: C:\Users[username]\AppData\Roaming\Arduino15\packages\esp8266\hardware

Collaborator

Links2004 commented Jan 8, 2016

some think like: C:\Users[username]\AppData\Roaming\Arduino15\packages\esp8266\hardware

@networxnet

This comment has been minimized.

Show comment
Hide comment
@networxnet

networxnet Jan 8, 2016

Sorry maybe a stupid question but i'm confused now. Readme is a bit minimalistic at this part and says:

Install Arduino 1.6.7
Go to Arduino directory
Clone this repository into hardware/esp8266com/esp8266 directory (or clone it elsewhere and create a symlink)

What is the full path ?
C:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266
or
C:\Users[username]\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266com\esp8266

networxnet commented Jan 8, 2016

Sorry maybe a stupid question but i'm confused now. Readme is a bit minimalistic at this part and says:

Install Arduino 1.6.7
Go to Arduino directory
Clone this repository into hardware/esp8266com/esp8266 directory (or clone it elsewhere and create a symlink)

What is the full path ?
C:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266
or
C:\Users[username]\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266com\esp8266

@andig

This comment has been minimized.

Show comment
Hide comment
@andig

andig Jan 8, 2016

Contributor

Duplicate of #1377 ?

Contributor

andig commented Jan 8, 2016

Duplicate of #1377 ?

@igrr

This comment has been minimized.

Show comment
Hide comment
@igrr

igrr Jan 10, 2016

Member

The issue seems to come from different FQBN's when using boards manager package version and git version.
In boards manager package, FQBN is esp8266:esp8266:nodemcuv2.
In git version, if you follow instructions in readme, it will be esp8266com:esp8266:nodemcuv2.
So if Arduino has saved the latest board selection as esp8266:esp8266:nodemcuv2, then once you install git version, IDE will no longer be able to find the board. I think selecting a different board (like one of the AVR boards) and then selecting NodeMCU again should fix this.

Regarding the installation directory, you should place the git copy into Arduino program directory (which may be in Program Files or in another place, depending on where you have placed your copy of Arduino software).

The path mentioned by @Links2004 is where Arduino IDE places downloaded boards manager packages itself. If you use git version, make sure you don't have the esp8266 package in that directory, or it will actually be used instead of your git copy.

Member

igrr commented Jan 10, 2016

The issue seems to come from different FQBN's when using boards manager package version and git version.
In boards manager package, FQBN is esp8266:esp8266:nodemcuv2.
In git version, if you follow instructions in readme, it will be esp8266com:esp8266:nodemcuv2.
So if Arduino has saved the latest board selection as esp8266:esp8266:nodemcuv2, then once you install git version, IDE will no longer be able to find the board. I think selecting a different board (like one of the AVR boards) and then selecting NodeMCU again should fix this.

Regarding the installation directory, you should place the git copy into Arduino program directory (which may be in Program Files or in another place, depending on where you have placed your copy of Arduino software).

The path mentioned by @Links2004 is where Arduino IDE places downloaded boards manager packages itself. If you use git version, make sure you don't have the esp8266 package in that directory, or it will actually be used instead of your git copy.

@igrr

This comment has been minimized.

Show comment
Hide comment
@igrr

igrr Feb 29, 2016

Member

@networxnet any feedback?

Member

igrr commented Feb 29, 2016

@networxnet any feedback?

@tectiv3

This comment has been minimized.

Show comment
Hide comment
@tectiv3

tectiv3 Mar 23, 2016

I have the same issue:

Board generic (platform esp8266, package esp8266) is unknown
Error compiling for board Generic ESP8266 Module.

OSX Arduino 1.6.8, 2.1 stable or 2.0 - doesn't matter. But folder Documents/Arduino/Hardware is empty.

tectiv3 commented Mar 23, 2016

I have the same issue:

Board generic (platform esp8266, package esp8266) is unknown
Error compiling for board Generic ESP8266 Module.

OSX Arduino 1.6.8, 2.1 stable or 2.0 - doesn't matter. But folder Documents/Arduino/Hardware is empty.

@ericcastro

This comment has been minimized.

Show comment
Hide comment
@ericcastro

ericcastro Apr 2, 2016

having the same issue in Mac OS X

ericcastro commented Apr 2, 2016

having the same issue in Mac OS X

@anhhuy0501

This comment has been minimized.

Show comment
Hide comment
@anhhuy0501

anhhuy0501 Apr 3, 2016

I have same issue on Windows 10, Arduino 1.6.8, Installing with Boards Manager. Version 2.1 stable or -rc2 is the same. The error when compile:

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\nguyen\AppData\Local\Arduino15\packages" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\nguyen\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\nguyen\Documents\Arduino\libraries" -fqbn=esp8266:esp8266:generic:UploadTool=esptool,CpuFrequency=80,FlashFreq=40,FlashMode=dio,UploadSpeed=115200,FlashSize=512K64,ResetMethod=ck,Debug=Disabled,DebugLevel=None____ -ide-version=10608 -build-path "C:\Users\nguyen\AppData\Local\Temp\buildb2853698f701ebc78fb285fce0ae6bdb.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\nguyen\Documents\Arduino\read_flash_id\read_flash_id.ino"

Board generic (platform esp8266, package esp8266) is unknown
Error compiling for board Generic ESP8266 Module.

It was ok when I use it in the Arduino 1.6.7. The problem appear when upgrade to 1.6.8. There is no folder name
C:\Users[username]\AppData\Roaming\Arduino15\packages\esp8266\hardware
or:
C:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266

Any suggestion is appreciate.

anhhuy0501 commented Apr 3, 2016

I have same issue on Windows 10, Arduino 1.6.8, Installing with Boards Manager. Version 2.1 stable or -rc2 is the same. The error when compile:

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\nguyen\AppData\Local\Arduino15\packages" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\nguyen\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\nguyen\Documents\Arduino\libraries" -fqbn=esp8266:esp8266:generic:UploadTool=esptool,CpuFrequency=80,FlashFreq=40,FlashMode=dio,UploadSpeed=115200,FlashSize=512K64,ResetMethod=ck,Debug=Disabled,DebugLevel=None____ -ide-version=10608 -build-path "C:\Users\nguyen\AppData\Local\Temp\buildb2853698f701ebc78fb285fce0ae6bdb.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\nguyen\Documents\Arduino\read_flash_id\read_flash_id.ino"

Board generic (platform esp8266, package esp8266) is unknown
Error compiling for board Generic ESP8266 Module.

It was ok when I use it in the Arduino 1.6.7. The problem appear when upgrade to 1.6.8. There is no folder name
C:\Users[username]\AppData\Roaming\Arduino15\packages\esp8266\hardware
or:
C:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266

Any suggestion is appreciate.

@anhhuy0501

This comment has been minimized.

Show comment
Hide comment
@anhhuy0501

anhhuy0501 Apr 3, 2016

I lucky solve the problem by:

Go to the folder:

C:\Users\[username]\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\

In this folder, in my case, there are 2 version folder. I delete the older ver folder and everything working fine again.

anhhuy0501 commented Apr 3, 2016

I lucky solve the problem by:

Go to the folder:

C:\Users\[username]\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\

In this folder, in my case, there are 2 version folder. I delete the older ver folder and everything working fine again.

@matroll

This comment has been minimized.

Show comment
Hide comment
@matroll

matroll Apr 5, 2016

thanks @anhhuy0501 !!
i'be been getting frustrated with this for about an hour and was about to go back to 1.6.6
glad i found this post - cheers

matroll commented Apr 5, 2016

thanks @anhhuy0501 !!
i'be been getting frustrated with this for about an hour and was about to go back to 1.6.6
glad i found this post - cheers

@grantnlee

This comment has been minimized.

Show comment
Hide comment
@grantnlee

grantnlee Apr 8, 2016

For reference... Had the same problem with my boards manager installation using IDE 1.6.8 on OSX. I had previously used several older versions like 1.6.5 and 1.6.5 on the same system. It was not obvious to me how or where to delete the ESP8266 board files. My setup points my sketches to a Dropbox folder, but previously had them in Downloads. Tried using board manager to auto remove and replace the ESP8266 board, tried doing so with restarts in between actions as well as selecting an UNO in between remove and replace... Notta. At one point I even had two complete listings of the various ESP8266 board within the IDE drop down menus. Ended up manually deleting anything related to hardware:ESP8266 within 1.) my Documents folder (had Arduino and Arduinosketches folders) as well as 2.) Dropbox:Arduino and 3.) also the hidden Arduino15 folder. Once all traces were remove, then I reinstalled with boards manager and all worked right away...

grantnlee commented Apr 8, 2016

For reference... Had the same problem with my boards manager installation using IDE 1.6.8 on OSX. I had previously used several older versions like 1.6.5 and 1.6.5 on the same system. It was not obvious to me how or where to delete the ESP8266 board files. My setup points my sketches to a Dropbox folder, but previously had them in Downloads. Tried using board manager to auto remove and replace the ESP8266 board, tried doing so with restarts in between actions as well as selecting an UNO in between remove and replace... Notta. At one point I even had two complete listings of the various ESP8266 board within the IDE drop down menus. Ended up manually deleting anything related to hardware:ESP8266 within 1.) my Documents folder (had Arduino and Arduinosketches folders) as well as 2.) Dropbox:Arduino and 3.) also the hidden Arduino15 folder. Once all traces were remove, then I reinstalled with boards manager and all worked right away...

@anhhuy0501

This comment has been minimized.

Show comment
Hide comment
@anhhuy0501

anhhuy0501 Apr 8, 2016

@matroll U welcom. :)

About the Arduino 15 folder, in Arduino ver 1.6.8, I see that we could find it by: File->Preferences, in the bottom of the References window, there is a link like this:
C:\Users\[user]\AppData\Local\Arduino15\preferences.txt.

Hope that will help.

anhhuy0501 commented Apr 8, 2016

@matroll U welcom. :)

About the Arduino 15 folder, in Arduino ver 1.6.8, I see that we could find it by: File->Preferences, in the bottom of the References window, there is a link like this:
C:\Users\[user]\AppData\Local\Arduino15\preferences.txt.

Hope that will help.

@biol75

This comment has been minimized.

Show comment
Hide comment
@biol75

biol75 May 18, 2016

Thanks grantnlee for this, I had two directories in ~/Library/Arduino15/packages/esp8266/hardware/esp8266/

I deleted 2.2.0 and left 2.3.0-rc1and then all compiled ok

biol75 commented May 18, 2016

Thanks grantnlee for this, I had two directories in ~/Library/Arduino15/packages/esp8266/hardware/esp8266/

I deleted 2.2.0 and left 2.3.0-rc1and then all compiled ok

@kozoke

This comment has been minimized.

Show comment
Hide comment
@kozoke

kozoke May 21, 2016

Thanks @biol75 and others. removing 2.2.0 worked for me too.

kozoke commented May 21, 2016

Thanks @biol75 and others. removing 2.2.0 worked for me too.

@culbeda

This comment has been minimized.

Show comment
Hide comment
@culbeda

culbeda Jun 25, 2016

I had multiple versions of the libraries under %userprofile%\Appdata\Local\Arduino15\packages\esp8266\hardware. Removing one fixed the issue immediately for me.

(Note: Uninstalling and reinstalling the boards in board manager won't fix it. Uninstalling and reinstalling the Arduino IDE won't fix it. You have to remove the 2nd version in the path above to fix, even on 1.6.9.

culbeda commented Jun 25, 2016

I had multiple versions of the libraries under %userprofile%\Appdata\Local\Arduino15\packages\esp8266\hardware. Removing one fixed the issue immediately for me.

(Note: Uninstalling and reinstalling the boards in board manager won't fix it. Uninstalling and reinstalling the Arduino IDE won't fix it. You have to remove the 2nd version in the path above to fix, even on 1.6.9.

@tablatronix

This comment has been minimized.

Show comment
Hide comment
@tablatronix

tablatronix Jun 29, 2016

Contributor

Same problem, must be a bug in board manager

Contributor

tablatronix commented Jun 29, 2016

Same problem, must be a bug in board manager

@tectiv3

This comment has been minimized.

Show comment
Hide comment
@tectiv3

tectiv3 Jul 2, 2016

I switched to platformio and never looked back

tectiv3 commented Jul 2, 2016

I switched to platformio and never looked back

@electronicsguy

This comment has been minimized.

Show comment
Hide comment
@electronicsguy

electronicsguy Jul 19, 2016

@culbeda Thanks...that fixed it!

electronicsguy commented Jul 19, 2016

@culbeda Thanks...that fixed it!

@aguirre689

This comment has been minimized.

Show comment
Hide comment
@aguirre689

aguirre689 Dec 8, 2016

You are a genious ! It works perfect. I lost 2 days looking for the problem.
I use Windows 7. I had an "installed" version of Arduino 1.5.4.
Since that version worked well with all my previous sketches, I did not want to change it. Then I installed Arduino 1.6.7 "as portable". When I followed your advice, in the directory of the installed version were the two folders mentioned. I deleted the "old" and everything worked ok. Thank you very much.

aguirre689 commented Dec 8, 2016

You are a genious ! It works perfect. I lost 2 days looking for the problem.
I use Windows 7. I had an "installed" version of Arduino 1.5.4.
Since that version worked well with all my previous sketches, I did not want to change it. Then I installed Arduino 1.6.7 "as portable". When I followed your advice, in the directory of the installed version were the two folders mentioned. I deleted the "old" and everything worked ok. Thank you very much.

@Bruce-Ferjulian

This comment has been minimized.

Show comment
Hide comment
@Bruce-Ferjulian

Bruce-Ferjulian Dec 11, 2016

I got myself stuck here too, I am on OSX.

Tried to take the staging version to poke at spiffs filesystem. After trying to revert to the stable version I began to receive the same message.

To fix this I did the following.

  1. Check what is in your library [ ls ~//library/Arduino15/packages/esp8266/hardware/esp8266 ].
  2. In my case there were two libraries [ 2.3.0 && 2.3.0-rc2 ]
  3. I removed unstable one and kept the stable [ 2.3.0 ] version and I was back in business.

Bruce-Ferjulian commented Dec 11, 2016

I got myself stuck here too, I am on OSX.

Tried to take the staging version to poke at spiffs filesystem. After trying to revert to the stable version I began to receive the same message.

To fix this I did the following.

  1. Check what is in your library [ ls ~//library/Arduino15/packages/esp8266/hardware/esp8266 ].
  2. In my case there were two libraries [ 2.3.0 && 2.3.0-rc2 ]
  3. I removed unstable one and kept the stable [ 2.3.0 ] version and I was back in business.
@ArsenioDev

This comment has been minimized.

Show comment
Hide comment
@ArsenioDev

ArsenioDev Dec 18, 2016

Confirmed, removing the 2.1.0 board file fixed the compile issue for me too

ArsenioDev commented Dec 18, 2016

Confirmed, removing the 2.1.0 board file fixed the compile issue for me too

@devyte

This comment has been minimized.

Show comment
Hide comment
@devyte

devyte Oct 19, 2017

Collaborator

Switching between package manager and git version is documented. Closing.

Collaborator

devyte commented Oct 19, 2017

Switching between package manager and git version is documented. Closing.

@devyte devyte closed this Oct 19, 2017

@gearsngenes

This comment has been minimized.

Show comment
Hide comment
@gearsngenes

gearsngenes Nov 5, 2017

This suggestion is remarkable!!!
BTW in that folder: C:\Users\Owner\AppData\Local\Arduino15\packages\esp8266
there should be only ONE FOLDER preferably with version 2.3.

Then it works like a charm.

gearsngenes commented Nov 5, 2017

This suggestion is remarkable!!!
BTW in that folder: C:\Users\Owner\AppData\Local\Arduino15\packages\esp8266
there should be only ONE FOLDER preferably with version 2.3.

Then it works like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment