Ethernet using MQX

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

Ethernet using MQX

Jump to solution
1,452 Views
tusharm
Contributor III

Hello,

       I working on K60 TWR, i m using Codewarrior 10.4 with MQX 4.0, I m trying to execute a simple Ethernet program with mqx 4.0 with static ip, but i m not able to execute the code for at least ping.

Code:

#include "main.h"

#if !defined(RAM_DISK_SIZE)

#error Please specify RAM_DISK_SIZE

#endif

const SHELL_COMMAND_STRUCT Shell_commands[] = {

   /* MFS commands */

   { "cd",        Shell_cd },     

   { "copy",      Shell_copy },

   { "create",    Shell_create },

   { "del",       Shell_del },      

   { "disect",    Shell_disect},     

   { "dir",       Shell_dir },     

   { "format",    Shell_format },

   { "mkdir",     Shell_mkdir },    

   { "pwd",       Shell_pwd },      

   { "read",      Shell_read },     

   { "ren",       Shell_rename },   

   { "rmdir",     Shell_rmdir },

   { "type",      Shell_type },

   { "write",     Shell_write },

   /* RTCS commands */

   { "arpadd",    Shell_arpadd },

   { "arpdel",    Shell_arpdel },

   { "arpdisp",   Shell_arpdisp },    

   { "gate",      Shell_gate },

   { "gethbn",    Shell_get_host_by_name },

   { "getrt",     Shell_getroute },

   { "ipconfig",  Shell_ipconfig },     

   { "netstat",   Shell_netstat },  

#if RTCSCFG_ENABLE_ICMP     

   { "ping",      Shell_ping },     

#endif

   { "telnet",    Shell_Telnet_client },

   { "telnetd",   Shell_Telnetd },

   { "walkrt",    Shell_walkroute },

/*    Add your custom shell commands here    */

/* { "command_name",        Your_function }, */

   { "sh",        Shell_sh },

   { "help",      Shell_help },

   { "?",         Shell_command_list },   

   { "exit",      Shell_exit },

   { NULL,        NULL },

};

const SHELL_COMMAND_STRUCT Telnetd_shell_commands[] = {

   /* RTCS commands */

   { "exit",      Shell_exit },     

   { "gethbn",    Shell_get_host_by_name },

   { "getrt",     Shell_getroute },

   { "help",      Shell_help },

   { "ipconfig",  Shell_ipconfig },     

   { "netstat",   Shell_netstat },

   { "pause",     Shell_pause },

#if RTCSCFG_ENABLE_ICMP     

   { "ping",      Shell_ping },

#endif

   { "telnet",    Shell_Telnet_client },

   { "walkrt",    Shell_walkroute },

   { "?",         Shell_command_list },    

   { NULL,        NULL }

};

TASK_TEMPLATE_STRUCT MQX_template_list[] =

{

/*  Task number, Entry point, Stack, Pri, String, Auto? */

   {MAIN_TASK,   Main_task,   2000,  9,   "main", MQX_AUTO_START_TASK},

   {0,           0,           0,     0,   0,      0,                 }

};

I m getting output on Hyper terminal as follows:

Ramdisk initialized to a:\

NOT A DOS DISK! You must format to continue.

Waiting for ethernet cable plug in ...

Please give me solution for this...

Thank you,

Tushar M

Labels (1)
0 Kudos
Reply
1 Solution
1,169 Views
LuisCasado
NXP Employee
NXP Employee

Hi,

As you aren't able to communicate, please verify your are configuring ( I am not sure if you use TWR-K60N512 or TWR-K60D100

To enable Ethernet communication (use with TWR-SER):  (getting started guide)

 

TWR-K60N512 - Jumper J6 on position 2-3 - processor clock taken from the TWR-SER board

TWR-K60D100M - Jumper J10 on position 2-3 - processor clock taken from the TWR-SER board

 

TWR-SER - CLK_SEL 3-4

TWR-SER - CLKIN-SEL 2-3 (processor clock is taken from PHY)

TWR-SER - ETH-CONFIG J12 9-10 to select RMII communication mode

What demo or example are you running?

Luis

View solution in original post

0 Kudos
Reply
5 Replies
1,169 Views
LuisCasado
NXP Employee
NXP Employee

Hi,

have you configured the K60 clock and TWR-SER jumper settings properly?

Luis

1,169 Views
tusharm
Contributor III

hi Luis,

       Can u please tell me what are all the jumper settings to be made...I m bit confused about the jumper settings..

I have K60 Evolution board.

Tushar M

0 Kudos
Reply
1,170 Views
LuisCasado
NXP Employee
NXP Employee

Hi,

As you aren't able to communicate, please verify your are configuring ( I am not sure if you use TWR-K60N512 or TWR-K60D100

To enable Ethernet communication (use with TWR-SER):  (getting started guide)

 

TWR-K60N512 - Jumper J6 on position 2-3 - processor clock taken from the TWR-SER board

TWR-K60D100M - Jumper J10 on position 2-3 - processor clock taken from the TWR-SER board

 

TWR-SER - CLK_SEL 3-4

TWR-SER - CLKIN-SEL 2-3 (processor clock is taken from PHY)

TWR-SER - ETH-CONFIG J12 9-10 to select RMII communication mode

What demo or example are you running?

Luis

0 Kudos
Reply
1,169 Views
tusharm
Contributor III

Thank you Luis....Now its working very fine.....

Tushar M

0 Kudos
Reply
1,169 Views
tusharm
Contributor III

Thanks for your response Luis. There was a problem with jumper setting now its working fine, but still i unable to ping and also i m getting that same Ramdisk initialization to a:..I would like to know what exactly that a: is?

Tushar M

0 Kudos
Reply