Simulink and Arduino Nano Sense problem - external mode "hangs"

조회 수: 62 (최근 30일)
Max Abildgaard
Max Abildgaard 2021년 7월 22일
댓글: Luyang Ding 2023년 6월 7일
Hi,
I am seeing a strange behaviour with Simulink+Arduino-Nano-Sense. In a nutshell: I can't run the Arduino Nano BLE Sense in Simulink's external mode. The symptoms and observed behaviour can be described as:
  • The setup of Simulink Arduino hardware package runs nicely and all checks are green (under Windows10 and Matlab 2021a)
  • If I set: Hardware Implementation → Target hardware resources → Host-board-connection → Set host COM port → Automatically, then I get: The following error occurred during deployment to your hardware board: Failed to detect host COM port of Nano 33 BLE board....
  • If I then set Hardware Implementation → Target hardware resources → Host-board-connection → Set host COM port → Manually and enter the COM-Port-numbers that I get from the Windows device manager, then I can at least press "Build, deplay & Start" (but I must double press the Arduino's reset button first). The model then transfers to the Arduino and it runs.
  • If I try to run "Monitor & Tune", then then I get an error: The following error occurred during deployment to your hardware board: Unrecognized function or variable 'portInfo'.
  • I can also try to just hit "Connect". Then I get an error: 'External Mode Open Protocol Connect command failed' It provides the following diagnose: Caused by: DWARF Parser internal error: Parser::describeSymbol xcpDummyDoubleVariable is not a global variable
I have difficultied interpreting this. Does someone have an idea?
Best
Max

답변 (1개)

Arun Kumar
Arun Kumar 2021년 8월 27일
Hi Max Abildgaard,
The error you are seeing is due to missing drivers of Arduino board. Try to reinstall the drivers and the issue should be fixed.
If you are not able to install the drivers, please use the attached patch files for using the manual com port workflow.
Here are the steps to apply patch:
1. Download the attached files and put them in the same folder.
2. Navigate to the folder created in step 1 above in MATLAB.
3. Run the 'applyPatch.m' file from MATLAB command prompt.
4. Restart MATLAB.
Once this patch is applied, try to set the com port manually and run hit "Mohitor and Tune" button.
Hope this helps!
Please let me know if this solved your problem.
Thanks,
Arun
  댓글 수: 7
Luyang Ding
Luyang Ding 2023년 6월 7일
Hi Arun,
I am facing a familiar problem, the system tell me "DWARF Parser internal error: Parser::describeSymbol xcpDummyDoubleVariable is not a global variable "
I am using c2000, the driver is installed automatically, and I cannot reinstall it. Can you help?
thanks, best
Luyang Ding
Luyang Ding 2023년 6월 7일
@Arun KumarIt seems that R2023a cannot select 28335, anouncing it a invalid data. I am using 2022b.

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

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by