feat(idf): socle projet ESP-IDF qui boote

Création du squelette ESP-IDF minimal coexistant avec le code
Arduino existant (src/, platformio.ini). Le build IDF ignore les
sources Arduino. app_main() log une bannière de boot et un heartbeat
toutes les 5 s. Validé sur carte ESP32 classique (A1S AudioKit) :
build OK (rtc_bl_phone.bin 158 KB), flash et boot observés en série.
This commit is contained in:
clement
2026-06-19 07:59:28 +02:00
parent d7ba42f5dd
commit 4ac05ca1f0
4 changed files with 30 additions and 0 deletions
+7
View File
@@ -435,3 +435,10 @@ docs/specs/tone_plan_wav_assets/assets
docs/wav_clean_8k/
docs/wav_ptt_vintage_8k/
# ESP-IDF
/build/
/sdkconfig
/sdkconfig.old
/dependencies.lock
/managed_components/
+3
View File
@@ -0,0 +1,3 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(rtc_bl_phone)
+5
View File
@@ -0,0 +1,5 @@
idf_component_register(
SRCS "app_main.c"
INCLUDE_DIRS "."
REQUIRES nvs_flash
)
+15
View File
@@ -0,0 +1,15 @@
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
static const char *TAG = "rtc_phone";
void app_main(void)
{
ESP_LOGI(TAG, "RTC BL PHONE — socle ESP-IDF v5.4 (esp32 classique)");
ESP_LOGI(TAG, "boot OK — aucun driver chargé (Phase 1)");
while (true) {
ESP_LOGI(TAG, "heartbeat");
vTaskDelay(pdMS_TO_TICKS(5000));
}
}