test linux

This commit is contained in:
Marc PASTEUR 2025-05-21 14:16:28 +00:00
parent de8d9ede17
commit e391e044e5
9 changed files with 118 additions and 1853 deletions

13
.devcontainer/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
ARG DOCKER_TAG=v5.5-dev
FROM espressif/idf:${DOCKER_TAG}
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
RUN apt-get update -y && apt-get install udev -y
RUN echo "source /opt/esp/idf/export.sh > /dev/null 2>&1" >> ~/.bashrc
ENTRYPOINT [ "/opt/esp/entrypoint.sh" ]
CMD ["/bin/bash", "-c"]

View File

@ -0,0 +1,33 @@
{
"name": "ESP-IDF QEMU",
"build": {
"dockerfile": "Dockerfile",
"args": {
"HTTPS_PROXY":"http://proxy-web.service.cnp.cs.recouv:3128",
"HTTP_PROXY":"http://proxy-web.service.cnp.cs.recouv:3128",
}
},
"remoteEnv": {
"HTTPS_PROXY":"http://proxy-web.service.cnp.cs.recouv:3128",
"HTTP_PROXY":"http://proxy-web.service.cnp.cs.recouv:3128",
},
"containerEnv": {
"HTTPS_PROXY":"http://proxy-web.service.cnp.cs.recouv:3128",
"HTTP_PROXY":"http://proxy-web.service.cnp.cs.recouv:3128",
},
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "bash",
"idf.espIdfPath": "/opt/esp/idf",
"idf.toolsPath": "/opt/esp",
"idf.gitPath": "/usr/bin/git"
},
"extensions": [
"espressif.esp-idf-extension",
"espressif.esp-idf-web"
]
}
},
"runArgs": ["--privileged"]
}

3
.gitmodules vendored
View File

@ -4,3 +4,6 @@
[submodule "components/esp_littlefs"]
path = components/esp_littlefs
url = https://github.com/joltwallet/esp_littlefs.git
[submodule "FreeRTOS"]
path = FreeRTOS
url = https://github.com/FreeRTOS/FreeRTOS/

View File

@ -20,8 +20,8 @@ else()
set(EXTRA_COMPONENT_DIRS
$ENV{IDF_PATH}/examples/protocols/linux_stubs/esp_stubs
${CMAKE_CURRENT_SOURCE_DIR}/FreeRTOS
"/home/marc/esp-protocols/common_components/linux_compat"
"/home/marc/esp-protocols/components/mdns/tests/host_test/components"
# "/home/marc/esp-protocols/common_components/linux_compat"
# "/home/marc/esp-protocols/components/mdns/tests/host_test/components"
)
endif()

1
FreeRTOS Submodule

@ -0,0 +1 @@
Subproject commit 9b50dc160bf68567ada6151bb24b8b4fad91cb81

View File

@ -199,12 +199,12 @@ void imgdwn(void *domotic_event_group) {
if (source_buf == NULL) {
ESP_LOGE(TAG, "Initial alloc source_buf failed!");
}
printf("Free heap after buffers allocation: %"PRIu16"\n", xPortGetFreeHeapSize());
printf("Free heap after buffers allocation: %zd\n", xPortGetFreeHeapSize());
download();
heap_caps_free(source_buf);
printf("Free heap after buffers allocation: %"PRIu16"\n", xPortGetFreeHeapSize());
printf("Free heap after buffers allocation: %zd\n", xPortGetFreeHeapSize());
vTaskDelay(3600000 / portTICK_PERIOD_MS);
}else{

View File

@ -413,7 +413,7 @@ void initialise_weather_data_retrieval(unsigned long retreival_period, void* dom
TaskHandle_t xHandle = NULL;
BaseType_t ret1 = xTaskCreatePinnedToCore(&http_request_task, "http_meteof", 5 * 1024, domotic_event_group, 5, &xHandle, 1);
if(ret1!=pdPASS ){
ESP_LOGE(TAG, "Impossible de creer la tache %"PRIi16, ret1);
ESP_LOGE(TAG, "Impossible de creer la tache %li", ret1);
}
ESP_LOGI(TAG, "HTTP request task started");
}

View File

@ -1,9 +1,11 @@
set(EXTRA_COMPONENT_DIRS ../components)
set(comps heap nvs_flash meteofrance esp_netif image_downloader fatfs protocol_examples_common mqtt )
set(excludes "test.h")
if(${IDF_TARGET} STREQUAL "esp32p4")
list(APPEND comps bsp_extra esp32_p4_function_ev_board sdmmc vfs littlefs wifi_logger app_update esp_https_ota espcoredump esp_http_server esp_wifi)
list(APPEND excludes esp_wifi.h)
endif()
function (make_font fontSize)
@ -16,6 +18,7 @@ make_font(24)
idf_component_register(SRC_DIRS . fonts
EXCLUDE_SRCS ${excludes}
INCLUDE_DIRS "."
REQUIRES ${comps}
EMBED_TXTFILES ${project_dir}/main/ca_cert.pem

1908
sdkconfig

File diff suppressed because it is too large Load Diff