EmbeddedRelated.com
Forums
Memfault Beyond the Launch

RCM6700 with TCPCONFIG 6

Started by TashR November 14, 2011
I'm trying to port some code from RCM5750 to use with my RCM6700. I am using DC 10.66

This code works fine on RCM5750. I set TCPCONFIG 6 so that I can set the ifconfig at runtime (I need to read some inputs and read from the user block to determine the correct static IP)

In the RCM6700 the program crashes at sock_init. I've set #define DCRTCP_DEBUG and step through to see it crashing in IP.LIB in pkt_init() (at line 907) as it tries to initialize the ethernet address mapping table.

sock_init should return an int for success or failure, but it never returns, it just crashes.

Does anyone have a working example of runtime ifconfig for the RCM6700 or any ideas what may be different between RCM5750 and RCM6700 in this regard?

Have you tried one of the sample programs under tcp/ip?
I'm using the RCM6700 and DC 10.66 and using Ethernet with TCPCONFIG
6, and it works for me.

--- In r..., "TashR" wrote:
>
> I'm trying to port some code from RCM5750 to use with my RCM6700. I am using DC 10.66
>
> This code works fine on RCM5750. I set TCPCONFIG 6 so that I can set the ifconfig at runtime (I need to read some inputs and read from the user block to determine the correct static IP)
>
> In the RCM6700 the program crashes at sock_init. I've set #define DCRTCP_DEBUG and step through to see it crashing in IP.LIB in pkt_init() (at line 907) as it tries to initialize the ethernet address mapping table.
>
> sock_init should return an int for success or failure, but it never returns, it just crashes.
>
> Does anyone have a working example of runtime ifconfig for the RCM6700 or any ideas what may be different between RCM5750 and RCM6700 in this regard?
>

Thanks for the tip.

I tried the samples and couldn't get any of them to run for RCM6700 either. I got a co worker to compile on his machine and they also worked fine. Somehow my libraries must have become corrupted. I re-installed DC10.66 and now it is working fine.

--- In r..., "seecwriter" wrote:
>
> Have you tried one of the sample programs under tcp/ip?
> I'm using the RCM6700 and DC 10.66 and using Ethernet with TCPCONFIG
> 6, and it works for me.
>
> --- In r..., "TashR" wrote:
> >
> > I'm trying to port some code from RCM5750 to use with my RCM6700. I am using DC 10.66
> >
> > This code works fine on RCM5750. I set TCPCONFIG 6 so that I can set the ifconfig at runtime (I need to read some inputs and read from the user block to determine the correct static IP)
> >
> > In the RCM6700 the program crashes at sock_init. I've set #define DCRTCP_DEBUG and step through to see it crashing in IP.LIB in pkt_init() (at line 907) as it tries to initialize the ethernet address mapping table.
> >
> > sock_init should return an int for success or failure, but it never returns, it just crashes.
> >
> > Does anyone have a working example of runtime ifconfig for the RCM6700 or any ideas what may be different between RCM5750 and RCM6700 in this regard?
>


Memfault Beyond the Launch