필터 지우기
필터 지우기

Sample code run problem for Arduino Mega 2560

조회 수: 2 (최근 30일)
C Shen
C Shen 2013년 5월 24일
I just installed Arduino package using Mathwork "targetinstaller". And try to run its sample code in "help->"supplemental software"->Example->"Target for use with Arduino Mega 2560 hardware"
I got this error when I enable external mode and use tools->"run on target hardware"->"run"
The build failed with the following message: "C:\MATLAB\Targets\R2012b\arduino-1.0\hardware\tools\avr\utils\bin\make": Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4217b3)
Another problem, my arduino board is connected to USB COM3. But when I run this in Matlab command window, I got this error. I changed the current folder to "C:\MATLAB\Targets\R2012b\arduinomega2560", it does not work.
Any help will be appreciated.
a=arduino('COM3')
Undefined function 'arduino' for input arguments of type 'char'.
  댓글 수: 2
Kaustubha Govind
Kaustubha Govind 2013년 5월 24일
For the second error, you need to run the install_arduino.m file that is in the downloaded package. This makes sure that the folder containing arduino.m is added to the MATLAB path.
C Shen
C Shen 2013년 5월 24일
Thanks, I forgot to install the package.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by