Skip to content

Screen flickering/blinking after updating to esp32-core-3.3.6 (OK with esp32-core-3.3.5) - M5Stack Tab5 #185

@perpective2410

Description

@perpective2410

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.5.2.260116

Espressif SoC revision.

ESP32-C6

Operating System used.

Windows

How did you build your project?

Other (please specify in More Information)

If you are using Windows, please specify command line type.

None

Development Kit.

M5Stack Tab5

Power Supply used.

USB

What is the expected behavior?

I expected no flickering

What is the actual behavior?

Board

esp32-p4-evboard

Device Description

Note that I dont think there is a a board available for M5Stack tab5 as described in their example
Let me know if this issue in on the wrong repository.

Hardware Configuration

N/A

Version

v3.3.6

Type

Task

IDE Name

VSCode

Operating System

WIndows (WSL)

Flash frequency

40MHz

PSRAM enabled

yes

Upload speed

1500000

Description

PROBLEM DESCRIPTION

Since updating to platform-espressif32@55.03.36, the display is constantly blinking/flashing on M5Stack devices. The same code works perfectly fine with platform-espressif32@55.03.35.
I am creating this issue on this repo as recommended by @me-no-dev in the comment: espressif/arduino-esp32#12417 (comment)

If you compare both file: https://github.com/pioarduino/platform-espressif32/blob/55.03.36/platform.json and https://github.com/pioarduino/platform-espressif32/blob/55.03.35/platform.json
There is likely a regression in the esp-idf - Issue in https://github.com/pioarduino/esp-idf/releases/download/v5.5.2.260116/esp-idf-v5.5.2.tar.xz but its ok in this version https://github.com/pioarduino/esp-idf/releases/download/v5.5.1.251215/esp-idf-v5.5.1.tar.xz

The issue occurs consistently across all examples, not just specific to one project.

TO REPRODUCE

  1. Update platformio.ini to use platform-espressif32 @ 55.03.36
  2. Flash any M5Stack example to the device (tested with M5GFX BarGraph example)
  3. Observe screen flickering/blinking

Here is my template

[env:m5stack_tab5]
platform = https://github.com/pioarduino/platform-espressif32.git#55.03.36
board = esp32-p4-evboard
upload_speed = 1500000
monitor_speed = 115200
build_flags =
  ${env.build_flags}
  -I ${PROJECT_DIR}/examples/TFT_TideDisplay
  -DBOARD_HAS_PSRAM
  -DCORE_DEBUG_LEVEL=0
  -DARDUINO_USB_CDC_ON_BOOT=1
  -DARDUINO_USB_MODE=1
lib_deps =
  m5stack/M5Unified @ ^0.2.13
  m5stack/M5GFX @ ^0.2.19
  paulstoffregen/Time @ ^1.6.1

EXPECTED BEHAVIOUR

Display should render smoothly without flickering, as it does on v55.03.35

SCREENSHOTS

Screen continuously flickers/blinks, making the display unusable

Screen flickering demo

ADDITIONAL CONTEXT

  • Platform Version: platform-espressif32@55.03.36
  • Previously Working Version: platform-espressif32@55.03.35
  • Device: M5Stack Tab5
  • Framework: PlatformIO with ESP-IDF

The regression appears to be introduced in the 55.03.36 release. A revert to 55.03.35 resolves the issue immediately.
Same issue on the current main branch (3.3.7)

Key differences between 55.03.35 and 55.03.36

Image

(Please, remember to close the issue when the problem has been addressed)

Sketch

https://github.com/m5stack/M5GFX/blob/master/examples/Basic/BarGraph/BarGraph.ino

Debug Message

N/A

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Steps to reproduce.

See above

Debug Logs.


Diagnostic report archive.

No response

More Information.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions