🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Tab5: Arduino configTime and configTzTime return the wrong date and time (way off)

    Arduino
    1
    1
    11
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dheijl
      last edited by

      The configTime() or configTzTime() functions do not return errors but the returned date and time are way off: up to 2 days in the future and totally wrong time too.

      The esp32 code shown in this makernote works without fail on the same Tab5 device.

      my platformio.ini:

      [env:esp32p4_pioarduino]
      platform = https://github.com/pioarduino/platform-espressif32.git#54.03.21
      upload_speed = 1500000
      monitor_speed = 115200
      build_type = debug
      framework = arduino
      board = esp32-p4-evboard
      board_build.mcu = esp32p4
      board_build.flash_mode = qio
      board_build.partitions = default_16MB.csv
      board_build.filesystem = spiffs
      build_flags = 
      	-DBOARD_HAS_PSRAM
      	-DCORE_DEBUG_LEVEL=5
      	-DARDUINO_USB_CDC_ON_BOOT=1
      	-DARDUINO_USB_MODE=1
      lib_deps = 
      	https://github.com/M5Stack/M5Unified.git
      	https://github.com/M5Stack/M5GFX.git
      
      

      Other Arduino stuff is broken too: after wakeup from lightsleep the display does not work properly half of the time: the cursor position is sometimes totally off, or sometimes it does not wake at all. I suppose the display needs a hardware reset via a GPIO, but can't find any mention of this in the docs.

      But the hardware is very nice indeed. Especially the undocumented coin battery backup for the RTC is a nice surprise!

      1 Reply Last reply Reply Quote 0
      • First post
        Last post