what are the changes you made to port the code to k60 to k66 for Ethernet part in keil.
I had worked on k60 for Ethernet well but when I port that code to k66 it is not working , can you help me
Hi Reddy,
I am not sure if you are trying to enable both HS USB and Ethernet. The main difference between K66 and K60 is if you are trying to use HS USB, then you need to connect 12, 16 or 24MHz on the main oscillator pins (PTA18 and PTA19). But this conflicts the requirement for RMII clock input of 50MHz to be connected on EXTAL like on K60.
But there is a different option to connect RMII clock, you can use ENET_1588_CLKIN (PTE26) and this can be configured with SIM_SOPT2[RMIISRC] bit.
Hao
hi,
Iam using only external 50MHz crystal at pin(72),Iam using RMII mode ,but the same crystal is used in the k60 the Ethernet is worked fine but for k66 Ethernet is not working , I made MCG_c2 registers EREFS bit to logic 1, even thought it not working . Iam using the code warrior generated code for the k60 , now only change I replace the k60 with k66, I don't know how to enable the interrupts in the code warrior generated code because irq numbers gets changed in k66 , I possible can you send Ethernet application in keil 5 for k66 ,
Hi Reddy,
Actually you should use the following link to download KSDK2.0 packages.
Welcome to Kinetis Expert | Kinetis Expert
Choose Build an SDK, and select the board for FRDM-K66, so you can download that package.
Hao
Hi Reddy,
Sorry that what I showed might have confused you. Yo do not have to select RTOS for using ENET, you can deselect RTOSes on that page and just get a baremetal project and you can also just select Keil for your toolchain.
I have attached the package with just ENET driver demos for Keil here.
You can check folder SDK_2.0_FRDM-K66F\boards\frdmk66f for demo projects where demo_apps include examples running with LWIP while driver_examples just include example for using ENET module.
Hao
Hi
Bare-metal Ethernet drivers are available at
K65/K66: http://www.utasker.com/kinetis/TWR-K65F180M.html
Note however that the only change to any other Ethernet part is that the 50MHz clock MUST to be connected to the ENET_1588_CLKIN clock input and the pin selected as its peripheral function, doing something like
_CONFIG_PERIPHERAL(E, 26, PE_26_ENET_1588_CLKIN);
There is also really nothing that is Keil specific since the code will build with any IDE or compiler.
Regards
Mark
Kinetis for professionals: http://http://www.utasker.com/kinetis.html