I have uninstalled the MATLAB Hardware Support Packages and also edited the perferences file in the IDE so all references of MATLAB are removed. The problem persits, so it is possibly not related to MATLAB. Yet, I would be still interested why MATLAB turns up in the Arduino IDE perferences file...
Arduino Support Package vs. Adafruit M4 Express
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I've noticed that the Arduino Support Packages interacts with the Arduino IDE itself. Does anyone know where can I find a description on what the install does to the Arduino IDE? If you look at the perferences file of the ide, you'll find MATLAB paths peppered around, such as
settings.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs
Also, when trying to compile for the Adafruit Metro M4 in the Arduino IDE, this interaction results in an erroneous compilation. Anyone knows a fix for this?
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\ProgramData\MATLAB\SupportPackages\R2018b\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\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Gergely\Documents\Arduino\libraries -fqbn=adafruit:samd:adafruit_metro_m4:cache=on,speed=120,opt=small,maxqspi=50,usbstack=arduino -vid-pid=239A_8021 -ide-version=10809 -build-path C:\Users\Gergely\AppData\Local\Temp\arduino_build_798743 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.openocd.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.openocd-0.9.0-arduino.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.CMSIS.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.bossac.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\bossac\1.8.0-48-gb176eee -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\bossac\1.8.0-48-gb176eee -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\ProgramData\MATLAB\SupportPackages\R2018b\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\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Gergely\Documents\Arduino\libraries -fqbn=adafruit:samd:adafruit_metro_m4:cache=on,speed=120,opt=small,maxqspi=50,usbstack=arduino -vid-pid=239A_8021 -ide-version=10809 -build-path C:\Users\Gergely\AppData\Local\Temp\arduino_build_798743 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.openocd.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.openocd-0.9.0-arduino.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.CMSIS.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.bossac.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\bossac\1.8.0-48-gb176eee -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\bossac\1.8.0-48-gb176eee -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
Using board 'adafruit_metro_m4' from platform in folder: C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\adafruit\hardware\samd\1.5.0
Using core 'arduino' from platform in folder: C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\adafruit\hardware\samd\1.5.0
Detecting libraries used...
"C:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"Blink.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=120000000L -DARDUINO=10809 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -DADAFRUIT_METRO_M4_EXPRESS -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON "-DUSB_MANUFACTURER=\"Adafruit LLC\"" "-DUSB_PRODUCT=\"Adafruit Metro M4\"" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\adafruit\\hardware\\samd\\1.5.0\\cores\\arduino/Adafruit_TinyUSB_Core" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\adafruit\\hardware\\samd\\1.5.0\\cores\\arduino/Adafruit_TinyUSB_Core/tinyusb/src" -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DENABLE_CACHE -Os -DVARIANT_QSPI_BAUD_DEFAULT=50000000 "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\adafruit\\hardware\\samd\\1.5.0\\cores\\arduino" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2018b\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\adafruit\\hardware\\samd\\1.5.0\\variants\\metro_m4" "C:\\Users\\Gergely\\AppData\\Local\\Temp\\arduino_build_798743\\sketch\\Blink.ino.cpp" -o nul
In file included from C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\adafruit\hardware\samd\1.5.0\cores\arduino/Uart.h:25:0,
from C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\adafruit\hardware\samd\1.5.0\variants\metro_m4/variant.h:47,
from C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\adafruit\hardware\samd\1.5.0\cores\arduino/delay.h:24,
from C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\adafruit\hardware\samd\1.5.0\cores\arduino/Arduino.h:81,
from C:\Users\Gergely\AppData\Local\Temp\arduino_build_798743\sketch\Blink.ino.cpp:1:
c:\programdata\matlab\supportpackages\r2018b\3p.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1\arm-none-eabi\include\c++\4.8.3\cstddef:41: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 Adafruit Metro M4 (SAMD51).
回答(1 个)
MSP
2019-5-30
编辑:MSP
2019-5-30
As far as I know in the Arduino IDE does not change anything. The Arduino IDE remains the same. I've been working a lot with arduino and matlab recently and I've come to the conclusion that it's easier just to make a serial communication between the two using the following link commands: https://de.mathworks.com/help/matlab/serial-port- devices.html. It is only necessary to know what information you want to send and what information you want to receive and to program both codes separately so that this communication is well defined. I have had many problems with the speed of data exchange in the past and I have chosen not to use this package
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 I2C Devices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!