How to fix compilation error for ESP32 in Arduino IDE? - arduino

I am working on DOIT ESP32 DEVKIT V1 and I'm using Arduino IDE 1.8.13 (Windows 10 Pro Education x64) for coding this board. I installed the ESP32 board (and ESP8266) as well from the boards manager inside Arduino IDE. It was working fine for some days, until, a friend sent me an .ino file and after opening it and trying to compile and upload that file on my board, a weird compilation error occurred (it's the same error that occurred on my friend's system, and she had to switch to another system to continue working smoothly). I am using these URLs in Additional Boards Manager URLs option under preferences in Arduino IDE:
https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json
And the following error messages appear on compilation:
In file included from c:\programdata\matlab\supportpackages\r2018a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\algorithm:60:0,
from C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:142,
from sketch\sketch_aug21a.ino.cpp:1:
c:\programdata\matlab\supportpackages\r2018a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\utility:68:28: fatal error: bits/c++config.h: No such file or directory
compilation terminated.
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.
Please provide me a step by step guide to fix this issue, as I am new to such errors and directory issues. Note that there are no compilation errors when I select Arduino AVR Boards (such as MEGA, UNO, etc.). I have already tried re-installing the ESP32 board from boards manager, but no success.

FIXED!
The problem was that there were no /hardware/espressif/esp32 folders existing anywhere, even though the board support was installed. So I removed the board from Arduino's Board Manager, created the folders myself, and installed the ESP32 core there. I followed all the instructions given over this link:
https://learn.sparkfun.com/tutorials/esp32-thing-hookup-guide/installing-the-esp32-arduino-core
They have provided all the steps (including the creation of folders/directories) for installation of the core through github repository. And now the error is fixed and it is working perfectly!

Related

ESP8266 + Arduino Uno + ESP8266WIFI lib

I'm having a problem with ESP8266 in programming part.
I'm using Arduino Uno and have thousand times run programs.
It's has been my second day in completing my esp8266 simple fully function circuit
My current problem is :
ESPwifi library has many error even I download it from official github source code
So, I decided to use WIFIESP library and it stuck at TIMEOUT/NO WIFI/NO MAC ADDRESS
I cannot use pin 0 & 1 because a wire stuck in it.
I have search everywhere to solve my problem even tough needs alternative ways I will at least doesn't required NEW HARDWARE.
Reupdate : 08:18 PM 4.3.19
I just want steps without need AT firmware & able to post data to websites
I don't want extra boards EXCEPT:
Arduino UNO
ESP8266-01 (small one with 8 pin)
Windows 10 with arduino IDE latest version
I'm not sure what your real problem is, but here is my solutions:
In case you haven't install the esp8266 boards for the arduino IDE yet, then you should install it first. The installation instructions is documented on GitHub. Here is the snippet to install ESP8266 boards on Arduino IDE:
Start Arduino and open Preferences window.
Enter http://arduino.esp8266.com/stable/package_esp8266com_index.json into Additional Board Manager URLs field. You can add multiple URLs, separating them with commas.
Open Boards Manager from Tools > Board menu and install esp8266 platform (and don't forget to select your ESP8266 board from Tools > Board menu after installation).
ESP Libraries needs Arduino Core Library to work. If you haven't install the board yet, then you will get many errors.
hope this help.

Arduino MKRFox1200 Configuration

I want to install a Arduino MKRFox1200 .
I've installed the drivers,
but i can't find it in the IDE
and even its installed I see this message in the IDE
and this is the result of Get Board Info, but the board is flashing green
You need to install the MKRFox board support package.
Follow the getting started instructions and add the Atmel SAMD Core to your Arduino IDE from the Board Manager.
After you installed it, you should be able to select select the MKRFOX1200 in Tools>Board

Port is inactive in Arduino IDE

In Arduino IDE the Port(Tools->Port) is inactive. I'm using Arduino Uno which was working properly. What should I do to fix this problem?
Also there is an error icon next to the name of Arduino Uno in windows Device Manager ( Error code in device manager: "This device cannot start. (Code 10)" ).
I uninstalled and updated the driver but nothing happened.
Any help will be appropriated!
The problem is solved here. You basically need to download and install the CH340 USB driver.
I downloaded it from this link and it worked pretty well.

PCI express could not open device, PCIE_open failed

I am using Intel DE2i-150 board where I have Intel atom processor with yocto os and fpga with Nios II processor. I am trying to access the fpga board from yocto. Initially I was able to communicate but due to some other installation now the PCIE_open is not working and it is giving me an error: "Counld not open device". This phrase is not anywhere defined in my code. I have used the driver code also but ended up with the same error. Previously it was working. I have no idea what is going on. Please help me regarding this.
It was my mistake. In alt_up_pci_lib.c the device name was alt_up_pci0 and I was trying to open alt_up_pci. That is why the error was coming.

msp430 ask for updating firmware when sending program

I'm using CSS to program an MSP430-f5529. The drivers of the chip are supposed to be installed as far as I cheked them on the administration field of my computer.
The problem is that when I send a program from CSS to my chip it creates an error. The program starts saying that it has to update the firmware of the chip and after the actualization it gives me an error saying:
"Encountered a problem loading file C:\Users....\simple led blink.out
Could not open the file"
Can someone help me please.
I just solved it this morning it was a problem with the libraries that were not copied on CCS folder during the installation of texas instruments software. It's incredible that one company as texas instruments provides this horrible software to program their devices.

Resources