Hi! I have faced a problem with the new MDK 5 environment. On MDK v4 I was using Keil RTX and RL-TCPnet as the IP stack combined with various Ethernet adapters. I have written the drivers mostly by myself, because it was very easy. There are only 3 functions to implement for RL-TCPnet to work fine. Mostly I use the wide spreaded ENC28J60 adapter that is connected over SPI.
Now I want to move to MDK5 and I know I need to rewrite all my code for the new pack idea structure. But there is no possibility to write own drivers for devices that are not supported by Keil...
So now my question. Does someone have a working driver for ENC28J60 for the new MDK5, or some links/information where can I learn how to write my own drivers for MDK5?
Many thanks in adevance.
Hello Eryk,
the documentation for CMSIS-Driver is publicly available and can be used for creating your own drivers. For Ethernet PHY, please have a look here: www.keil.com/.../group__eth__phy__interface__gr.html I would suggest to have a look at the example PHY drivers that are part of the Middleware Pack, such as DP83848C, or ST802RT1. You'll find the drivers in C:\Keil_v5\ARM\Pack\Keil\MDK-Middleware\version\Network\Driver
Kind regards,
Christopher
Hi Chris/Eryk
Any update on the enc28j60 driver for MDK 5.0? I have actually done the work of analyzing sample drivers. and also faked my own driver to be installed in KEIL (I didn't find the document how to "create and package and publish your own driver!). But far away from to get it working.
http://www.keil.com/pack/doc/CMSIS/Pack/html/_c_p__packs.html
I start reading this now. I hope I can get something moving soon.
It looks like for the driver we only need to implement MAC layer because ENC28J60 is a MAC/PHY combined. But it was not clear to me a few of month ago how to only implement one.