Mikeynl
Posts: 27
Joined: Sat Nov 11, 2017 1:36 pm

Lan9512 stops working

Tue Jun 26, 2018 12:56 pm

Hi,

After searching on the forum, and seeing people have the same problem, but cannot figure out min.

If i measure voltage when working, all looks fine. But at some point it looks like the chip stalls and loses the connection completely. The log (will catch it, disabled tmpfs) show something about losing connection with usb and all is gone. Ethernet lights are off.

When this happening and found it out by accident (first thought left over flux residu) if i spray in the part with smd cleaner (cools down while evaporate) the chip starts. And connection stays on. When started nothing is wrong. After couple of hours later it stops working. Temperatur is absolut inside normale range. Chip is slightly warm on top and bottom.

We installed external clock 25mhz.

I suspect power problem, if so is there an option to trigger the lan_run pin again to see if i can restart the lan9512 again ?
2018-06-26 14_42_33-2 Schematic - C__Users_Mike_Documents_Nextcloud_[P] Projecten_[P] ayment module_.png
2018-06-26 14_42_33-2 Schematic - C__Users_Mike_Documents_Nextcloud_[P] Projecten_[P] ayment module_.png (59.55 KiB) Viewed 1316 times

Mikeynl
Posts: 27
Joined: Sat Nov 11, 2017 1:36 pm

Re: Lan9512 stops working

Tue Jun 26, 2018 1:00 pm

Jun 26 12:32:44 aaaaa-nl-2f90922a kernel: [ 1.774646] smsc95xx v1.0.6
Jun 26 12:32:44 aaaaa-nl-2f90922a kernel: [ 1.865143] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:90:92:2a
Jun 26 12:32:44 aaaaa-nl-2f90922a kernel: [ 2.072728] i2c /dev entries driver
Jun 26 12:32:44 aaaaa-nl-2f90922a kernel: [ 2.332432] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Jun 26 12:32:44 aaaaa-nl-2f90922a kernel: [ 3.016688] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
Jun 26 12:32:44 aaaaa-nl-2f90922a kernel: [ 3.021440] bcm2835_alsa bcm2835_alsa: card created with 8 channels
Jun 26 12:32:44 aaaaa-nl-2f90922a liblogging-stdlog: [origin software="rsyslogd" swVersion="8.24.0" x-pid="310" x-info="http://www.rsyslog.com"] start
Jun 26 12:32:44 aaaaa-nl-2f90922a kernel: [ 4.983440] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
Jun 26 12:32:46 aaaaa-nl-2f90922a kernel: [ 6.482921] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
Jun 26 12:32:47 aaaaa-nl-2f90922a vncserver-x11[383]: ServerManager: Server started
Jun 26 12:32:47 aaaaa-nl-2f90922a lightdm[377]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
Jun 26 12:32:47 aaaaa-nl-2f90922a vncserver-x11[383]: ConsoleDisplay: Found running X server (pid=407)
Jun 26 12:32:48 aaaaa-nl-2f90922a kernel: [ 8.241944] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
Jun 26 12:32:48 aaaaa-nl-2f90922a kernel: [ 8.257437] nf_conntrack version 0.5.0 (15360 buckets, 61440 max)
Jun 26 12:32:48 aaaaa-nl-2f90922a kernel: [ 8.269837] Bridge firewalling registered
Jun 26 12:32:48 aaaaa-nl-2f90922a lightdm[465]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
Jun 26 12:32:49 aaaaa-nl-2f90922a kernel: [ 9.753060] gpio_pca953x: no symbol version for module_layout
Jun 26 12:32:49 aaaaa-nl-2f90922a kernel: [ 9.754947] pca953x 0-0026: 0-0026 supply vcc not found, using dummy regulator
Jun 26 12:32:49 aaaaa-nl-2f90922a kernel: [ 9.776888] i2c i2c-0: new_device: Instantiated device pca9698 at 0x26
Jun 26 12:32:49 aaaaa-nl-2f90922a kernel: [ 9.777286] pca953x 0-0027: 0-0027 supply vcc not found, using dummy regulator
Jun 26 12:32:49 aaaaa-nl-2f90922a kernel: [ 9.800396] i2c i2c-0: new_device: Instantiated device pca9698 at 0x27
Jun 26 12:32:54 aaaaa-nl-2f90922a kernel: [ 14.161161] random: crng init done
Jun 26 12:32:58 aaaaa-nl-2f90922a kernel: [ 18.231599] tun: Universal TUN/TAP device driver, 1.6
Jun 26 12:33:42 aaaaa-nl-2f90922a kernel: [ 53.578074] smsc95xx 1-1.1:1.0 eth0: link down
Jun 26 12:33:43 aaaaa-nl-2f90922a kernel: [ 53.839599] smsc95xx 1-1.1:1.0 eth0: Failed to read reg index 0x00000114: -71
Jun 26 12:33:43 aaaaa-nl-2f90922a kernel: [ 53.839607] smsc95xx 1-1.1:1.0 eth0: Error reading MII_ACCESS
Jun 26 12:33:43 aaaaa-nl-2f90922a kernel: [ 53.839612] smsc95xx 1-1.1:1.0 eth0: MII is busy in smsc95xx_mdio_read
Jun 26 12:33:43 aaaaa-nl-2f90922a kernel: [ 53.839617] smsc95xx 1-1.1:1.0 eth0: Failed to read MII_BMSR
Jun 26 12:33:45 aaaaa-nl-2f90922a kernel: [ 56.034400] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1442
Joined: Sat Sep 10, 2011 11:43 am

