Hi, I have to create a GUI by using MatLab for my mkl25z, is there a guide? or some examples? I have already the document " How to create a GUI on MatLab" so now I have some idea on how I have to create a GUI on MatLab, but I don't know how to communicate with the freescale mkl25z, how can I define where is the port of my board or anything else. Thak you very much.
Since I'm a beginner, do you think that is better to use the serial port (USB) instead of Virtual RS232 Port to connect the board or it is the same?
Hi,
regarding the GUI on matlab side, i think it's more a MathWorks question than Freescale. I suggest you contact
MathWorks - MATLAB and Simulink for Technical Computing
regarding to KL25 Virtual RS232 Port problem, if you use FRDM-KL25 board OpenSDA interface to connect board, it also has feature of CDC virtual serial port. you can use it directly to connect GUI with USB interface. it's easier.
can this help you?
Have a great day,
Zhang Jun
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
I use FRDM-KL25 board OpenSDA interface to connect board, so in this case I don't need to set the UART? How can i say to MatLab to communicate with that particulat serial port ( for example COM5 in your screenshot)?
Hellou Pier.
The good way for the communication between Matlab/GUI and Freescale KL25 freedom board is to use "Virtual RS232 Port" which is availible on PC side when is KL25 Freedom board connected to the PC. For using this form of communication is needed to configure UART module in KL25 MCU, KL25 Freedom Board using UART0 module with pins PTA1/PTA2. For configuration UART module see reference manual and/or example (see below)
UART configuration you can found in "KL25 Reference Manual" http://cache.freescale.com/files/32bit/doc/ref_manual/KL25P80M48SF0RM.pdf examples can be found here http://cache.freescale.com/files/32bit/software/KL25_SC.exe .
More documents, examples and usable thinks you can find at http://www.freescale.com/products/arm-processors/kinetis-cortex-m/l-series/kinetis-kl2x-48-mhz-usb-c...
For sending a data via virtual serial port on PC you can use MATLAB serial port device http://de.mathworks.com/help/matlab/serial-port-devices.htmln .