what are the changes made to port the code to k60 to k66

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

what are the changes made to port the code to k60 to k66

1,534 Views
maheshwarreddy
Contributor I

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

0 Kudos
13 Replies

1,158 Views
cutworth
NXP Employee
NXP Employee

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. 

pastedImage_1.png

Hao

0 Kudos

1,158 Views
maheshwarreddy
Contributor I

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 ,

0 Kudos

1,158 Views
cutworth
NXP Employee
NXP Employee

Hi Reddy,

So do you mean Ethernet not working is likely related to you not able to change IRQ number on K66 with CW generated code?

Hao

0 Kudos

1,158 Views
maheshwarreddy
Contributor I

yes. if possible send the Ethernet application for k66 in keil5.

0 Kudos

1,158 Views
cutworth
NXP Employee
NXP Employee

Hi Reddy,

You can check www.nxp.com/ksdk and download a KSDK package for K66. It includes Ethernet driver demos and LWIP demos. It has Keil version projects. 

Hao

0 Kudos

1,158 Views
maheshwarreddy
Contributor I

when iam downloading it is saying that file corrupted .

0 Kudos

1,158 Views
cutworth
NXP Employee
NXP Employee

Hi Reddy,

Actually you should use the following link to download KSDK2.0 packages.

Welcome to Kinetis Expert | Kinetis Expert 

pastedImage_2.png

Choose Build an SDK, and select the board for FRDM-K66, so you can download that package.

pastedImage_3.png

Hao

0 Kudos

1,158 Views
maheshwarreddy
Contributor I

hi,

I don't want to use that one I want to use the only bare board project , if the Ethernet part is available in keil5 can send to me .

0 Kudos

1,158 Views
cutworth
NXP Employee
NXP Employee

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.

pastedImage_1.png

Hao

0 Kudos

1,158 Views
maheshwarreddy
Contributor I

iam unable to download that one, after downloading it is showing that file

corrupted ,

On Sun, Sep 18, 2016 at 12:08 PM, cutworth <admin@community.freescale.com>

0 Kudos

1,158 Views
mjbcswitzerland
Specialist V

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

0 Kudos

1,158 Views
maheshwarreddy
Contributor I

it is not getting downloading , can you send the stand alone folder for the k66 Ethernet interface in the keil 5

0 Kudos

1,158 Views
maheshwarreddy
Contributor I

Iam not using HS USB , Iam only enabling the clock for the Ethernet only but the Ethernet is not working .

0 Kudos