JSON Syntax Error in Simulink Arduino with Flatpak Enabled
조회 수: 1 (최근 30일)
이전 댓글 표시
On NixOS (glnxa64), when I have Flatpak enabled, I will receive an error from the following:
- Install Simulink Support Package for Arduino Hardware add-on
- Start Hardware Setup wizard in said add-on
- Get to the stage where the wizard prompts me to Connect an Arduino Board and is detecting boards
- Receive error
JSON syntax error at line 1, column 1 (character 1): expected 'false' but found 'flatpak'
OR (after getting past Hardware Setup)
- Click Monitor & Tune in Simulink
- Receive error
Error:The following error was encountered during evaluation of the external mode callback 'getExtModeData': codertarget.arduinobase.internal.getExternalModeMexArgs('Serial')
JSON syntax error at line 1, column 1 (character 1): expected 'false' but found 'flatpak'.
There seem to be no additional log created for this error. The only way I've found to work around this error is to remove Flatpak from my system, and re-enable it when I'm done with Simulink.
댓글 수: 0
답변 (1개)
Saurabh
2024년 10월 10일
This issue appears to be related to Flatpak's security measures, which is preventing Simulink from accessing the COM port for device detection, leading to the build error. To address this, try using the flatpak override command with the
--device=DEVICE option.
For more information refer to this doc:
I hope this was helpful.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Modeling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!