This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C1294NCPDT: DHCP IP Not assigning on Ethernet

Part Number: TM4C1294NCPDT

I am unable to get DHCP Assigned IP when i connect to the ethernet, But through my laptop shared ethernet i got DHCP ip Assigned,

I am working over a charger and my code is almost final the only problem is when i connect the ethernet to my PC Shared ethernet port i am able to access the server as DHCP IP assigned,but when i try to access through real ethernet of my modem or some other ethernets DHCP IP do not assigned.I have already tested with multiple ethernet ports.Every port is working with my PC and other sevices.

Please check the File for some configuration changes.I used enet_weather example library.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//*****************************************************************************
//
// eth_client.c - This file handles all of the Ethernet connections using lwIP.
//
// Copyright (c) 2014-2017 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying this software for use solely and
// exclusively on TI's microcontroller products. The software is owned by
// TI and/or its suppliers, and is protected under applicable copyright
// laws. You may not combine this software with "viral" open-source
// software in order to form a larger program.
//
// THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
// NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
// NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
// This is part of revision 2.1.4.178 of the EK-TM4C1294XL Firmware Package.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

when i tried with enet_weather example the same is happening.

  • Hi Pradeep,

    Perhaps your laptop is self-assigning 196.x.x.x address or your wireless router does not have DHCP pool of address configured? You can check Windows select Start, Run, type cmd hit enter, type "route print" at the command prompt also try netstat. A few other network commands are possible ipconfig etc... A firewall or router without IP helper might stop BootP broadcasts from unknown networks or clients too.

    Regards

  • Thanks for G1's comments. Please also check if DHCP server is on the same subnet as your host. There are multiple Ethernet examples in TivaWare library. If none of them works for you, it is most likely your network setting problem. 

  • Thanks i will check.