Maixduino icon indicating copy to clipboard operation
Maixduino copied to clipboard

ESP32 can't communicate

Open zpowellman opened this issue 4 years ago • 7 comments

ESP32 doesn't respond to either USB com or commands from K210 uP. What firmware is on the ESP32? I've verified AT commands are reaching the ESP32 but it doesn't respond. Writing to Serial1 using any appropriate example shows no indication on the ESP LEDs.

zpowellman avatar Mar 05 '20 00:03 zpowellman

I confirm this problem with a Maixduino. Running the ScanNetworks example just displays:

[WiFiEsp] Cannot initialize ESP module
[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] No tag found
WiFi shield not present

technoblogy avatar Mar 17 '20 19:03 technoblogy

Same problem on my side:

[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] Cannot initialize ESP module

sw-dev-code avatar Oct 16 '20 22:10 sw-dev-code

hello, i found a solution in my own way. At first I changed the firmware of esp32. I compiled "esp32-at" with the directives here. https://esp32.com/viewtopic.php?t=8821 https://www.esp32.com/viewtopic.php?t=15771 Then I made the following changes to the pins_arduino.h file. C:\Users\username\AppData\Local\Arduino15\packages\Maixduino\hardware\k210\0.3.11\variants\sipeed_maixduino

#define MD_PIN_MAP(fpio) (((fpio) < 19) ? _maixduino_pin_map[(fpio)] : (fpio))

static const uint8_t _maixduino_pin_map[19] = {4, 5, 21, 22, 23, 24, 32, 15, 14, 13, 12, 11, 10, 3, 31, 30, 6, 7, 16};

#define ORG_PIN_MAP(org_pin) _original_pin_map[(org_pin)]

static const uint8_t _original_pin_map[48] = {255, 255, 255, 13, 0, 1, 16, 17, 255, 255, 12, 11, 10, 9, 8, 7, 16, 255, 255, 255, 255, 2, 3, 4, 5, 255, 255, 255, 255, 255, 15, 14, 6, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255};

Then in the sample scannetworks.ino file. Serial1.begin(115200,16,17);

after these changes it works great.

mvturkes avatar Nov 07 '20 14:11 mvturkes

hello, i found a solution in my own way. At first I changed the firmware of esp32. I compiled "esp32-at" with the directives here. .... after these changes it works great.

Any chance you could post your compiled esp32 (for maxduino)? :)

canDry avatar Feb 28 '21 01:02 canDry

I confirm this problem with a Maixduino. Running the ScanNetworks example just displays:

[WiFiEsp] Cannot initialize ESP module
[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] No tag found
WiFi shield not present

Same issue with me.

uraninite avatar Jul 04 '21 18:07 uraninite

what version and code do you use?

BackMountainDevil avatar Mar 25 '22 01:03 BackMountainDevil

The default firmware on the ESP32 uses SPI communication, see my comment here to see how to use it: https://github.com/sipeed/Maixduino/issues/87#issuecomment-1275044906

romainreignier avatar Oct 11 '22 17:10 romainreignier