Unable to control LED on Arduino Due. Pin 13 is not a valid Digital Input/Output pin.
6 次查看(过去 30 天)
显示 更早的评论
I'm trying the following tutorial : https://youtu.be/ksUSdFlAkAI
I'm using Arduino Due board.
I'm getting the bellow mentioned error. I'm trying to build the simulation with manual switch.
I've attached my simulink model file.
I tried running the system with Admin previledge as suggested in the link but with no success. I also tried chnaging the baud rate as suggested by some articles but again no success.
Error :
MATLAB System block 'arduinodemo/Digital Output' error occurred when invoking 'setupImpl' method of 'codertarget.arduinobase.blocks.DigitalWrite'. The error was thrown from ' 'C:\ProgramData\MATLAB\SupportPackages\R2022a\toolbox\target\shared\devicedrivers\+matlabshared\+devicedrivers\+blocks\DigitalIO.p' at line 0 'C:\Program Files\MATLAB\R2022a\toolbox\target\codertarget\sltoolstrip\m\+codertarget\+internal\+sltoolstrip\ConnectedIOHandler.m' at line 106 'C:\Program Files\MATLAB\R2022a\toolbox\target\codertarget\sltoolstrip\m\+codertarget\+sltoolstrip\EmbeddedHardwareBoardContext.m' at line 440'.
Caused by: Configuring Pin 13 as Digital Input/Output failed. Pin 13 is not a valid Digital Input/Output pin. Reconnect the hardware, provide a valid Digital Input/Output pin number for your hardware and try again.
Component:Simulink | Category:Block error
0 个评论
回答(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!