8000 former `configTime` method no longer works. · Issue #7141 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content
former configTime method no longer works. #7141
Closed
@whyameye

Description

@whyameye

Basic Infos

  • This issue complies with the issue POLICY doc.
  • I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • If there is a stack dump, I have decoded it.
  • I have filled out all fields below.

Platform

  • Hardware: ESP-12F
  • Core Version: commit 2522403
  • Development Env: 1.8.9
  • Operating System: Ubuntu 18.04

Settings in IDE

  • Module: Generic ESP8266 Module
  • Flash Mode: qio
  • Flash Size: 4MB
  • lwip Variant: v2 Lower Memory
  • Reset Method: nodemcu
  • Flash Frequency: 40Mhz
  • CPU Frequency: 80Mhz
  • Upload Using: SERIAL
  • Upload Speed: 921600

Problem Description

configTime appears to now have a new format for calls --- a welcome change. Unfortunately the previous format no longer works despite the documentation saying that it does.

MCVE Sketch

using example included in core NTP-TZ-DST.ino , line 223 reads former configTime is still valid... which I interpret to mean:

  • line 218 can be commented out: //configTime(MYTZ, "pool.ntp.org");
  • and line 225 can be uncommented: //configTime(7 * 3600, 3600 / 2, "pool.ntp.org");

and the example should still work. It crashes instead. Decoded stack dump below.

I discovered this when my own code for getting time via NTP stopped working after I updated to latest commit on master branch.

Debug Messages

Decoding stack results
0x40206e15: _printf_i at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf_i.c line 226
0x4020ad56: __ssputs_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c line 233
0x4020b187: _svfprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c line 667
0x40203d89: uart_tx_fifo_available(int) at /home/user/Arduino/hardware/esp8266com/esp8266/cores/esp8266/uart.cpp line 463
0x40203db4: uart_do_write_char(int, char) at /home/user/Arduino/hardware/esp8266com/esp8266/cores/esp8266/uart.cpp line 476
0x4020866d: _vsnprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/vsnprintf.c line 73
0x4020866d: _vsnprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/vsnprintf.c line 73
0x40203e79: uart_write(uart_t*, char const*, size_t) at /home/user/Arduino/hardware/esp8266com/esp8266/cores/esp8266/uart.cpp line 509
0x40201bfc: ESP8266WiFiSTAClass::status() at /home/user/Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 634
0x402086b0: vsnprintf at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/vsnprintf.c line 42
0x40201ebc: HardwareSerial::write(unsigned char const*, unsigned int) at /home/user/Arduino/hardware/esp8266com/esp8266/cores/esp8266/HardwareSerial.h line 165
0x40201eb0: HardwareSerial::write(unsigned char const*, unsigned int) at /home/user/Arduino/hardware/esp8266com/esp8266/cores/esp8266/HardwareSerial.h line 164
0x40201eb0: HardwareSerial::write(unsigned char const*, unsigned int) at /home/user/Arduino/hardware/esp8266com/esp8266/cores/esp8266/HardwareSerial.h line 164
0x40202248: Print::printf(char const*, ...) at /home/user/Arduino/hardware/esp8266com/esp8266/cores/esp8266/Print.cpp line 63
0x402021e9: Print::write(char const*) at /home/user/Arduino/hardware/esp8266com/esp8266/cores/esp8266/Print.h line 62
0x4020240d: Print::printNumber(unsigned long, unsigned char) at /home/user/Arduino/hardware/esp8266com/esp8266/cores/esp8266/Print.cpp line 268
0x40203e79: uart_write(uart_t*, char const*, size_t) at /home/user/Arduino/hardware/esp8266com/esp8266/cores/esp8266/uart.cpp line 509
0x40205d39: _findenv_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdlib/getenv_r.c line 99
0x40201eb0: HardwareSerial::write(unsigned char const*, unsigned int) at /home/user/Arduino/hardware/esp8266com/esp8266/cores/esp8266/HardwareSerial.h line 164
0x4020126a: showTime() at /tmp/arduino_modified_sketch_870741/NTP-TZ-DST.ino line 140
0x402014b2: setup() at /tmp/arduino_modified_sketch_870741/NTP-TZ-DST.ino line 239
0x40202398: Print::println(char const*) at /home/user/Arduino/hardware/esp8266com/esp8266/cores/esp8266/Print.cpp line 198
0x40202da8: loop_wrapper() at /home/user/Arduino/hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_main.cpp line 182

Metadata

Metadata

Assignees

Labels

waiting for feedbackWaiting on additional info. If it's not received, the issue may be closed.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0