Arduino: Board d1 (platform esp8266, package esp8266) is unknown

Created on 19 Dec 2015  Â·  57Comments  Â·  Source: esp8266/Arduino

Installed via the Board manager on Arduino 1.6.7

Can't compile any of the samples.

I used this for the board manager to get the wemos D1 board working:
http://www.wemos.cc/versions/77428ba/package_esp8266com_index.json

Am I better off with:
http://arduino.esp8266.com/stable/package_esp8266com_index.json ?

As the Wemos D1 wifi board esentially has NodeMCU thingy on it...

What should I do?

troubleshooting

Most helpful comment

All 57 comments

Are you getting this error when you are using boards manager package from wemos.cc or from arduino.esp8266.com?

Hi,

I get it when I install it via the board manager, using the link provided by wemos.cc

Does that make sense?

If you get an error with a link provided by wemos.cc, then perhaps you should raise an issue with them?

That said, we do have "Wemos D1" board option in the latest 2.0.0 stable version (http://arduino.esp8266.com/stable/package_esp8266com_index.json). Compiling sketches with this board selected in "Tools > Board" menu seems to work.

I just installed the v 2.0.0 stable version you mentioned on my Mac and that seemed to work and compile.

Don't have the board here with me to upload it to test it.

Where do I take up the issue with wemos.cc?

It would probably help them if I can help them solve bugs like these.

Why do they not provide your link, rather than theirs, as you do have the D1 and D1 Mini boards in your list?

Thanks for the help!

Shaun O'Reilly

The first line on http://www.wemos.cc/wiki/doku.php?id=en:arduino_get_started says:

The WeMos D1 & D1 mini is join to esp8266/Arduino now

I guess this is supposed to mean that these boards are supported in our project now. Perhaps @wemos can clarify this further.

I will take it up with them, as their link installs esp8266/1.6.5-20151115-77428ba/libraries/esp8266:

This will help other noobs like me in the future to get the correct libraries.

You are probably the most helpful person in the entire esp8266/Arduino space, I have seen your dedication in the other posts.

Well done!

I suggested the change on the wiki page.

Hope that will help future visitors.

thank you @webwarrior @igrr

@igrr
I delete that word in my wiki.
sorry, my poor english.
I write that words in my wiki, just mean you can find D1 boards in esp8266/arduino

you are welcome.

I have the "NodeMCU ESP8266 WiFi V1.0 Rev 2.0 Dev Board Lua" , as well as the "Based ESP8266 WeMos D1 WiFi UNO for Arduino Compatible Development Board". Both stopped allowing me to update them via the USB cable after I tested one of my sketches on both, think it had an overload bug to to a big json string.

I can now update the NodeMCU ESP8266 board luckily when I press the flash button, but not otherwise.

The D1 board does not have that feature, and I am unable to update it via the usb cable now.
Is there other software that can help me out of that situation?

@wemos , I thought that sentence was useful for newcomers.

But if you do not need it there, it does not matter. Your english is not too bad!

do you setup usb-uart driver from my website

Will do, thanks.

@wemos, The problem just got bigger:
error: cannot access /dev/cu.usbmodem1421 - might be a brick now?

Where do I continue this thread?

esptool v0.4.6 - (c) 2014 Ch. Klippel [email protected]
setting board to nodemcu
setting baudrate from 115200 to 921600
setting port from /dev/tty.usbserial to /dev/cu.usbmodem1421
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
stat /var/folders/wq/1r7wy_ms37lfgwf5d_vdz3pr0000gn/T/build3b90184a28127009d57a138389f76d18.tmp/Blink.ino.bin success
opening port /dev/cu.usbmodem1421 at 921600
error: cannot access /dev/cu.usbmodem1421

error: espcomm_open failed

do you use mac osx?

yes

esptool v0.4.6 - (c) 2014 Ch. Klippel [email protected]
setting board to nodemcu
setting baudrate from 115200 to 921600
setting port from /dev/tty.usbserial to /dev/cu.usbmodem1421
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
stat /Users/shaunoreilly/Dropbox/Arduino_Dev/nodemcu_float_0.9.6-dev_20150704.bin success
opening port /dev/cu.usbmodem1421 at 921600
error: cannot access /dev/cu.usbmodem1421

error: espcomm_open failed

I can see the lights on the board - the "on" led and "SCK"

Windows does pick up the usb port.
Will try it on there

Can you find any port in Arduino IDE [Tools]->[port]?

And what is your mac osx version?

10.11.2

On Windows I get this:

D:DownloadsArduino>esptool.exe -vv -cd nodemcu -cb 921600 -cp COM4 -ca 0x00000 -cf nodemcu_float_0.9.6-dev_20150704.bin
esptool v0.4.6 - (c) 2014 Ch. Klippel [email protected]
setting board to nodemcu
setting baudrate from 115200 to 921600
setting port from COM1 to COM4
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
stat nodemcu_float_0.9.6-dev_20150704.bin success
error: Failed to open COM4
error: espcomm_open failed

It definitely does not want to communicate over the USB port anymore.
Should the SCK LED be permanently on?

where d1 board do you buy from?

sorry, @webwarrior, it may be not produce from wemos.cc
this is my board:
d1_1

It may be some hardware error with CH340G IC or ESP-12F module

Our board use new logo ESP-12F module from 2015-10
logo

It does not have that logo, so, I assume it is not yours....

I will take it up with the ebay seller, thx.

^_^

He should not be using the wemos name in his ebay listing, as he can get in trouble for that.

I have lodged an enquiry with ebay and Paypal, and he is going to get in allot of trouble if he is selling fakes!

Shaun

Thank you for your supporting.

It is the least I can do for the IOT community....

Is this another fake?

http://store.cutedigi.com/esp8266-based-arduino-uno-like-wifi-board-d1/

Do you supply your boards through an online store?

Shaun

Awesome! thx

@wemos, Did you ever make boards that did not have your logo at the back?

image

image

It's not my board.

Cool, I have reported it with Ebay...

I have the same problems, board looks the same. Some times it uploads sketches sometimes not. I also got it in ebay.

@otuk, I reported the listing with eBay, and I believe I am going to get a refund for the fake board.
If you do the same, then we can nail the fake producing criminals....

It is extremely frustration when it does that... I just wish there was a way to set one pin high / low, to force a flash to memory...., like on the NodeMCU board with the "flash" button...

Hi I have what looks like a genuine WeMos.cc board and can compile the Hello World example but when i try a down load I get this error.

Sketch uses 220,852 bytes (21%) of program storage space. Maximum is 1,044,464 bytes.
Global variables use 31,438 bytes (38%) of dynamic memory, leaving 50,482 bytes for local variables. Maximum is 81,920 bytes.
java.io.IOException: Cannot run program "C:Arduinoarduino-1.6.6hardwareesp8266comesp8266/tools/esptool/esptool.exe": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:26)
at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:113)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:157)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
at processing.app.Sketch.upload(Sketch.java:1178)
at processing.app.Sketch.exportApplet(Sketch.java:1152)
at processing.app.Sketch.exportApplet(Sketch.java:1124)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2452)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 9 more

