Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: Wiz820io and Teensy 3.2 with different CS and RESET pins

  1. #1
    Junior Member
    Join Date
    Mar 2019
    Posts
    8

    Wiz820io and Teensy 3.2 with different CS and RESET pins

    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:

    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

  2. #2
    Junior Member
    Join Date
    Mar 2019
    Posts
    8
    Ugh, never mind. I just realized I had a Teensy in my PCB that didn't have a pin 13 soldered to connect to the header. Hooray for stupid fixes!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •