cant able to upload node mcu code (esp 8266 wifi module)

129 views
Skip to first unread message

raktim

unread,
May 12, 2018, 2:51:32 AM5/12/18
to Developers
i cant able to upload any code in node mcu... i cant able to understand the error code... please give me the suggestion...
arduino version 1.8.5
esp8266 2.3.0
here is the error shows
Build options changed, rebuilding all
In file included from c:\programdata\matlab\supportpackages\r2017b\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\memory:62:0,

                 from C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266\Esp.cpp:24:

c:\programdata\matlab\supportpackages\r2017b\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:59:28: fatal error: bits/c++config.h: No such file or directory

 #include <bits/c++config.h>

                            ^

compilation terminated.

exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
i also tried to install higher versions od esp 8266, but there are so many option that i didnt know how to use.
so please give me a sollution. i f i am using esp 8266 2.4.1 version then the simple code af analog read is also not uploding.

William Westfield

unread,
May 13, 2018, 1:27:33 AM5/13/18
to devel...@arduino.cc
On May 11, 2018, at 11:51 PM, raktim <raktimp...@gmail.com> wrote:

> :\programdata\matlab\supportpackages\r2017b\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266

Sounds like a problem with matlab’s “Arduino support.”


> bits/c++config.h: No such file or directory

I had a similar problem (today!) where a “portable” install of ESP8266 wasn’t finding some files that should have been there. It worked fine when I used a non-portable install Arduino IDE with the same ESP8266 version. I assume that matlab is using something similar to the “portable” install. I’m trying to track that down, but it’s being “elusive.” :-(

However:
1) Not a “developer” class problem - try the forums.
2) Arduino currently doesn’t officially support any 8266 boards, and nodeMCU is not an “Arduino" board.
3) Probably matlab-specific anyway.

BillW/WestfW

Raktim Pratihar

unread,
May 13, 2018, 1:40:42 AM5/13/18
to devel...@arduino.cc
so what can i do now

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.

Dennis Lee Bieber

unread,
May 13, 2018, 10:02:21 AM5/13/18
to devel...@arduino.cc
On Sun, 13 May 2018 11:10:27 +0530, Raktim Pratihar
<raktimp...@gmail.com> declaimed the
following:

>so what can i do now
>
Talk to the people who provided the Matlab extension.


--
Wulfraed Dennis Lee Bieber AF6VN
wlf...@ix.netcom.com HTTP://wlfraed.home.netcom.com/

William Westfield

unread,
May 13, 2018, 2:20:21 PM5/13/18
to devel...@arduino.cc
On May 12, 2018, at 10:40 PM, Raktim Pratihar <raktimp...@gmail.com> wrote:

> so what can i do now

there is a thread that suggests that this can be caused by overly long path names containing “funny” characters…

https://github.com/esp8266/Arduino/issues/1631

Can you install a separate copy of the Arduino IDE not associated with MATLab?

BillW

William Westfield

unread,
May 13, 2018, 6:58:38 PM5/13/18
to devel...@arduino.cc

> https://github.com/esp8266/Arduino/issues/1631

Update: definitely can be caused by overly long/deep paths. (github updated with my example.)
Windows has a 260-byte limit, which gcc probably obeys.

And the needed include path will end up looking like:

> c:\programdata\matlab\supportpackages\r2017b\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\bin\../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/include/c++/4.8.2/xtensa-lx106-elf/bits/c++config.h

(269 characters!)

