espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.84k stars 7.32k forks source link

blink: RGB LED doesn't stay on on ESP32-C6-DevKitC-1 (IDFGH-14035) #14856

Open dmage opened 2 weeks ago

dmage commented 2 weeks ago

Answers checklist.

IDF version.

v5.4-dev-4076-gce6085349f

Espressif SoC revision.

ESP32-C6 (QFN40) (revision v0.0)

Operating System used.

Linux

How did you build your project?

Command line with idf.py

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

None

Development Kit.

ESP32-C6-DevKitC-1

Power Supply used.

USB

What is the expected behavior?

The LED blinks, but it stays on for about a second.

What is the actual behavior?

The LED flashes and instantly turns off. Video: https://www.youtube.com/watch?v=3eTQghAk8Ro (visible only on 60fps)

Steps to reproduce.

~/esp/master/esp-idf (master)$ cd ./examples/get-started/blink/
~/esp/master/esp-idf/examples/get-started/blink (master)$ idf.py set-target esp32c6
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
<...>
-- Configuring done (253.8s)
-- Generating done (1.5s)
-- Build files have been written to: /mnt/storage/user_esp/master/esp-idf/examples/get-started/blink/build
~/esp/master/esp-idf/examples/get-started/blink (master)$ idf.py -p /dev/ttyACM0 build flash monitor
<...>
I (245) main_task: Started on CPU0
I (245) main_task: Calling app_main()
I (245) example: Example configured to blink addressable LED!
I (255) example: Turning the LED OFF!
I (1255) example: Turning the LED ON!
I (2255) example: Turning the LED OFF!
I (3255) example: Turning the LED ON!

Debug Logs.

No response

More Information.

If I change color in main/blink_example_main.c

-led_strip_set_pixel(led_strip, 0, 16, 16, 16);
+led_strip_set_pixel(led_strip, 0, 16, 0, 0);

it starts to work as expected. It works with (16,0,0), (0,16,0), (0,0,16), but it doesn't work with (16,16,0) or (16,16,16).

suda-morris commented 2 weeks ago

I can't reproduce the issue on my ESP32-C6-DevKitC-1 V1.1 board. I watched your video, maybe your LED (WS2812) is broken somehow?

dmage commented 2 weeks ago

I hoped that a new board shouldn't have such issues, but it may well be the case. Yellow (15,15,0) spontaneously turns off after 5-10 seconds. Red immediately turns off for values 23 and more. Green and blue work much better, yet still weird glitches happen - occasionally it doesn't react on updates or turns off instead of changing color.