Go Down

Topic: Latest/Best Ethernet Bootloader for Mega2560 & W5100 (Read 1 time) previous topic - next topic

Juraj

I restarted Arduino, and it works  :)

Below the message:

Code: [Select]
Sketch uses 16940 bytes (6%) of program storage space. Maximum is 261120 bytes.
Global variables use 966 bytes (11%) of dynamic memory, leaving 7226 bytes for local variables. Maximum is 8192 bytes.
C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1/bin/arduinoOTA -address 192.168.0.22 -port 65280 -username arduino -password password -sketch C:\Users\User\AppData\Local\Temp\arduino_build_381075/s_ota.ino.bin -upload /sketch -b
Connecting to board ...  done
Uploading sketch ...  done
Flashing sketch ...  done

Sketch uploaded successfully


Many thanks Juraj!!!
did you check if the new sketch is running?

add
  Serial.println("build "  __TIME__);
to setup()

darcio

Yes the sketch is running, I changed the code with your line and it show the time on serial monitor.
Can you recommend a third-party serial monitor to cancel the switch between ports when need monitor and upload (COMx and Network port)?

Juraj

Yes the sketch is running, I changed the code with your line and it show the time on serial monitor.
Can you recommend a third-party serial monitor to cancel the switch between ports when need monitor and upload (COMx and Network port)?
(you could make that over network too with Telnet)

if you start the IDE second time with the desktop or menu shortcut, you can select different settings in the Tools menu

Vit_15500

did you check if the new sketch is running?

add
  Serial.println("build "  __TIME__);
to setup()
Juraj, I need your help.

Is it normal that network update doesn't work every first time after power on? Board not resetting.
And after clicking reset every update is successful.


Thx

Juraj

Juraj, I need your help.

Is it normal that network update doesn't work every first time after power on? Board not resetting.
And after clicking reset every update is successful.


Thx
and the shield connects to network after power-up successful?

Vit_15500

and the shield connects to network after power-up successful?

After Power up - Yes.
After 1st update - Yes, ping ok.
After Reset - Yes.
After next updates - Yes.

Juraj

and it only doesn't reset? after manual reset the new version is there?

Vit_15500

#37
Sep 13, 2019, 08:18 am Last Edit: Sep 13, 2019, 08:19 am by Vit_15500
and it only doesn't reset? after manual reset the new version is there?
Yes, it only doesn't reset.

After 1st update my test led not blink.
After manual reset - new sketch work.
And any next update works immediately.


About wdt.
wdt working right in simple sketch.
I add wdt to otethernet sample - not help, freeze done.


Is that just me?

Juraj

Yes, it only doesn't reset.

After 1st update my test led not blink.
After manual reset - new sketch work.
And any next update works immediately.


About wdt.
wdt working right in simple sketch.
I add wdt to otethernet sample - not help, freeze done.


Is that just me?
I will test the power-up situation.

what is the interval of the wdt? wdt_reset is not called while receiving and applying the update.
you can disable wdt or set a longer interval in function set as callback with ArduinoOTA.beforeApply(otaBeforeApplyCallback);

Vit_15500

I will test the power-up situation.

what is the interval of the wdt? wdt_reset is not called while receiving and applying the update.
you can disable wdt or set a longer interval in function set as callback with ArduinoOTA.beforeApply(otaBeforeApplyCallback);
Yes, my mega-board not reset after 1st update.
But other mega-board do reset every update, but can't flash by serial ))

I have no more idea how to fix reset-bug.


Juraj, thanks for help and mega respect for the ArduinoOTA.

Juraj

Yes, my mega-board not reset after 1st update.
But other mega-board do reset every update, but can't flash by serial ))

I have no more idea how to fix reset-bug.


Juraj, thanks for help and mega respect for the ArduinoOTA.

did you try to disable watchdog in beforeApply?

Juraj


Go Up