We have CAN to Ethernet demo board successfully as per the design on the TIDA-00203 on TI web site. The board is getting ping with 169.254.254.255 (default IP for demo) .
We would like to change the IP address with different IP like 192.168.137.211,212,etc. Here in the default code there are two files config.c and can2enet.c where we can change the default IP to static IP. We have made the changes in the default code to make some static IP address shown below,
//
// Flags (ucFlags)
//
// 0,
// 0x80,
0x82,
//
//
// Static IP address (used only if indicated in ucFlags).
//
//0x00000000,
0xAC18F847,//0xc0A80104,
//
// Default gateway IP address (used only if static IP is in use).
//
//0x00000000,
0xAC18F801,// 0xc0A80101,
//
// Subnet mask (used only if static IP is in use).
//
0xFFFFFF00,
//
// ucReserved2 (compiler will pad to the full length)
//
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
}
};
but even after changing the IP address board is pinging with default IP address 169.254.254.255.
Please suggest the changes in the code to make it compatible with static IP address.