Search found 308 matches

by ESP_Dazz
Sat Feb 24, 2024 4:46 am
Forum: ESP-IDF
Topic: uxTaskGetSystemState leads to Guru Meditation Error
Replies: 2
Views: 216

Re: uxTaskGetSystemState leads to Guru Meditation Error

Smells like a stack overflow. Could you enable the `CONFIG_ESP_SYSTEM_PANIC_GDBSTUB` via menuconfig. This will automatically launch GDB on a crash. Then from the point of crash, please navigate up the call stack and print out the value of `pxTCB->pxStack` to see if it's a sane value. This should be ...
by ESP_Dazz
Thu Jan 18, 2024 2:13 pm
Forum: ESP-IDF
Topic: Core 0 panic'ed (IllegalInstruction) due to xTaskCreatePinnedToCore
Replies: 1
Views: 294

Re: Core 0 panic'ed (IllegalInstruction) due to xTaskCreatePinnedToCore

Task functions must never return. Add a `vTaskDelete(NULL);` at the end of your task function.

See https://www.freertos.org/a00125.html for more details.
by ESP_Dazz
Sat Jan 13, 2024 9:44 am
Forum: ESP-IDF 中文讨论版
Topic: ESP32S2 USB
Replies: 2
Views: 25438

Re: ESP32S2 USB

不能。一个 USB OTG 外设任何时候只能当 Host 或 Device。如需同事跑 Host 和 Device,芯片就要两个 USB OTG 外设。
by ESP_Dazz
Fri Sep 29, 2023 5:00 pm
Forum: General Discussion
Topic: ESP32 CAN/TWAI using IDF V5.1.1
Replies: 2
Views: 1652

Re: ESP32 CAN/TWAI using IDF V5.1.1

@Ezra_Krause A couple of pointers

- Double check which GPIOs you are using and whether they are Input and/or output capable (see Datasheet for list of GPIOs and their capabilities/restrictions)
- Try running the self-test example without the transceiver to see if it's an issue with the GPIOs
by ESP_Dazz
Wed Aug 23, 2023 3:14 am
Forum: ESP-IDF 中文讨论版
Topic: ESP32S3作为USB hosts使用usb_host_lib例程的收发程序怎么写
Replies: 3
Views: 2217

Re: ESP32S3作为USB hosts使用usb_host_lib例程的收发程序怎么写

指纹模块是属于哪个 USB Class (例如 CDC, HID, MSC 等等)?

可以用 Windows 设备管理器或 lsusb 查看设备是哪一个 class, 然后去调用 IDF 里对应的 Class 驱动。Class 驱动的示例在 https://github.com/espressif/esp-idf/tr ... s/usb/host.
by ESP_Dazz
Fri Jul 28, 2023 7:17 pm
Forum: General Discussion
Topic: What would you like to see in The Next Chip?
Replies: 426
Views: 753071

Re: What would you like to see in The Next Chip?

@MicroController w.r.t to the "timer capture hardware", the ETM (Event Task Matrix) on some of the newer chips (e.g., ESP32-C6) could be able to do this. It's basically this big routing matrix that allows routing certain peripheral " event " signals from one peripheral (e.g., GPIO edge interrupt eve...
by ESP_Dazz
Mon Jul 17, 2023 11:38 am
Forum: ESP-IDF
Topic: xQueueReceive Assert Failed
Replies: 12
Views: 5249

Re: xQueueReceive Assert Failed

Code: Select all

printf(queue_time_1);
This should be the issue. You can't do that in C is an "int" type and not a character or string. Use string formatting plcaeholders such as "%d" instead.
by ESP_Dazz
Mon Jul 17, 2023 11:11 am
Forum: ESP-IDF
Topic: xQueueReceive Assert Failed
Replies: 12
Views: 5249

Re: xQueueReceive Assert Failed

Could decode the backtrace using "addr2line" to find the function/line numbers in the backtrace (idf.py monitor will automatically decode the backtrace for you).