Any one with any input please.

Sounds like the Port is busy, or the incorrect port is selected... Also try download the nightly build of Arduino Windows Software, and use 1.6.7... I had more luck with that...

Run this on command line, and see what you get "C:Arduinoarduino-1.6.6hardwareesp8266comesp8266/tools/esptool/esptool.exe"

1ac1a404-a837-11e5-95fb-a44920ab06ac

Please help me, Im Using WeMos D1 Board like in picture, I have install : http://arduino.esp8266.com/stable/package_esp8266com_index.json
In board manager I choose " WeMos D1 R2 & Mini " and get error

Build options changed, rebuilding all
In file included from c:documents and settingsadminlocal settingsapplication dataarduino15packagesesp8266toolsxtensa-lx106-elf-gcc1.20.0-26-gb404fb9-2xtensa-lx106-elfincludec++4.8.2md5-538a67e47bbb0210db4c51b562ce31fbmemory:63:0,

from C:Documents and SettingsadminLocal SettingsApplication DataArduino15packagesesp8266hardwareesp82662.2.0coresesp8266Esp.cpp:24:

c:documents and settingsadminlocal settingsapplication dataarduino15packagesesp8266toolsxtensa-lx106-elf-gcc1.20.0-26-gb404fb9-2xtensa-lx106-elfincludec++4.8.2bitsallocator.h:46:75: fatal error: bits/c++allocator.h: No such file or directory

