Non Arduino boards no longer usable after Engineering kit installation

Hello everyone,

I am facing an issue after the installation of this kit and of Matlab. My ESP8266...ESP32 boards produce a compilation error with the following text as I tried to compile the blink sketch

I reproduce hereafter part of the message :

Arduino : 1.8.15 (Windows 10), Carte : "ESP32 Wrover Module, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), QIO, 80MHz, 921600, None"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries D:\Arduino\libraries -fqbn=esp32:esp32:esp32wrover:PartitionScheme=default,FlashMode=qio,FlashFreq=80,UploadSpeed=921600,DebugLevel=none -vid-pid=10C4_EA60 -ide-version=10815 -build-path C:\Users\cscha\AppData\Local\Temp\ArduinoServer\MW -warnings=default -build-cache C:\Users\cscha\AppData\Local\Temp\arduino_cache_560422 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0 -prefs=runtime.tools.xtensa-esp32-elf-gcc-1.22.0-97-gc752ad5-5.2.0.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0 -prefs=runtime.tools.esptool_py.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\esptool_py\3.0.0 -prefs=runtime.tools.esptool_py-3.0.0.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\esptool_py\3.0.0 -prefs=runtime.tools.mkspiffs.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\mkspiffs\0.2.3 -verbose C:\Users\cscha\AppData\Local\Temp\arduino_modified_sketch_300867\Blink.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries D:\Arduino\libraries -fqbn=esp32:esp32:esp32wrover:PartitionScheme=default,FlashMode=qio,FlashFreq=80,UploadSpeed=921600,DebugLevel=none -vid-pid=10C4_EA60 -ide-version=10815 -build-path C:\Users\cscha\AppData\Local\Temp\ArduinoServer\MW -warnings=default -build-cache C:\Users\cscha\AppData\Local\Temp\arduino_cache_560422 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0 -prefs=runtime.tools.xtensa-esp32-elf-gcc-1.22.0-97-gc752ad5-5.2.0.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0 -prefs=runtime.tools.esptool_py.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\esptool_py\3.0.0 -prefs=runtime.tools.esptool_py-3.0.0.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\esptool_py\3.0.0 -prefs=runtime.tools.mkspiffs.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\mkspiffs\0.2.3 -verbose C:\Users\cscha\AppData\Local\Temp\arduino_modified_sketch_300867\Blink.ino

**Using board 'esp32wrover' from platform in folder: C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp32\hardware\esp32\1.0.6

For now I tried to solve the issue by removing Matlab, then Arduino IDE, and finally installing IDE 1.8.15 and the ESP32 / ESP8266 drivers...
Unfortunately the removal seems to leave pieces behind and Windows creates again a ProgramData/Matlab/Support Packages/R2019a folder...and the compiler does not seem to take in account the cards installed by IDE...

Would anybody have any clue how to sort that out ?

Thanks a lot

csierra67

Perhaps a verbose setting has been enabled?

You can use a portable installation of the Arduino IDE for ESP32, ESP8266, and any other standard Arduino IDE usage:

Use the standard IDE installation that was tainted by the Matlab integration solely for use with the engineering kit.

Hello Idahowalker and pert,

Thanks for your answers.. The verbose command was set to troubleshoot the issue.
I found this post on the Matlab forum

https://fr.mathworks.com/matlabcentral/answers/409288-cannot-compile-for-esp-based-boards-in-arduino-ide-after-installing-simulink-support-package-for-ard

It appears that it is a known issue and that the engineering kit/matlab bundle is non compatible with non Arduino boards..

Matlab changes the path in the preferences.txt file.. I will pursue your suggestion of a portable IDE.

You're welcome. Thanks for taking the time to share your findings.

I think the portable IDE solution will work well for you. The portable IDE will use a separate preferences.txt file that's located in the portable subfolder of the IDE installation folder. So this means the portable IDE installation is well isolated from the engineering kit IDE installation.