I want to implement Modbus on my TWR-K20D72M . For that I found in the Modbus Suite Provided by Modbus Slave (Link) .
I can see the have the Demo for Modbus slave for Freescale Cortex M0 KL25Z (ASCII and RTU) .
So My question is what changes Will I have to make in order to migrate from MKL25Z128LK4 to TWR-K20D72M board .
I am also attaching the demo For modbus which i have in case you need to look at the code.
You can get a complete MODBUS solution which runs on the TWR-K20D72M here:
It is master and /or slave on as many UARTs as required/available (ASCII/RTU/RS485 and even USB). If you have Ethernet it also does MODBUS TCP master/and or slave, It will also function as a Modbus gateway and/or router.
Complete guide: http://www.utasker.com/docs/MODBUS/uTasker_MODBUS.PDF
Out-of-the-box functionality for most Kinetis KL and K boards, and can be built with CW, KDS, IAR, Keil, Crossworks, Atollic, CooCox or standalone GCC.
Industrially proven and small memory footprint as shown below:
Take three steps for easy migrate between K-Series and L-Series:
Step1:Check Hardware difference.Likes Power Pin(Vbat)﹑GPIO pin mux﹑Debug Interface;
Step2:Check Software difference.Likes DMA﹑Low Power Mode﹑Flexmemory configuration;
Step3:Optimize the Design.Adopt new head file and reuse the C code by modifying the difference and
add new features support in design that specific to L-Series or K-Series.
Hope it can help you.