Skip to content

reboot loop if starting ethernet on ESP32-PICO-V3 #6818

@hgatesCPV

Description

@hgatesCPV

Board

ESP32-PICO-KIT (modified), also on a custom board

Device Description

I have two ESP32-PICO-KIT boards. They originally both had D4 chips on them. On one of them I replaced the chip with a V3 chip.

Hardware Configuration

nothing, just USB cable

Version

latest development Release Candidate (RC-X)

IDE Name

PlatformIO

Operating System

Windows 10

Flash frequency

default

PSRAM enabled

no

Upload speed

115200

Description

I can load and run simple test code, like LED or I/O pin blink. But when I try to start ethernet, program hangs and resets. This is only with V3 chip. With D4 chip I don't have the issue. This has come about because I designed a custom board for V3 and ordered 2k pieces of the chip. So I would really like to get V3 working!

Sketch

#include <Arduino.h>
#include <SPI.h>
#include <Ethernet.h>       // Ethernet library v2 is required


// Enter a MAC address and IP address for your controller below.
byte mac[] = {
  0x98, 0x76, 0xB6, 0x11, 0x85, 0x82
};
IPAddress ip(10,0,6,75); // The IP address will be dependent on your local network:

void setup() {
  Serial.begin(115200);     // Open serial communications and wait for port to open
  Serial.println("in setup\r\n");
  Ethernet.init(33);        // SS pin
  Ethernet.begin(mac, ip);  // start the Ethernet connection
  delay(1000);              // give the Ethernet shield a second to initialize
}

void loop() {
  Serial.println(Ethernet.localIP());
  delay(1000); 
}

Debug Message

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 271414342, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1    
load:0x3fff0030,len:184  
load:0x40078000,len:12624
load:0x40080400,len:2916 
entry 0x400805c4
in setup

ets Jul 29 2019 12:21:46

rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 271414342, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:184
load:0x40078000,len:12624
load:0x40080400,len:2916
entry 0x400805c4
in setup

Other Steps to Reproduce

On same board type (ESP32-PICO-KIT) with original D4 chip I get this output:
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:184
load:0x40078000,len:12596
load:0x40080400,len:2916
entry 0x400805c4
in setup

0.0.0.0
0.0.0.0
0.0.0.0
0.0.0.0
0.0.0.0
0.0.0.0

here is my platformio.ini

[env:pico32]
platform = https://github.com/Jason2866/platform-espressif32.git
platform_packages =
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
framework = arduino
board = pico32
monitor_speed = 115200
build_flags = -DLOG_LEVEL=6

lib_deps =
arduino-libraries/Ethernet@^2.0.0

I found some other similar things from other people about rebooting loops on V3 and D4 chips. Some people had power supply issues - I've tried adding capacitors and running off a lab power supply. Other people had luck using different sets of libraries and packages - I've tried all those and no change. Tried lowering CPU clk to 40MHz - no change.

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions