test linux
This commit is contained in:
parent
de8d9ede17
commit
e391e044e5
13
.devcontainer/Dockerfile
Normal file
13
.devcontainer/Dockerfile
Normal 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"]
|
||||||
33
.devcontainer/devcontainer.json
Normal file
33
.devcontainer/devcontainer.json
Normal 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
3
.gitmodules
vendored
@ -4,3 +4,6 @@
|
|||||||
[submodule "components/esp_littlefs"]
|
[submodule "components/esp_littlefs"]
|
||||||
path = components/esp_littlefs
|
path = components/esp_littlefs
|
||||||
url = https://github.com/joltwallet/esp_littlefs.git
|
url = https://github.com/joltwallet/esp_littlefs.git
|
||||||
|
[submodule "FreeRTOS"]
|
||||||
|
path = FreeRTOS
|
||||||
|
url = https://github.com/FreeRTOS/FreeRTOS/
|
||||||
|
|||||||
@ -20,8 +20,8 @@ else()
|
|||||||
set(EXTRA_COMPONENT_DIRS
|
set(EXTRA_COMPONENT_DIRS
|
||||||
$ENV{IDF_PATH}/examples/protocols/linux_stubs/esp_stubs
|
$ENV{IDF_PATH}/examples/protocols/linux_stubs/esp_stubs
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/FreeRTOS
|
${CMAKE_CURRENT_SOURCE_DIR}/FreeRTOS
|
||||||
"/home/marc/esp-protocols/common_components/linux_compat"
|
# "/home/marc/esp-protocols/common_components/linux_compat"
|
||||||
"/home/marc/esp-protocols/components/mdns/tests/host_test/components"
|
# "/home/marc/esp-protocols/components/mdns/tests/host_test/components"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
1
FreeRTOS
Submodule
1
FreeRTOS
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 9b50dc160bf68567ada6151bb24b8b4fad91cb81
|
||||||
@ -199,12 +199,12 @@ void imgdwn(void *domotic_event_group) {
|
|||||||
if (source_buf == NULL) {
|
if (source_buf == NULL) {
|
||||||
ESP_LOGE(TAG, "Initial alloc source_buf failed!");
|
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();
|
download();
|
||||||
|
|
||||||
heap_caps_free(source_buf);
|
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);
|
vTaskDelay(3600000 / portTICK_PERIOD_MS);
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@ -413,7 +413,7 @@ void initialise_weather_data_retrieval(unsigned long retreival_period, void* dom
|
|||||||
TaskHandle_t xHandle = NULL;
|
TaskHandle_t xHandle = NULL;
|
||||||
BaseType_t ret1 = xTaskCreatePinnedToCore(&http_request_task, "http_meteof", 5 * 1024, domotic_event_group, 5, &xHandle, 1);
|
BaseType_t ret1 = xTaskCreatePinnedToCore(&http_request_task, "http_meteof", 5 * 1024, domotic_event_group, 5, &xHandle, 1);
|
||||||
if(ret1!=pdPASS ){
|
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");
|
ESP_LOGI(TAG, "HTTP request task started");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,9 +1,11 @@
|
|||||||
set(EXTRA_COMPONENT_DIRS ../components)
|
set(EXTRA_COMPONENT_DIRS ../components)
|
||||||
|
|
||||||
set(comps heap nvs_flash meteofrance esp_netif image_downloader fatfs protocol_examples_common mqtt )
|
set(comps heap nvs_flash meteofrance esp_netif image_downloader fatfs protocol_examples_common mqtt )
|
||||||
|
set(excludes "test.h")
|
||||||
|
|
||||||
if(${IDF_TARGET} STREQUAL "esp32p4")
|
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 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()
|
endif()
|
||||||
|
|
||||||
function (make_font fontSize)
|
function (make_font fontSize)
|
||||||
@ -16,6 +18,7 @@ make_font(24)
|
|||||||
|
|
||||||
|
|
||||||
idf_component_register(SRC_DIRS . fonts
|
idf_component_register(SRC_DIRS . fonts
|
||||||
|
EXCLUDE_SRCS ${excludes}
|
||||||
INCLUDE_DIRS "."
|
INCLUDE_DIRS "."
|
||||||
REQUIRES ${comps}
|
REQUIRES ${comps}
|
||||||
EMBED_TXTFILES ${project_dir}/main/ca_cert.pem
|
EMBED_TXTFILES ${project_dir}/main/ca_cert.pem
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user