porting lwip stack on MK60FN1M0xxx12 from KSDK 1.3

cancel
Showing results for 
Search instead for 
Did you mean: 

porting lwip stack on MK60FN1M0xxx12 from KSDK 1.3

175,690 Views
hassanjaved
Contributor I

hello, I want to port lwip stack(bare metal) on MK60FN1M0xxx12 series processor (on a proprietary board) and run the demo lwip examples in the SDK. It turns out the said SDK does not support my processor and neither do the latest SDK's: SDK2.0/mcuxpresso as given in the doc available here. The closest processor is MK60D10. 
So, I have created a project through processor expert in Kinetis design studio v3.0 by selecting my processor (without using SDK) and I was wondering if I could simply move the relevant files from the lwip demo examples, lwip folder from middleware and the ethernet driver from the platform folder in the SDK 1.3.

Many of the relevant files related to ethernet driver from the hal api or fsl api are not architecture dependent. So can I just copy them into my project along with the lwip demo and the lwip stack.

The problem is I don't know which files ( excluding the lwip and its demo examples ) are processor specific and need to be adjusted to suit my processor. Plus if there are any other configuration files that I need to add and modify apart from the ones already added by the processor expert.

Kindly, help me by identifying these files or let me know if there is an alternate way to do that. I am a beginner so any useful hints will help me  a lot.Thank you.

P.S. A possible solution in my mind is to edit the relevant files in MK60D10 to suit my processor MK60FN1 from the datasheet. But still need some opinion on this. Thanks again.

0 Kudos
2 Replies

311 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Hassam Javed

We don't recommend to do this migration of code. There are too many difference between MK60_10 and MK60_12, and the migration is too complicated. You could check the following application note, it describes new, updated and enhanced modules in this MCUs:

http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4526.pdf

One option that you could use is MQX, it support Ethernet stack in MK60_12 MCUs. Sorry for the inconveniences that this may cause you.


Have a great day,
Jorge Alcala

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

311 Views
mjbcswitzerland
Specialist V

Hi

Check out also: http://www.utasker.com/kinetis/TWR-K60F120M.html

It can be used on any processor (no restrictions to certain types or IDEs as in the SDKs), with integrated TCP/IP stack (much lower memory footprint than MQX and LWIP) as well as integrated USB stack, including RNDIS for TCP/IP over USB.

Download from http://www.utasker.com/kinetis.html and also simulate the chip and operate the TCP/IP stack in approx. real-time in Visual Studio (emulates all K60F120 interrupts and DMA and hooks the Ethernet controller to the PC's NIC for complete operation). Fastest way to learn if you are a student and easiest way to develop fast, reliable products if you are a professional.

Regards

Mark

0 Kudos