Hi all,
I'm getting a 0.0.0.0 IP address from Ethernet.localIP() and EthernetNoHardware from Ethernet.hardwareStatus() after moving the reset and chip select pins connecting a Wiznet 820io to a Teensy 3.2. Here's the wiring:
I checked 3.3v and GND to the Wiz and it's getting power (via a LM3940 also powering the Teensy) so connections all seem fine. Here's the stripped down code:
Does anyone have any insight into why this might not be working? It was previously working on the default pin layout.
Also, should the Wiznet LEDs illuminate when initialized even without an ethernet cable plugged in?
Thanks!
Alan
I'm getting a 0.0.0.0 IP address from Ethernet.localIP() and EthernetNoHardware from Ethernet.hardwareStatus() after moving the reset and chip select pins connecting a Wiznet 820io to a Teensy 3.2. Here's the wiring:
Code:
Teensy3 WIZ820io
------- --------
11 MOSI
12 MISO
13 SCLK
9 SCNN (CS)
17 RSTN (RESET)
I checked 3.3v and GND to the Wiz and it's getting power (via a LM3940 also powering the Teensy) so connections all seem fine. Here's the stripped down code:
Code:
#include <SPI.h>
#include <Ethernet.h>
#define ENET_RESET 17
#define ENET_CS 9
byte mac[] = {0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x02};
byte ip[] = { 192, 168, 1, 10 };
void setup() {
pinMode(ENET_RESET,OUTPUT);
digitalWrite(ENET_RESET, LOW); // begin reset the WIZ820io
delay(1UL);
digitalWrite(ENET_RESET, HIGH); // end reset pulse
delay(150UL);
Ethernet.init(ENET_CS);
delay(500);
Ethernet.begin(mac, ip);
Serial.begin(9600);
Serial.println("Initialize Ethernet with DHCP:");
Serial.print("My IP address: ");
Serial.println(Ethernet.localIP());
}
void loop() {}
Does anyone have any insight into why this might not be working? It was previously working on the default pin layout.
Also, should the Wiznet LEDs illuminate when initialized even without an ethernet cable plugged in?
Thanks!
Alan