Tower Ethernet

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

Tower Ethernet

637 Views
mikereising
Contributor I

Hello all, I have a Tower system with the TWR-K60N512 and a TWR-SER. I'm using Codewarrior 10.6.4 and i'm trying to make it send Ethernet packets. I understand that there's no Ethernet stack, but when I setup everything in processor expert and use ETH1_SendFrame, shouldn't it show up in wireshark on a PC?

 

I don't see the lights on the Ethernet switch blink, so i'm pretty sure it is not sending data. The sendFrame function returns err_ok.

 

I'm at a loss of what i'm doing wrong. I have attached my entire project so you can take a look and see if there's anything obvious that i'm doing wrong.

 

Thanks a million!

Original Attachment has been moved to: test1.zip

Labels (1)
0 Kudos
Reply
4 Replies

510 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Mike,

I wonder why you say that there is no stack. You can use RTCS (Real Time Communications Suite) TCP/IP stack. It operates with MQX RTOS (Ral Time Operating System). You can download MQX4.2 from www.nxp.com/mqx

In the link below you can find a guide showing how to integrate RTCS to a project using Processor Expert. However, in this case you may need to select a different MCU because K60N512 is not supported on KSDK.

How to add RTCS to a Processor Expert Project Using KDS and KSDK

In the KQRUG (Kinetis Quisk reference Users Guide) you can find also ENET initialization and configuration code examples. Please take a look to the document.

http://www.nxp.com/files/32bit/doc/quick_ref_guide/KQRUG.pdf

I strongly recommend to consider a different MCU because K60N512 is the first silicon revision of K60. You can swith to rev 2 which is K60D100 or I would recommend K64F better.

I hope this information is useful.

Best regards,

Carlos

0 Kudos
Reply

510 Views
mikereising
Contributor I

Carlos, thanks for the answer. I'm looking just to send basic info, a multicast broadcast. The 1st step is to just see packets in wireshark. I just want to send raw packets at this point.

Is the K60N512 capable of that, or is this version of the silicon buggy?

0 Kudos
Reply

510 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Mike,

rather than buggy K60N512 has some changes in design and its production will stop at some point and will continue K60D100.

If you only want to configure FEC module and send raw packets you can see the examples in KQRUG that I mentioned before:

http://www.nxp.com/files/32bit/doc/quick_ref_guide/KQRUG.pdf

Regards,

Carlos

0 Kudos
Reply

510 Views
mjbcswitzerland
Specialist V

Mike

There is no real problem with the K60 silicon - just a couple of workarounds required.

You can load a binary to your tower from here: http://www.utasker.com/kinetis/TWR-K60N512.html so that you can verify your connections - it includes IGMP so you can command sending multicast broadcasts from the command line interface (on UART or Telnet) - also described in http://www.utasker.com/docs/uTasker/uTasker_IGMP.pdf

You will need to ensure correct jumper settings on both boards for the RMII interface to be able to work, whereby the settings for tower kit versiosn are shown on page 9 of http://www.utasker.com/docs/KINETIS/uTaskerV1.4_Kinetis_demo.

Regards

Mark

0 Kudos
Reply