Posts: 588
Threads: 22
Joined: Jan 2017
Weather Station: Wetterstation Engolling
Country:
31-10-2018, 00:59
(This post was last modified: 31-10-2018, 01:02 by
engolling.)
Since the delivered example of the RTC library is working, there might be somewhere a memory overflow in the sketch which gets "visible" due to some different compiler behavior.
Found this in the changelog:
ARDUINO 1.8.6 2018.08.23
[ide]
* Updated arduino-builder to 1.4.0:
- parallel build (improve compile speed)
- better reuse of already compiled files
- Windows: fixed build for sketch stored under OneDrive cloud folders
Posts: 588
Threads: 22
Joined: Jan 2017
Weather Station: Wetterstation Engolling
Country:
31-10-2018, 01:10
(This post was last modified: 31-10-2018, 01:18 by
engolling.)
Im seeing clearer now:
Compiled with IDE 1.8.7 BUT AVR Board 1.6.10 in the board manager
01:08:48.914 -> ESP8266 FW Version: AT+GMR
01:08:51.914 -> AT version:1.2.0.0(Jul 1 2016 20:04:45)
01:08:51.914 -> SDK version:1.5.4.1(39cb9a32)
01:08:51.961 -> Ai-Thinker Technology Co. Ltd.
01:08:51.961 -> Dec 2 2016 14:21:16
01:08:51.961 -> OK
RTC current date: Oct 31 2018
01:09:05.507 -> RTC current time: 01:09:04
01:09:05.507 -> Sending NTP request to sync clock...
NTP replied
01:09:05.554 -> RTC Time2: 1540948145
01:09:05.601 -> Local Time: 1540948145
01:09:05.601 -> UTC time from NTP server: 00:09:05
01:09:05.601 -> RTC adjusted to local time: 01:09:05
01:09:05.648 -> RTC current date: Oct 31 2018
01:09:05.648 -> RTC current time: 01:09:05
01:09:05.648 ->
01:09:05.648 ->
WiFi connection is ON
Compiled with IDE 1.8.7 BUT AVR Board 1.6.22 in the board manager
01:13:17.994 -> ESP8266 FW Version: AT+GMR
01:13:20.978 -> AT version:1.2.0.0(Jul 1 2016 20:04:45)
01:13:20.978 -> SDK version:1.5.4.1(39cb9a32)
01:13:21.025 -> Ai-Thinker Technology Co. Ltd.
01:13:21.025 -> Dec 2 2016 14:21:16
01:13:21.025 -> OK
RTC current date: Oct 31 2018
01:13:34.541 -> RTC current time: 01:13:33
01:13:34.588 -> Sending NTP request to sync clock...
NTP replied
01:13:34.822 -> RTC Time2: 1573607614
01:13:34.822 -> Local Time: 1540948414
01:13:34.869 -> UTC time from NTP server: 00:13:34
01:13:34.869 -> RTC adjusted to local time: 01:13:34
01:13:34.869 -> RTC current date: Oct 31 2018
01:13:34.916 -> RTC current time: 01:13:34
01:13:34.916 ->
01:13:34.916 ->
WiFi connection is ON
Compiled with IDE 1.8.7 BUT AVR Board 1.6.20 in the board manager
01:16:23.580 -> ESP8266 FW Version: AT+GMR
01:16:26.580 -> AT version:1.2.0.0(Jul 1 2016 20:04:45)
01:16:26.626 -> SDK version:1.5.4.1(39cb9a32)
01:16:26.626 -> Ai-Thinker Technology Co. Ltd.
01:16:26.626 -> Dec 2 2016 14:21:16
01:16:26.626 -> OK
RTC current date: Oct 31 2018
01:16:40.173 -> RTC current time: 01:16:39
01:16:40.173 -> Sending NTP request to sync clock...
NTP replied
RTC Time2: 1540948600
01:16:40.314 -> Local Time: 1540948600
01:16:40.314 -> UTC time from NTP server: 00:16:40
01:16:40.361 -> RTC adjusted to local time: 01:16:40
01:16:40.361 -> RTC current date: Oct 31 2018
01:16:40.361 -> RTC current time: 01:16:40
01:16:40.408 ->
01:16:40.408 ->
WiFi connection is ON
Posts: 5.411
Threads: 336
Joined: Apr 2014
Weather Station: WeatherDuino 4Pro
Country:
Good point!
On my IDE 1.8.4 I have AVR Board 1.6.21
and AVR Board 1.6.22 with IDE 1.8.6
Seems that the change on boards manager version is what is causing the problem.
At least we have an explanation for the mystery.
Posts: 5.411
Threads: 336
Joined: Apr 2014
Weather Station: WeatherDuino 4Pro
Country:
Seems that AVR Board 1.6.21 isn't even available to install in IDE 1.8.6
Engolling if you have to work today in the morning maybe its becoming late, we can continue tomorrow. Thank you for this brainstorm.
Posts: 127
Threads: 15
Joined: Aug 2018
Country:
Excellent work gentlemen, have a well deserved break and sleep
41south.net.nz powered by WeatherDuino and Weewx