-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wemos ATmega 2560 + ESP8266 / Reset uC Error (Console Interface) #477
Comments
It should work without any error, it just send impulse to reset pin. |
wifi is fine. i looked in the source, at least i know where the error is thrown now when hitting the "reset uC"-button in the webinterfaces, esp-link calls the function
which shows "uC reset" when the Status Code of the POST is between 200 and 300 (thats what i get when i havent hooked anything to GPIO12) and "Error resetting uC" with every other status code. (thats what i get when i connect GPIO12->atmegaReset) So it seems that the POST fails when i got the GPIO12 of the esp connected to the atmega Reset-Pin, could the esp some get "disrupted" by the resetting atmega? I got nothing else connted to the esp or atmega. |
timeout also could execute warning "error resetting uC" or you have power issues (3V/5V) ? |
Tried with |
I would be very surprised if the atmega bootloader listened on something other than uart0, something for you to check...
What do you mean by rx/tx console working? Can you interact with the atmega? You need to make sure you choose the correct pins in the esp-link pin assignment. Be sure to read your board's user manual carefully. You may have to look at the schematic... BTW, the board supposedly comes with the arduino bootloader, which is what you need. |
Heres a Link from Pinout of Wemos ATmega2560 where u can see the switch from uart 3 to uart 0: Yeah if i upload "Serial Read" Sketch on Arduino i can type "1" in console and get "1 and enter(ascii) from arduino back. My Board only need 1 pin this is reset pin. i found a guy who get it working with only the gpio pin from esp to reset from arduino. and i can see how arduino is resetting but console says Error Which is right Bootloader ? Arduino IDE -> Programmer -> Arduino as ISP ? Debug Console of ESP-LINK At Rebooting i was able to readout a lil bit serial communication esp8266<->atmega trough Microcontroller Console! If i type in "1" he say me recieved "1" Last Debug Try: Syslog Server Maybe i found something: |
I'm glad you sorted things out, windows has longer hiccups when it comes to ACKing TCP packets and that causes having in esp-link because of the buffer requirements. Your analysis of the reset problem looks correct. It's designed with the idea that the ATmega is the master: it can reset the esp8266 by toggling its reset line (I believe it can do that) but the esp8266 can't reset the ATmega. With esp-link you want the inverse behavior. |
By the way, Mega Core has available bootloader for other uarts numbers. |
@tve i dont want to ask why because its windows.. but i was very wondering its happend to esp link firmware but not to original AT firmware. Maybe GITbash was the problem. On WIN i even cant connect hostname.local so i must not wonder. @uzi18 |
I need to find out whats my Problem while OTA my Wemos ATmega2560 with built in Wifi. I update sketch to UART0 (same like USB) but still got the Console on ESP-Link on UART3. Here is how i fixed it: jeelabs/esp-link#477
Hello Dear esp-link community
first im running Windows 10,
i bought this board and i would like to use esp-link so I can OTA update the ATmega2560.
Wemos Mega: https://www.banggood.com/Geekcreit-Mega-WiFi-R3-Module-ATmega2560ESP8266-32Mb-Memory-USB-TTL-CH340G-p-1205437.html?rmmds=search&cur_warehouse=CN
schematics in the "documents"-tab
im sure the dip switches are set correctly and espt-RxTx goes to uart3
esp-link version: 3.2.47 alpha is working fine on the esp.
WebInterface and RX/TX console work fine.
i think my problems are somehow related:
when i hit the Console>reset uC Button in the esplink web-interface i get a message "Error Resetting uc".
But i know for sure that the atmega resets fine, why doesnt the web interface show this correct?
1.1) if i remove the resetpin from esp to arduino the reset uC Button replies: reset ok. but i see no reset - as there is no connection between esp and atmega.
Need help please :)
i wish u a great new year and thank you
The text was updated successfully, but these errors were encountered: