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

64 次查看(过去 30 天)
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