Re: Lan9512 stops working

Tue Jun 26, 2018 1:31 pm

Have you seen this post?

viewtopic.php?f=98&t=216330#p1331833
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

Mikeynl
Posts: 27
Joined: Sat Nov 11, 2017 1:36 pm

Re: Lan9512 stops working

Tue Jun 26, 2018 1:45 pm

gsh wrote:
Tue Jun 26, 2018 1:31 pm
Have you seen this post?

viewtopic.php?f=98&t=216330#p1331833
No didnt see that, will try to test that out. Thanks.

John Westlake
Posts: 107
Joined: Thu Nov 09, 2017 4:34 am

Re: Lan9512 stops working

Tue Jun 26, 2018 5:26 pm

Yes, try a 1M resistor across the Crystal :)

Mikeynl
Posts: 27
Joined: Sat Nov 11, 2017 1:36 pm

Re: Lan9512 stops working

Tue Jun 26, 2018 5:36 pm

Ok, after crousing half city to get one. The result looks really promising! Booted directly without 2nd reboot and lan is spot on. Tomorrow morning i know more.

For time being will put 0603 resistor on the marker and attach them with hot air gun :) New batch updated design.
2018_06_26_19_35_04_1_Board_C_Users_Mike_Documents_Nextcloud_P_Projecten_P_ayment_module_E_.png
2018_06_26_19_35_04_1_Board_C_Users_Mike_Documents_Nextcloud_P_Projecten_P_ayment_module_E_.png (24.26 KiB) Viewed 1256 times

Mikeynl
Posts: 27
Joined: Sat Nov 11, 2017 1:36 pm

Re: Lan9512 stops working

Tue Jun 26, 2018 5:41 pm

For who wants to know more. In reference design guide the following is mentioned.

Crystal Connections:
1. A 25.000 MHz crystal must be used with the LAN9512 QFN. For exact specifications and
tolerances refer to the latest revision LAN9512 data sheet.
2. XI (pin 61) on the LAN9512 QFN is the clock circuit input. This pin requires a 15 – 33 F
capacitor to digital ground. One side of the crystal connects to this pin.
3. XO (pin 60) on the LAN9512 QFN is the clock circuit output. This pin requires a matching
15 – 33 F capacitor to ground and the other side of the crystal.
4. Since every system design is unique, the capacitor values are system dependant. The
PCB design, the crystal selected, the layout and the type of caps selected all contribute
to the characteristics of this circuit. Once the board is complete and operational, it is up to
the system engineer to analyze this circuit in a lab environment. The system engineer
should verify the frequency, the stability and the voltage level of the circuit to guarantee
that the circuit meets all design criteria as put forth in the data sheet.
5. For proper operation, an additional 1.0M  resistor needs to be added to the crystal
circuit. This resistor needs to be placed in parallel with the crystal.

http://ww1.microchip.com/downloads/en/D ... cklist.pdf

John Westlake
Posts: 107
Joined: Thu Nov 09, 2017 4:34 am

Re: Lan9512 stops working

Tue Jun 26, 2018 6:01 pm

Yes, pretty sure the issue was the missing 1M Resistor across the Crystal - this bias the LAN9514 Oscillator circuit into its linear region.

I'd also connect VBUSDET to VDD33IO.

If it helps your PCB layout (extra Ground paths) then TMS, TDI & TCK can be Grounded (Leave TDO open).

NTRST can be connected directly to VDD33IO (no need for the 10K pull up if your not using the JTAG pins).

I've found that the LAN9514 should really be Reset during reboot of the CM3 - so I'd recommend connecting NRESET (pin 12) to a GPIO on the CM3 for Reset.

Mikeynl
Posts: 27
Joined: Sat Nov 11, 2017 1:36 pm

Re: Lan9512 stops working

Tue Jun 26, 2018 6:26 pm

Hi John,

Thank you for your recommendations. Will look at what we can adjust.

The nreset is already connected to gpio6, and also wired up in the DTS. The rest we will have a look.

Thank you!

Mikeynl
Posts: 27
Joined: Sat Nov 11, 2017 1:36 pm

Re: Lan9512 stops working

Wed Jun 27, 2018 8:28 am

last update, stil working. Problem solved !

Return to “Compute Module”