- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a EVAL-M1-101T board which has IMC101T -T08 MCE on it. the eval board also has XMC4200 as the onboard debugger. The board is connected to PC via J Link and Matlab can see the COM port.
How can I read the registers and send command using Matlab?
Thank you for your help!
Solved! Go to Solution.
- Labels:
-
ispn:17341:1:0
-
l1:314:1:0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @alirezrez ,
Yes, we can communicate from serial interface. The data needs to be sent as per the protocol, which is also mentioned in the iMOTION™ Motion Control Engine Software Reference Manual.
However, COM port (on board debugger) is connected to UART0 pin. By default UART0 is used by MCEDesigner. If you can use iMOTION link, it is possible to connect to UART1 and use User UART protocol to communicate to MATLAB.
To establish serial communication from matlab, refer to the functions given in the link https://in.mathworks.com/help/matlab/ref/serialport.html , and write a matlab script/code accordingly.
Sai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @alirezrez ,
Yes, we can communicate from serial interface. The data needs to be sent as per the protocol, which is also mentioned in the iMOTION™ Motion Control Engine Software Reference Manual.
However, COM port (on board debugger) is connected to UART0 pin. By default UART0 is used by MCEDesigner. If you can use iMOTION link, it is possible to connect to UART1 and use User UART protocol to communicate to MATLAB.
To establish serial communication from matlab, refer to the functions given in the link https://in.mathworks.com/help/matlab/ref/serialport.html , and write a matlab script/code accordingly.
Sai