Someone submitted a gcc patch back in 2013 (https://gcc.gnu.org/ml/gcc-help/2013-05/msg00155.html ), but it doesn’t look like it was ever incorporated.

Newer versions of Window10 are supposed to have a feature you can turn on that eliminates the 260-character limit, but it doesn’t seem to help. Like I said, gcc probably does its own enforcement.

BillW

Raktim Pratihar

unread,
May 14, 2018, 2:57:07 AM5/14/18
to devel...@arduino.cc
i cant under stand what is the sollution.. please briefly describe it. do i need to uninstall matlab... ??
yeap i also made data acquisitions with matlab. so i need to download matlab arduino support package.

Raktim Pratihar

unread,
May 14, 2018, 2:58:05 AM5/14/18
to devel...@arduino.cc
i tried 3 versions of arduino installing from the older 2 versions but same problem there.

Adrian Godwin

unread,
May 14, 2018, 4:24:59 AM5/14/18
to Developers
Could you run it under Linux ? Might be simpler than getting the installation fixed.


To unsubscribe from this group and stop receiving emails from it, send an email to developers+unsubscribe@arduino.cc.

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+unsubscribe@arduino.cc.

Raktim Pratihar

unread,
May 14, 2018, 4:36:36 AM5/14/18
to devel...@arduino.cc
i need some time to setup linux in my laptop.
so after checking i will tell you the result.

Raktim

On Mon, 14 May 2018, 1:54 p.m. Adrian Godwin, <artg...@gmail.com> wrote:
Could you run it under Linux ? Might be simpler than getting the installation fixed.

On Mon, May 14, 2018 at 7:57 AM, Raktim Pratihar <raktimp...@gmail.com> wrote:
i tried 3 versions of arduino installing from the older 2 versions but same problem there.
On Mon, 14 May 2018, 12:26 p.m. Raktim Pratihar, <raktimp...@gmail.com> wrote:
i cant under stand what is the sollution.. please briefly describe it. do i need to uninstall matlab... ??
yeap i also made data acquisitions with matlab. so i need to download matlab arduino support package.

On Mon, 14 May 2018, 4:28 a.m. William Westfield, <wes...@mac.com> wrote:

> https://github.com/esp8266/Arduino/issues/1631

Update: definitely can be caused by overly long/deep paths. (github updated with my example.)
Windows has a 260-byte limit, which gcc probably obeys.

And the needed include path will end up looking like:

> c:\programdata\matlab\supportpackages\r2017b\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\bin\../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/include/c++/4.8.2/xtensa-lx106-elf/bits/c++config.h

(269 characters!)

Someone submitted a gcc patch back in 2013 (https://gcc.gnu.org/ml/gcc-help/2013-05/msg00155.html ), but it doesn’t look like it was ever incorporated.

Newer versions of Window10 are supposed to have a feature you can turn on that eliminates the 260-character limit, but it doesn’t seem to help.  Like I said, gcc probably does its own enforcement.

BillW

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.

Peter Feerick

unread,
May 14, 2018, 6:51:36 AM5/14/18
to devel...@arduino.cc
The issue as I understand it boils down to Windows having a legacy limit of path names (drive / folder / filename) only being able to be 260 characters in length. And due to the lenghts of some of the paths involved in the compile process, you're exceeding that 260 character limit. So somehow you need to get around that limit. 

You could run linux in a virtual machine (i.e. Virtualbox) so you don't have to mess around with dual-boot or any issues with resizing Windows partions etc. I'd suggest having at least one machine that is running linux natively (either dedicated or dual-boot with windows) anyway... good to learn linux and have an alternative to a windows box. 

You could also follow the instructions on how to install a portable version of the Arduino IDE, which essentially boils down to downloading the 'ZIP for non admin install', unpacking the contents to a folder (I would suggest making a folder in the root of your main C:\ drive called arduino) on your computer, and creating a new folder with the name 'portable' so the IDE knows to operate in portable mode. Then install your MATLAB support package, etc again. 



Peter Feerick
BIT, BLDes CQU

On 14 May 2018 at 18:36, Raktim Pratihar <raktimp...@gmail.com> wrote:
i need some time to setup linux in my laptop.
so after checking i will tell you the result.

Raktim
On Mon, 14 May 2018, 1:54 p.m. Adrian Godwin, <artg...@gmail.com> wrote:
Could you run it under Linux ? Might be simpler than getting the installation fixed.

On Mon, May 14, 2018 at 7:57 AM, Raktim Pratihar <raktimp...@gmail.com> wrote:
i tried 3 versions of arduino installing from the older 2 versions but same problem there.
On Mon, 14 May 2018, 12:26 p.m. Raktim Pratihar, <raktimp...@gmail.com> wrote:
i cant under stand what is the sollution.. please briefly describe it. do i need to uninstall matlab... ??
yeap i also made data acquisitions with matlab. so i need to download matlab arduino support package.

On Mon, 14 May 2018, 4:28 a.m. William Westfield, <wes...@mac.com> wrote:

> https://github.com/esp8266/Arduino/issues/1631

Update: definitely can be caused by overly long/deep paths. (github updated with my example.)
Windows has a 260-byte limit, which gcc probably obeys.

And the needed include path will end up looking like:

> c:\programdata\matlab\supportpackages\r2017b\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\bin\../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/include/c++/4.8.2/xtensa-lx106-elf/bits/c++config.h

(269 characters!)

Someone submitted a gcc patch back in 2013 (https://gcc.gnu.org/ml/gcc-help/2013-05/msg00155.html ), but it doesn’t look like it was ever incorporated.

Newer versions of Window10 are supposed to have a feature you can turn on that eliminates the 260-character limit, but it doesn’t seem to help.  Like I said, gcc probably does its own enforcement.

BillW

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+unsubscribe@arduino.cc.

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+unsubscribe@arduino.cc.

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+unsubscribe@arduino.cc.

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+unsubscribe@arduino.cc.

Raktim Pratihar

unread,
May 14, 2018, 6:58:12 AM5/14/18
to devel...@arduino.cc
in the portable version there is no problem..its working fine... the problem is while i am using the installed file....

So I need to learn how to use vmware.

Raktim

To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.
Reply all
Reply to author
Forward
0 new messages