#include // Define the base class to std::allocator.

                                                                       ^

compilation terminated.

exit status 1
Error compiling for board WeMos D1 R2 & mini.

Please help me what must I do ? Thks

Im no see WeMos D1 board at Board Manager, Just see " WeMos D1 R2 & Mini " and WeMos D1 (Retired). I have try twice but still get error code:

Build options changed, rebuilding all
In file included from c:documents and settingsadminlocal settingsapplication dataarduino15packagesesp8266toolsxtensa-lx106-elf-gcc1.20.0-26-gb404fb9-2xtensa-lx106-elfincludec++4.8.2md5-538a67e47bbb0210db4c51b562ce31fbmemory:63:0,

from C:Documents and SettingsadminLocal SettingsApplication DataArduino15packagesesp8266hardwareesp82662.2.0coresesp8266Esp.cpp:24:

c:documents and settingsadminlocal settingsapplication dataarduino15packagesesp8266toolsxtensa-lx106-elf-gcc1.20.0-26-gb404fb9-2xtensa-lx106-elfincludec++4.8.2bitsallocator.h:46:75: fatal error: bits/c++allocator.h: No such file or directory

include // Define the base class to std::allocator.

compilation terminated.

exit status 1
Error compiling for board WeMos D1 R2 & mini.

Hi,

This is not made by WeMos, and is a dodgy version...

Mine got bricked and I could not reset it...

I filed a complain against Paypal and said the guy was selling fake boards
and got my money back.

I also went to all the ebay seller's listing of the board, and flagged them
as fake.

Where did you buy yours from?

On Sun, May 8, 2016 at 10:12 AM, yd6njk [email protected] wrote:

[image: 1ac1a404-a837-11e5-95fb-a44920ab06ac]
https://cloud.githubusercontent.com/assets/18176190/15095435/507d0d7e-14f0-11e6-956a-5e909f48bede.png

Please help me, Im Using WeMos D1 Board like in picture, I have install :
http://arduino.esp8266.com/stable/package_esp8266com_index.json
In board manager I choose " WeMos D1 R2 & Mini " and get error

Build options changed, rebuilding all
In file included from c:documents and settingsadminlocal
settingsapplication
dataarduino15packagesesp8266toolsxtensa-lx106-elf-gcc1.20.0-26-gb404fb9-2xtensa-lx106-elfincludec++4.8.2md5-538a67e47bbb0210db4c51b562ce31fbmemory:63:0,

from C:Documents and SettingsadminLocal SettingsApplication
DataArduino15packagesesp8266hardwareesp82662.2.0coresesp8266Esp.cpp:24:

c:documents and settingsadminlocal settingsapplication
dataarduino15packagesesp8266toolsxtensa-lx106-elf-gcc1.20.0-26-gb404fb9-2xtensa-lx106-elfincludec++4.8.2bitsallocator.h:46:75:
fatal error: bits/c++allocator.h: No such file or directory

include // Define the base class to std::allocator.

                                                                   ^

compilation terminated.

exit status 1
Error compiling for board WeMos D1 R2 & mini.

Please help me what must I do ? Thks

—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/esp8266/Arduino/issues/1251#issuecomment-217679459

Kind Regards,
Shaun O'Reilly
http://www.linkedin.com/profile/view?id=51406551&trk=tab_pro

Hi guys, recently i also got the same issue.

_Board d1_mini (platform esp8266, package esp8266) is unknown_

_Error compiling for board WeMos D1 R2 & mini._

