Dataset Viewer
Auto-converted to Parquet Duplicate
messages
listlengths
3
5
meta
dict
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "ringbuf_0030", "category": "ringbuf", "tags": [ "ownership", "latency", "vRingbufferReturnItem" ], "difficulty": "advanced", "style": "compare", "apis": [ "xRingbufferReceive", "vRingbufferReturnItem" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "timers_freertos_0039", "category": "timers_freertos", "tags": [ "change-period" ], "difficulty": "intermediate", "style": "code_lab", "apis": [ "xTimerChangePeriod", "xTimerChangePeriodFromISR" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "tasks_basic_0010", "category": "tasks_basic", "tags": [ "stack", "high-water-mark" ], "difficulty": "intermediate", "style": "checklist", "apis": [ "xTaskCreate", "uxTaskGetStackHighWaterMark" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "isr_critical_0078", "category": "isr_critical", "tags": [ "deadlock", "portMUX" ], "difficulty": "advanced", "style": "checklist", "apis": [ "taskENTER_CRITICAL" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "nested...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "stream_msg_buffers_0037", "category": "stream_msg_buffers", "tags": [ "stream-buffer", "create" ], "difficulty": "intermediate", "style": "compare", "apis": [ "xStreamBufferCreate", "xStreamBufferSend", "xStreamBufferReceive", "vStreamBufferDelete" ], "esp_idf_version_...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "notifications_0028", "category": "notifications", "tags": [ "indexed", "notification" ], "difficulty": "advanced", "style": "code_lab", "apis": [ "xTaskNotifyIndexed", "xTaskNotifyWaitIndexed", "ulTaskNotifyTakeIndexed" ], "esp_idf_version_note": "v5.x conceptual", "sour...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "compare_choose_0009", "category": "compare_choose", "tags": [ "delay", "timer" ], "difficulty": "beginner", "style": "compare", "apis": [ "vTaskDelayUntil", "xTimerStart" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "debug_troubleshoot_0017", "category": "debug_troubleshoot", "tags": [ "stack-overflow" ], "difficulty": "intermediate", "style": "qa", "apis": [ "uxTaskGetStackHighWaterMark", "vApplicationStackOverflowHook" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "queues_0041", "category": "queues", "tags": [ "backpressure", "overflow" ], "difficulty": "intermediate", "style": "qa", "apis": [ "xQueueSend", "uxQueueSpacesAvailable", "uxQueueMessagesWaiting" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "mul...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "patterns_0019", "category": "patterns", "tags": [ "work-queue", "defer" ], "difficulty": "intermediate", "style": "debug", "apis": [ "xQueueSend", "xTaskCreate" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": true, "fact_item_id": "work...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "timers_esp_0040", "category": "timers_esp", "tags": [ "lifecycle", "teardown" ], "difficulty": "intermediate", "style": "checklist", "apis": [ "esp_timer_stop", "esp_timer_delete" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "hooks_tls_wdt_0041", "category": "hooks_tls_wdt", "tags": [ "idle-hook" ], "difficulty": "intermediate", "style": "code_lab", "apis": [ "esp_register_freertos_idle_hook", "esp_register_freertos_idle_hook_for_cpu" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "timers_esp_0011", "category": "timers_esp", "tags": [ "esp_timer", "periodic" ], "difficulty": "beginner", "style": "code_lab", "apis": [ "esp_timer_create", "esp_timer_start_periodic", "esp_timer_stop", "esp_timer_delete" ], "esp_idf_version_note": "v5.x conceptual", ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "hooks_tls_wdt_0047", "category": "hooks_tls_wdt", "tags": [ "interrupt-wdt", "debug" ], "difficulty": "intermediate", "style": "compare", "apis": [ "taskENTER_CRITICAL", "taskEXIT_CRITICAL" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "patterns_0070", "category": "patterns", "tags": [ "priority", "architecture" ], "difficulty": "advanced", "style": "checklist", "apis": [ "xTaskCreate", "xQueueSend" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id":...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "isr_critical_0027", "category": "isr_critical", "tags": [ "error-handling", "isr" ], "difficulty": "intermediate", "style": "compare", "apis": [ "configASSERT" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "assert_i...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "tasks_smp_0028", "category": "tasks_smp", "tags": [ "affinity", "smp" ], "difficulty": "advanced", "style": "code_lab", "apis": [ "vTaskCoreAffinitySet", "vTaskCoreAffinityGet" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fac...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "patterns_0005", "category": "patterns", "tags": [ "work-queue", "defer" ], "difficulty": "intermediate", "style": "qa", "apis": [ "xQueueSend", "xTaskCreate" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "work_q...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "semaphores_mutexes_0002", "category": "semaphores_mutexes", "tags": [ "counting-semaphore", "pool" ], "difficulty": "intermediate", "style": "compare", "apis": [ "xSemaphoreCreateCounting", "xSemaphoreTake", "xSemaphoreGive" ], "esp_idf_version_note": "v5.x conceptual", ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "queues_0031", "category": "queues", "tags": [ "query", "queue" ], "difficulty": "beginner", "style": "code_lab", "apis": [ "uxQueueSpacesAvailable", "uxQueueMessagesWaiting" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_i...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "timers_esp_0003", "category": "timers_esp", "tags": [ "timestamp", "profiling" ], "difficulty": "beginner", "style": "compare", "apis": [ "esp_timer_get_time" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "esp_timer...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "notifications_0040", "category": "notifications", "tags": [ "indexed", "notification" ], "difficulty": "advanced", "style": "code_lab", "apis": [ "xTaskNotifyIndexed", "xTaskNotifyWaitIndexed", "ulTaskNotifyTakeIndexed" ], "esp_idf_version_note": "v5.x conceptual", "sour...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "patterns_0045", "category": "patterns", "tags": [ "actor", "message-passing" ], "difficulty": "intermediate", "style": "qa", "apis": [ "xQueueSend", "xTaskCreate" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "a...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "debug_troubleshoot_0056", "category": "debug_troubleshoot", "tags": [ "interrupt-wdt", "critical-section" ], "difficulty": "advanced", "style": "qa", "apis": [ "taskENTER_CRITICAL" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fac...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "notifications_0047", "category": "notifications", "tags": [ "counting", "burst" ], "difficulty": "intermediate", "style": "qa", "apis": [ "vTaskNotifyGiveFromISR", "ulTaskNotifyTake" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "memory_heap_0030", "category": "memory_heap", "tags": [ "stack", "heap", "tradeoff" ], "difficulty": "beginner", "style": "debug", "apis": [ "xTaskCreate", "heap_caps_malloc" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": true, "fa...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "memory_heap_0017", "category": "memory_heap", "tags": [ "stack", "heap", "tradeoff" ], "difficulty": "beginner", "style": "code_lab", "apis": [ "xTaskCreate", "heap_caps_malloc" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "debug_troubleshoot_0046", "category": "debug_troubleshoot", "tags": [ "timer", "daemon" ], "difficulty": "intermediate", "style": "code_lab", "apis": [ "xTimerStart", "xTimerCreate" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "timers_freertos_0047", "category": "timers_freertos", "tags": [ "scalability", "design" ], "difficulty": "advanced", "style": "compare", "apis": [ "xTimerCreate" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "many_t...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "queues_0017", "category": "queues", "tags": [ "queue", "create" ], "difficulty": "beginner", "style": "code_lab", "apis": [ "xQueueCreate", "vQueueDelete" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "xqueuecre...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "patterns_0023", "category": "patterns", "tags": [ "pubsub", "event-group" ], "difficulty": "intermediate", "style": "code_lab", "apis": [ "xEventGroupSetBits", "xEventGroupWaitBits" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "event_groups_0056", "category": "event_groups", "tags": [ "fsm", "bits" ], "difficulty": "intermediate", "style": "compare", "apis": [ "xEventGroupSetBits", "xEventGroupClearBits", "xEventGroupWaitBits" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated",...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "ringbuf_0033", "category": "ringbuf", "tags": [ "allow-split", "wrap", "vRingbufferReturnItem" ], "difficulty": "advanced", "style": "compare", "apis": [ "xRingbufferReceiveSplit", "vRingbufferReturnItem" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "debug_troubleshoot_0065", "category": "debug_troubleshoot", "tags": [ "stack-overflow" ], "difficulty": "intermediate", "style": "debug", "apis": [ "uxTaskGetStackHighWaterMark", "vApplicationStackOverflowHook" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated",...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "patterns_0040", "category": "patterns", "tags": [ "dma", "double-buffer" ], "difficulty": "advanced", "style": "code_lab", "apis": [ "xSemaphoreGiveFromISR", "heap_caps_malloc" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fac...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "semaphores_mutexes_0054", "category": "semaphores_mutexes", "tags": [ "counting-semaphore", "isr" ], "difficulty": "intermediate", "style": "code_lab", "apis": [ "xSemaphoreGiveFromISR", "xSemaphoreCreateCounting" ], "esp_idf_version_note": "v5.x conceptual", "source": "gene...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "tasks_smp_0013", "category": "tasks_smp", "tags": [ "pinToCore", "smp" ], "difficulty": "beginner", "style": "code_lab", "apis": [ "xTaskCreatePinnedToCore" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "pinned_crea...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "patterns_0036", "category": "patterns", "tags": [ "isr", "deferred" ], "difficulty": "beginner", "style": "compare", "apis": [ "vTaskNotifyGiveFromISR", "xQueueSendFromISR" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_it...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "memory_heap_0045", "category": "memory_heap", "tags": [ "high-water-mark", "stack" ], "difficulty": "beginner", "style": "checklist", "apis": [ "uxTaskGetStackHighWaterMark", "uxTaskGetStackHighWaterMark2" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "queues_0068", "category": "queues", "tags": [ "FromISR", "queue", "yield" ], "difficulty": "intermediate", "style": "qa", "apis": [ "xQueueSendFromISR", "xQueueReceiveFromISR" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "semaphores_mutexes_0067", "category": "semaphores_mutexes", "tags": [ "lifecycle", "delete" ], "difficulty": "intermediate", "style": "code_lab", "apis": [ "vSemaphoreDelete" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "tasks_basic_0067", "category": "tasks_basic", "tags": [ "debug", "name" ], "difficulty": "beginner", "style": "debug", "apis": [ "pcTaskGetName", "xTaskGetHandle" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": true, "fact_item_id": "ta...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "semaphores_mutexes_0079", "category": "semaphores_mutexes", "tags": [ "deadlock", "lock-order" ], "difficulty": "advanced", "style": "code_lab", "apis": [ "xSemaphoreTake", "xSemaphoreCreateMutex" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "tasks_smp_0051", "category": "tasks_smp", "tags": [ "core-id", "smp" ], "difficulty": "beginner", "style": "qa", "apis": [ "xPortGetCoreID" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "xport_get_core_id" }
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "tasks_basic_0020", "category": "tasks_basic", "tags": [ "task", "handle", "vTaskDelete" ], "difficulty": "beginner", "style": "code_lab", "apis": [ "xTaskCreate", "vTaskDelete" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "tasks_basic_0111", "category": "tasks_basic", "tags": [ "task", "static-alloc", "xTaskCreateStatic" ], "difficulty": "intermediate", "style": "code_lab", "apis": [ "xTaskCreateStatic" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false,...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "tasks_basic_0099", "category": "tasks_basic", "tags": [ "parameters", "lifetime" ], "difficulty": "intermediate", "style": "qa", "apis": [ "xTaskCreate" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "task_parameter_...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "event_groups_0038", "category": "event_groups", "tags": [ "wait", "set", "bits" ], "difficulty": "beginner", "style": "debug", "apis": [ "xEventGroupSetBits", "xEventGroupWaitBits" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": true,...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "tasks_basic_0050", "category": "tasks_basic", "tags": [ "yield", "timeslice" ], "difficulty": "intermediate", "style": "qa", "apis": [ "taskYIELD", "vTaskDelay" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "yie...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "debug_troubleshoot_0036", "category": "debug_troubleshoot", "tags": [ "TWDT", "watchdog" ], "difficulty": "intermediate", "style": "qa", "apis": [ "esp_task_wdt_reset", "esp_task_wdt_add" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": fa...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "compare_choose_0027", "category": "compare_choose", "tags": [ "static-alloc", "dynamic" ], "difficulty": "beginner", "style": "code_lab", "apis": [ "xQueueCreateStatic", "xQueueCreate" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "debug_troubleshoot_0032", "category": "debug_troubleshoot", "tags": [ "flash", "IRAM", "ota" ], "difficulty": "advanced", "style": "compare", "apis": [ "IRAM_ATTR" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "timers_freertos_0040", "category": "timers_freertos", "tags": [ "stop", "delete", "reset" ], "difficulty": "intermediate", "style": "qa", "apis": [ "xTimerStop", "xTimerReset", "xTimerDelete" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "mul...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "tasks_smp_0049", "category": "tasks_smp", "tags": [ "pinToCore", "smp" ], "difficulty": "beginner", "style": "compare", "apis": [ "xTaskCreatePinnedToCore" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "pinned_creat...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "stream_msg_buffers_0059", "category": "stream_msg_buffers", "tags": [ "compare", "uart" ], "difficulty": "intermediate", "style": "compare", "apis": [ "xStreamBufferSend", "xQueueSend" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "notifications_0025", "category": "notifications", "tags": [ "give", "take", "semaphore-like" ], "difficulty": "beginner", "style": "qa", "apis": [ "xTaskNotifyGive", "ulTaskNotifyTake" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": f...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "queues_0050", "category": "queues", "tags": [ "send", "receive", "timeout" ], "difficulty": "beginner", "style": "code_lab", "apis": [ "xQueueSend", "xQueueReceive" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_i...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "event_groups_0034", "category": "event_groups", "tags": [ "compare", "notification" ], "difficulty": "intermediate", "style": "code_lab", "apis": [ "xEventGroupSetBits", "xTaskNotify" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false,...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "timers_freertos_0022", "category": "timers_freertos", "tags": [ "query", "debug" ], "difficulty": "intermediate", "style": "code_lab", "apis": [ "xTimerIsTimerActive", "xTimerGetExpiryTime" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "timers_esp_0021", "category": "timers_esp", "tags": [ "esp_timer", "periodic" ], "difficulty": "beginner", "style": "qa", "apis": [ "esp_timer_create", "esp_timer_start_periodic", "esp_timer_stop", "esp_timer_delete" ], "esp_idf_version_note": "v5.x conceptual", "sou...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "ringbuf_0017", "category": "ringbuf", "tags": [ "metrics", "debug" ], "difficulty": "intermediate", "style": "qa", "apis": [ "vRingbufferGetInfo", "xRingbufferGetMaxItemSize" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "ringbuf_0015", "category": "ringbuf", "tags": [ "FromISR" ], "difficulty": "intermediate", "style": "code_lab", "apis": [ "xRingbufferSendFromISR", "xRingbufferReceiveFromISR" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_ite...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "tasks_basic_0017", "category": "tasks_basic", "tags": [ "priority", "architecture" ], "difficulty": "advanced", "style": "debug", "apis": [ "xTaskCreate" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": true, "fact_item_id": "max_priorities_...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "queues_0052", "category": "queues", "tags": [ "FromISR", "queue", "yield" ], "difficulty": "intermediate", "style": "qa", "apis": [ "xQueueSendFromISR", "xQueueReceiveFromISR" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "debug_troubleshoot_0019", "category": "debug_troubleshoot", "tags": [ "priority-inversion" ], "difficulty": "intermediate", "style": "qa", "apis": [ "xSemaphoreCreateMutex", "xSemaphoreCreateBinary" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_tu...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "memory_heap_0007", "category": "memory_heap", "tags": [ "static-alloc", "design" ], "difficulty": "intermediate", "style": "checklist", "apis": [ "xQueueCreateStatic", "xTaskCreateStatic" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": fa...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "isr_critical_0045", "category": "isr_critical", "tags": [ "deferred", "pattern" ], "difficulty": "intermediate", "style": "code_lab", "apis": [ "vTaskNotifyGiveFromISR", "xTimerPendFunctionCallFromISR" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "m...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "event_groups_0026", "category": "event_groups", "tags": [ "wait", "set", "bits" ], "difficulty": "beginner", "style": "debug", "apis": [ "xEventGroupSetBits", "xEventGroupWaitBits" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": true,...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "memory_heap_0003", "category": "memory_heap", "tags": [ "pvPortMalloc", "malloc" ], "difficulty": "intermediate", "style": "qa", "apis": [ "pvPortMalloc", "vPortFree", "malloc" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "isr_critical_0070", "category": "isr_critical", "tags": [ "softirq", "pend" ], "difficulty": "advanced", "style": "qa", "apis": [ "xTimerPendFunctionCallFromISR" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "softwa...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "queues_0088", "category": "queues", "tags": [ "static-alloc", "queue" ], "difficulty": "intermediate", "style": "qa", "apis": [ "xQueueCreateStatic" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "static_queue" }
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "isr_critical_0009", "category": "isr_critical", "tags": [ "gpio", "interrupt-clear" ], "difficulty": "intermediate", "style": "checklist", "apis": [ "xQueueSendFromISR" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "patterns_0075", "category": "patterns", "tags": [ "work-queue", "defer" ], "difficulty": "intermediate", "style": "qa", "apis": [ "xQueueSend", "xTaskCreate" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "work_q...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "tasks_basic_0097", "category": "tasks_basic", "tags": [ "state", "eTaskGetState", "debug" ], "difficulty": "beginner", "style": "compare", "apis": [ "eTaskGetState" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "tasks_smp_0064", "category": "tasks_smp", "tags": [ "affinity", "smp" ], "difficulty": "advanced", "style": "compare", "apis": [ "vTaskCoreAffinitySet", "vTaskCoreAffinityGet" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "event_groups_0007", "category": "event_groups", "tags": [ "static-alloc" ], "difficulty": "intermediate", "style": "code_lab", "apis": [ "xEventGroupCreateStatic" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "static_ev...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "tasks_smp_0040", "category": "tasks_smp", "tags": [ "affinity", "smp" ], "difficulty": "advanced", "style": "code_lab", "apis": [ "vTaskCoreAffinitySet", "vTaskCoreAffinityGet" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fac...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "tasks_basic_0100", "category": "tasks_basic", "tags": [ "stack", "high-water-mark" ], "difficulty": "intermediate", "style": "qa", "apis": [ "xTaskCreate", "uxTaskGetStackHighWaterMark" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": fals...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "timers_esp_0013", "category": "timers_esp", "tags": [ "timestamp", "profiling" ], "difficulty": "beginner", "style": "code_lab", "apis": [ "esp_timer_get_time" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "esp_time...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "hooks_tls_wdt_0018", "category": "hooks_tls_wdt", "tags": [ "compare", "design" ], "difficulty": "beginner", "style": "compare", "apis": [ "esp_register_freertos_tick_hook", "esp_timer_create", "xTimerCreate" ], "esp_idf_version_note": "v5.x conceptual", "source": "gener...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "hooks_tls_wdt_0017", "category": "hooks_tls_wdt", "tags": [ "interrupt-wdt", "debug" ], "difficulty": "intermediate", "style": "compare", "apis": [ "taskENTER_CRITICAL", "taskEXIT_CRITICAL" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "memory_heap_0004", "category": "memory_heap", "tags": [ "stack", "heap", "tradeoff" ], "difficulty": "beginner", "style": "qa", "apis": [ "xTaskCreate", "heap_caps_malloc" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "isr_critical_0040", "category": "isr_critical", "tags": [ "float", "isr" ], "difficulty": "beginner", "style": "qa", "apis": [ "xQueueSendFromISR" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "float_in_isr_forbidde...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "timers_esp_0027", "category": "timers_esp", "tags": [ "reconfigure" ], "difficulty": "intermediate", "style": "code_lab", "apis": [ "esp_timer_stop", "esp_timer_start_periodic" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_it...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "debug_troubleshoot_0068", "category": "debug_troubleshoot", "tags": [ "TWDT", "watchdog" ], "difficulty": "intermediate", "style": "debug", "apis": [ "esp_task_wdt_reset", "esp_task_wdt_add" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn":...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "tasks_smp_0039", "category": "tasks_smp", "tags": [ "core-id", "smp" ], "difficulty": "beginner", "style": "code_lab", "apis": [ "xPortGetCoreID" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "xport_get_core_id" }
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "timers_freertos_0038", "category": "timers_freertos", "tags": [ "one-shot", "auto-reload", "debounce" ], "difficulty": "beginner", "style": "compare", "apis": [ "xTimerCreate", "xTimerStart", "xTimerReset" ], "esp_idf_version_note": "v5.x conceptual", "source": "gene...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "queues_0085", "category": "queues", "tags": [ "peek", "queue" ], "difficulty": "intermediate", "style": "checklist", "apis": [ "xQueuePeek", "xQueuePeekFromISR" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "xqu...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "event_groups_0028", "category": "event_groups", "tags": [ "FromISR", "event-group" ], "difficulty": "intermediate", "style": "migrate", "apis": [ "xEventGroupSetBitsFromISR", "xEventGroupClearBitsFromISR" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "queues_0010", "category": "queues", "tags": [ "pointer-queue", "ownership" ], "difficulty": "intermediate", "style": "qa", "apis": [ "xQueueSend", "xQueueReceive" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "q...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "tasks_basic_0056", "category": "tasks_basic", "tags": [ "task", "handle", "vTaskDelete" ], "difficulty": "beginner", "style": "qa", "apis": [ "xTaskCreate", "vTaskDelete" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "hooks_tls_wdt_0005", "category": "hooks_tls_wdt", "tags": [ "idle", "starvation", "TWDT" ], "difficulty": "intermediate", "style": "checklist", "apis": [ "esp_task_wdt_reset", "xTaskCreatePinnedToCore" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "queues_0094", "category": "queues", "tags": [ "multi-producer", "demux" ], "difficulty": "beginner", "style": "debug", "apis": [ "xQueueSend" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "multi_producer" }
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "tasks_basic_0062", "category": "tasks_basic", "tags": [ "suspend", "resume" ], "difficulty": "intermediate", "style": "debug", "apis": [ "vTaskSuspend", "vTaskResume", "vTaskResumeFromISR" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "patterns_0058", "category": "patterns", "tags": [ "pipeline", "smp" ], "difficulty": "intermediate", "style": "compare", "apis": [ "xQueueSend", "xTaskNotifyGive" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "p...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "stream_msg_buffers_0021", "category": "stream_msg_buffers", "tags": [ "framing", "protocol" ], "difficulty": "intermediate", "style": "debug", "apis": [ "xStreamBufferSend", "xStreamBufferReceive" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "event_groups_0063", "category": "event_groups", "tags": [ "clear", "get" ], "difficulty": "beginner", "style": "qa", "apis": [ "xEventGroupClearBits", "xEventGroupGetBits" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_ite...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "memory_heap_0043", "category": "memory_heap", "tags": [ "stack", "heap", "tradeoff" ], "difficulty": "beginner", "style": "code_lab", "apis": [ "xTaskCreate", "heap_caps_malloc" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, ...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "stream_msg_buffers_0046", "category": "stream_msg_buffers", "tags": [ "reset" ], "difficulty": "intermediate", "style": "migrate", "apis": [ "xStreamBufferReset" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "fact_item_id": "reset_stre...
[ { "role": "system", "content": "You are an expert embedded systems engineer specializing in ESP32, ESP-IDF, and FreeRTOS. You write clear, production-minded C for ESP-IDF projects, call out ISR vs task context, memory and real-time tradeoffs, and common pitfalls. Prefer ESP-IDF v5.x APIs and idioms. When va...
{ "id": "notifications_0041", "category": "notifications", "tags": [ "mailbox", "overwrite" ], "difficulty": "intermediate", "style": "code_lab", "apis": [ "xTaskNotify", "xTaskNotifyWait" ], "esp_idf_version_note": "v5.x conceptual", "source": "generated", "multi_turn": false, "...
End of preview. Expand in Data Studio

FreeRTOS ESP32

Instructional ChatML dataset for fine-tuning language models (e.g. Qwen via Unsloth) as an expert ESP32 / ESP-IDF / FreeRTOS assistant.

Content is original instructional material oriented around ESP-IDF v5.x FreeRTOS APIs and idioms — not a verbatim dump of vendor documentation.

Dataset summary

Item Value
Format Hub Dataset / JSONL with ChatML messages (system / user / assistant)
Total examples 1160
Train 1101
Validation 59 (~5%, stratified by category)
License MIT
Language English
Focus FreeRTOS on ESP32 (ESP-IDF), embedded C, real-time patterns

Each row has a messages list (ChatML) and a meta object (id, category, tags, difficulty, style, APIs, etc.).

Schema

{
  "messages": [
    {"role": "system", "content": "..."},
    {"role": "user", "content": "..."},
    {"role": "assistant", "content": "..."}
  ],
  "meta": {
    "id": "tasks_basic_0042",
    "category": "tasks_basic",
    "tags": ["xTaskCreate", "stack"],
    "difficulty": "intermediate",
    "style": "code_lab",
    "apis": ["xTaskCreate", "vTaskDelay"],
    "esp_idf_version_note": "v5.x conceptual",
    "source": "generated",
    "multi_turn": false
  }
}
  • Every row has system plus at least one user / assistant pair.
  • ~12% multi-turn (debug-style follow-ups).
  • Categories cover tasks, SMP/pin-to-core, queues, semaphores/mutexes, event groups, FreeRTOS & ESP timers, stream/message buffers, notifications, ISR/critical sections, heap/heap_caps, ring buffers, hooks/TLS/WDT, design patterns, debug/troubleshoot, and compare/choose.

Load

from datasets import load_dataset

ds = load_dataset("rafuke/freertos_esp32")
print(ds)
print(len(ds["train"]), len(ds["validation"]))
print(ds["train"][0]["messages"][0]["role"])

Fine-tuning sketch (Unsloth + Qwen)

Map messages through the tokenizer chat template:

from datasets import load_dataset

dataset = load_dataset("rafuke/freertos_esp32")

def to_text(batch, tokenizer):
    texts = [
        tokenizer.apply_chat_template(
            msgs,
            tokenize=False,
            add_generation_prompt=False,
        )
        for msgs in batch["messages"]
    ]
    return {"text": texts}

# train_ds = dataset["train"].map(lambda b: to_text(b, tokenizer), batched=True, ...)

Intended use

  • Supervised fine-tuning (SFT) of instruct models for ESP32 / FreeRTOS Q&A and code assistance.
  • Evaluation of embedded RTOS knowledge in chat format.

Out of scope / known limitations

  • Not a substitute for official docs. Prefer Espressif ESP-IDF and FreeRTOS reference manuals for authoritative API contracts, errata, and chip-specific behavior.
  • Answers target ESP-IDF v5.x conceptual usage; APIs and defaults can differ across IDF versions and SoCs (ESP32, S2, S3, C3, C6, H2, etc.).
  • Vanilla FreeRTOS vs ESP-IDF FreeRTOS differences (SMP, pin-to-core, TWDT, heap_caps, ring buffers) are called out in spirit, but edge cases may be incomplete.
  • Generated instructional content may contain occasional inaccuracies; validate critical code on hardware.
  • Not a full project corpus (no complete sdkconfig / multi-file apps per row).
  • English only.

License

MIT — see LICENSE in this repository.

Citation

If you use this dataset, please cite the Hub repo:

@misc{freertos_esp32,
  title  = {FreeRTOS ESP32},
  author = {rafuke},
  year   = {2026},
  url    = {https://huggingface.co/datasets/rafuke/freertos_esp32}
}
Downloads last month
32