-
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 ATmega2560 + ESP8266 OTA Upload Size Limit? #478
Comments
There is no size limit on the esp-link side, it streams the data through. You need to get a more specific error message from esp-link, e.g. by following the tip at the end of your output or looking into esp-link's log. |
Blink.ino OTA Upload:
My TouchLCD Sketch:
heres my esp error log on uart0
as i sayd, other sketches no problem . Please help me :) [edited by tve to fix formatting] |
Looks like the programming actually worked, given the uart0 log... what happens if you reset atmega, doesn't your sketch start? |
Hey :) Thanks for your fast answer.. If i upload blink example with 5 seconds builtinLED on, it looks like he get stucked "after flash". BuiltinLED is blinking twice (i think its bootloader). After pressing "reset uC", normally starting blink sketch life after the flash. Esp reloads instant. I tried to flash my big sketch, same error like in my last comment here. I looked at Serial (ESP Console) and builtinLED. Both are hidden but the "bootloader twice flash" appears. Now i tried to force him this flash with "reset uC" like i did until esp working for me. Esp big lag. Sometimes near crash after lagging, sometime crash and i have to restart both. I definitly god a nearly error like i got with the combined reset pins. I see uC resetting but i dont get a answer "reset ok" from esp. i instantly reset the browser and couldnt reach the interface. I got 16 different tabs inside arduino they will be combined to my sketch.hex. This cant be the reason or what do you think about it. i will try to blank esp and reinstall esp-link. i tested yesterday ota with optiboot but i'll be really happy if i could use esp-link for my Wifi. Like that Software! Im trying to read into optiboots bootloader maybe i dont only waste time with it :D |
is there a place with arduino ota source? |
|
Everytime i get (can't open device "192.168.0.24") i typed in console: ping 192.168.0.24, and got a good response. So i think my ide only got a to short "timeout time"? What do you think? In the Issue #480 i found a fix for optiboot OTA. So i tested different sketch sizes, all uploader, all bootloader and this fix "dirty Lucjan mod download and conversation" in the issue #480 - fix by "uzi18" i think that was a fix for "Bad programmer signature"
Greetings and thank you for the help |
@baervers23 do you want to resolve something more? 2560StdBooloader is for flash2560.py or megaflash |
the mega-flash scipt help-text suggests that it is to be used with a mega+optiboot bootloader, got me confused Lines 15 to 26 in 75448fd
|
it's wrong, will update this script megacore optiboot has nice features like ota update and enable sketch to write data to own flash |
@baervers23 for optiboot you should try avrflash script like described here: please retry your tests with optiboot and my esp-linkMOD |
I tried with avrflash without port because with 23 and 2323 i get timeout and no connection to esp. this is what terminal say
and here is esp log
|
are you sure optiboot is on 115200 ? |
Thats my output from the ESP-Link Console Subpage Baudrate 57600
|
@baervers23 I have found my mega board will reflash it to optiboot and test this situation |
thank you :) it will make it much easier i think haha |
@baervers23
As you can see no error, but firmware is not flashed properly - after flash it does not work, need to find why. mega board - chinese clone with ch340 usb serial bridge |
flashing with avrdude works ok |
Amazing. After figured out why my esp link is so unstable (it was a wrong antenna but the plug fit ;( ) i reflashed and reconfigured all, put the wemos on the real working distance and tried to flash. It works without any troubles, without sync failures or any other problem. Maybe i should think about reprogramming the avrdude line in arduino and recompile it :) Uzi ure the best! Thank you a lot for getting my Wemos working and for troubleshooting with me :) Stay Healthy and greetings from Austria |
thanks, my todo is to figure out why it not work properly with integrated optiboot programer in esp-link |
integrate because safing memory on arduino ? or do u want to upload a hex in web overlay like user1 & user2 bin files ? skipping avrdude ?! |
@baervers23 no, optiboot flasher is integrated into esp-link but looks like buggy if avrdude must be used, but still we have avrdude as alternative :) |
Hello community
I got a new Problem but im not sure im right thinking about the reason of my fail message.
I got all worked. Esp working fine, Arduino working fine, OTA works while testing with Blink Sketch without any problems in IDE.
Folder "arduino_build_649279" where the hex is into have 2,84 MB with all Folder and Files and the uploaded hex is 211kb big.
AGrowBrain.ino.eep AGrowBrain.ino.elf AGrowBrain.ino.hex AGrowBrain.ino.with_bootloader.hex build.options.json core includes.cache libraries preproc sketch
Error IDE:
Arduino: 1.8.10 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
Sketch uses 76494 bytes (30%) of program storage space. Maximum is 253952 bytes.
Global variables use 2375 bytes (28%) of dynamic memory, leaving 5817 bytes for local variables. Maximum is 8192 bytes.
C:\Users\Baervers\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0/bin/arduinoOTA -address 192.168.0.24 -port 80 -sketch C:\Users\Baervers\AppData\Local\Temp\arduino_build_649279/AGrowBrain.ino.hex -upload /pgmmega/upload -sync /pgmmega/sync -reset /log/reset -sync_exp 204:SYNC
Resetting the board
Waiting for the upload to start
SYNC at 115200 baud, board 1e.98.01, hardware v15, firmware 2.10
Connecting to board ... done
Uploading sketch ... done
Flashing sketch ... Error flashing the sketch
Flashing sketch ... Error flashing the sketch
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Thank you for your help
The text was updated successfully, but these errors were encountered: