Debug Environment

A project log for Network PDU-S

Network Power Distribution Unit with Sequencing

peter.j.ogdenpeter.j.ogden 08/15/2014 at 20:130 Comments
This is what real work looks like

In order to debug I used the following:

Arduino Environment

Before I could even get started debugging, I needed to create a custom boards.txt and pins_arduino.h files so the Arduino programming environment would know how to map things like the friendly "LED_BUILTIN" to the actual I/O register.

To keep thing simple, I started with the timeless "Led Blink" sketch.

Wiznet W5100 Debug
Programmer, Serial Port, and Ethernet Hooked Up

I discovered a short on the 1.8V LDO output of the W5100. After some rework with the hot air and some solder wick I managed to repair the short. It looks like I made the pads extend under the device a little too far making it very difficult to clear a solder bridge under the IC.

After that, it was smooth sailing...well not exactly. The 3.3v and 1.8Vdd and 18.Vda rails all were outputting the correct voltage, and much to my surprise the Link and Activity lights on the RJ45 mag jack were lit, so at least the chip was alive.

Oscilloscope and Hot Air Rework Station

I probed around the SPI bus a bit, I discovered the SlaveSlect signal was not toggling. It turned out that the SlaveSlect pin was hard coded in the Arduino Ethernet library. Having it configured with a header or constructor would have been much better. Nevertheless, another quick hack and the Arduino Ethernet tutorial I was using was fully operational. Hello World!