Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
dmage opened this issue Nov 10, 2024 · 3 comments
Open
3 tasks done

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

dmage opened this issue Nov 10, 2024 · 3 comments
Labels
Status: Opened Issue is new

Comments

@dmage
Copy link

dmage commented Nov 10, 2024

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.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).

@dmage dmage added the Type: Bug bugs in IDF label Nov 10, 2024
@github-actions github-actions bot changed the title blink: RGB LED doesn't stay on on ESP32-C6-DevKitC-1 blink: RGB LED doesn't stay on on ESP32-C6-DevKitC-1 (IDFGH-14035) Nov 10, 2024
@espressif-bot espressif-bot added the Status: Opened Issue is new label Nov 10, 2024
@suda-morris suda-morris removed the Type: Bug bugs in IDF label Nov 11, 2024
@suda-morris
Copy link
Collaborator

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
Copy link
Author

dmage commented Nov 11, 2024

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.

@Sourtoast
Copy link

Hi I have the exact same issue with my board

Im on macOS, ESP32-C6-DevKitC-1
IDF version: ESP-IDF v5.5-dev-2182-ga6c3a9cbbb
Chip version: ESP32-C6 (QFN40) (revision v0.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new
Projects
None yet
Development

No branches or pull requests

4 participants