Re: Ethernet not initialising after reset

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi.

Thanks for your help.
Resetting the device by hardware fixed the problem sur enough. I don't
quite understand why, but I suppose there must be something in the
driver that wasn't initializing correctly because the registers
weren't quite as it was expecting.



On 23 jan, 13:30, voidcoder <voidco...@xxxxxxxxx> wrote:
I'm sure the initialization code is called on every
boot as expected. What I mean is that your LAN
controller remains or switches to some "z" state
(or even remains in operational state), and that is
why the initialization procedure is failing to setup
it correctly on second etc boot. There should be a
way to reset the chip manually either by writing
a command to one of the registers or using I/O
pin if your h/w design allows it.

Emmanuel.Viol...@xxxxxxxxxx wrote:
Hi.

Thanks for your answer.

The reset button just resets the CPU unfortunately.
I can't figure out when/why this code is called.
From what I read, the ethernet controller IS initialised during the
driver initialisation. But I may be wrong. And even then, I don't see
how this could change the fact that this code isn't called each time.

I'm looking into the ethernet driver right now, trying to figure things
out.

Thanks for any other ideas you may have, or if this rings a bell to
someone.

voidcoder a écrit :
What does the reset button exactly do? Is it
resetting the whole board or only the CPU?
In that case you may need to reset the
SMSC91181 manually in your Ethernet driver
during the initialization sequence.

Emmanuel.Viol...@xxxxxxxxxx wrote:
Hi.

The first time I start my Windows CE device, the ethernet controller is
initialised, and everything works fine.
However, if I restart the device using the reset button, the ethernet
controller won't initialise correctly.

Here is the difference in the startup :
During the first restart, I get the following lines :
0x8fe25400: IGMPDelInclList: AddrPtr=14d8a0 NumDelSources=0
DelSourceList=0
0x8fe25400: +AfdAddInterface(Adapter SMSC91181
Nte 0x14D720 Context 2, Flags 0 IPAddr A9795DC0 cDns 0 cWins 0)
0x8fe25400: -AfdAddInterface: fRet: 1
0x8fe25400: +IPNotifyClientsIPEvent
0x8fe25400: IPNotifyClientsIPEvent: PendingIPGetIPEventRequest 0
0x8fe25400: -IPAddInterface [SUCCESS]
0x8fe25400: -OEMGetRealTime(rc = 1)
0x8fe25400: -OEMGetRealTime(rc = 1)
0x8ffa5000: -ARPInit [0]
0x8ffa5000: !AFD: Unable to load library 'tcpip6.dll'
0x8fe30bbc: IPDispatchDeviceControl returned Status 103
0x8fe30bbc: ************DHCP MEDIA STATUS************
0x8fe30bbc: SeqNo: 1
0x8fe30bbc: MediaStatus: 11026
0x8fe30bbc: Context: 2 - 2
0x8fe30bbc: AdapterName: SMSC91181
0x8fe30bbc: Media Status is: IP_BIND_ADAPTER

However. These lines don't appear after pressing the reset button.

A call to NKForceCleanBoot() doesn't solve this.

Any ideas?

In advance, thanks.


.


Quantcast