sipeed / Maixduino

Arduino port on Maix board ( k210 )
https://maixduino.sipeed.com
Other
216 stars 96 forks source link

ESP32 can't communicate #76

Open zpowellman opened 4 years ago

zpowellman commented 4 years ago

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.

technoblogy commented 4 years ago

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
sw-dev-code commented 4 years ago

Same problem on my side:

[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] Cannot initialize ESP module
mvturkes commented 4 years ago

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.

canDry commented 3 years ago

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)? :)

uraninite commented 3 years ago

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.

BackMountainDevil commented 2 years ago

what version and code do you use?

romainreignier commented 2 years ago

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