unfortunatelly, mine got to work fine before.
here is my scenario

i got 2 laptop, which is running on Win 7 ultimate 32bit and Win 7 pro 64bit
Both using Arduino IDE 1.6.9
Both using the same method to get started on arduino IDE.
CH340G driver already installed and work fine in both laptop.
i can compile and upload basic sketch to it using the laptop with Win 7 32bit.
i just found out that my Wemos D1 R2 didn't seems to work on the laptop with Win 7 64bit OS.

not surer if the OS is the main problem.
but i will update if there is any significant improvement on solving this issue.

Cheers
Well

img_20160514_133843
wemos

SOLVED

as i thought before, it is not the OS problem.
but i realized that my User folder naming which caused the problem.
as in Linux, a folder is suggested to be named without any spaces

Refering to this
http://askubuntu.com/questions/398400/how-do-i-navigate-to-folders-with-spaces-in-their-names-i-get-no-such-file-or

well son

on the laptop i suspected before, i create a new User named "Other" to try if it work
other

and it works like a charm
berhasil

trying to add double quotes and backslash to my current User folder doesn't work
so the simplest way to solve this is to create a new user with name that doesn't contain any spaces.

try it and good luck

Cheers
Well

Hi. The fix above does not work for me. My sketchbook location is /home/paul/sketchbook and there are no spaces.

I use genuine D1 Mini which I bought from the Wemos shop on AliExpress.

I also get the error message

Board d1_mini (platform esp8266, package esp8266) is unknown

Error compiling for board WeMos D1 R2 & mini.

I am using Arduino IDE 1.6.10 on Ubuntu 14.0.4 LTS.
I have downloaded the boards package from http://arduino.esp8266.com/stable/package_esp8266com_index.json (v 2.3.0)

I was also unable to use IDE 1.6.7 for the same reason.

I still have IDE 1.6.5 installed and that will compile and upload to the Mini correctly. However, a sketch I am currently developing has problems and it has been suggested that I upgrade to the latest IDE.

Hi @PaulRB,

I am wondering if your are still facing Board d1_mini (platform esp8266, package esp8266) is unknown error on your Arduino IDE 1.6.7 / IDE 1.6.10 installations?

If so, have you tried https://github.com/esp8266/Arduino/issues/1387#issuecomment-204865028?

Exact folder location (for your Ubuntu 14.0.4 LTS or any other O/S) can be checked after opening _File > Preferences_ as described here.

I guess location of this folder may be different between your IDE 1.6.5 and IDE 1.6.7 / IDE 1.6.10 installations.

Krzysztof

amigo tenho o mesmo poblema nao atualizo a ide

Hi I can't upload to my new d1 mini from Arduino IDE 1.8.3. I am wondering is this because am running Win10 64bit Pro and Arduino is installed in C:Program Files (x86)Arduino but the sketch directory is C:UsersPerigalacticonDocumentsArduinosketches ??? The error is "error: espcomm_upload_mem failed". Thanks.

Sketches folder is configurable in preferences.

The one you have is communication error on upload. Try to reset shortly before upload starts, or erase_flash using esptool.

Odesláno z iPhonu


    1. 2017 v 4:26, perigalacticon notifications@github.com:

Hi I can't upload to my new d1 mini from Arduino IDE 1.8.3. I am wondering is this because am running Win10 64bit Pro and Arduino is installed in C:Program Files (x86)Arduino but the sketch directory is C:UsersPerigalacticonDocumentsArduinosketches ??? The error is "error: espcomm_upload_mem failed". Thanks.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Can anyone help here? I'm getting this error:
screenshot from 2018-02-27 17-06-01

signal: bad system call (core dumped)
Error compiling for board WeMos D1 R2 & mini.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dariopb picture dariopb  Â·  3Comments

SmartSouth picture SmartSouth  Â·  3Comments

hulkco picture hulkco  Â·  3Comments

mark-hahn picture mark-hahn  Â·  3Comments

mreschka picture mreschka  Â·  3Comments