Без логов тяжелоBrc, 02 Дек. 19, 13:52Вечером воспроизведу и выложу.
Добавлено через 1дн. 1ч. 49мин.:
Скрытый текст
CC build/main/hd_http.oC:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c: In function 'cgiFwUpload':
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1639:17: error: unknown type name 'esp_app_desc_t'
esp_app_desc_t new_app_info;
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1640:54: error: 'esp_image_header_t' undeclared (first use in this function)
if (connData->post->buffLen > sizeof(esp_image_header_t) + sizeof(esp_image_segment_header_t) + sizeof(esp_app_desc_t)) {
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1640:54: note: each undeclared identifier is reported only once for each function it appears in
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1640:83: error: 'esp_image_segment_header_t' undeclared (first use in this function)
if (connData->post->buffLen > sizeof(esp_image_header_t) + sizeof(esp_image_segment_header_t) + sizeof(esp_app_desc_t)) {
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1640:120: error: 'esp_app_desc_t' undeclared (first use in this function)
if (connData->post->buffLen > sizeof(esp_image_header_t) + sizeof(esp_image_segment_header_t) + sizeof(esp_app_desc_t)) {
^
In file included from C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:33:0:
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1643:75: error: request for member 'version' in something not a structure or union
ESP_LOGD(TAG, "New firmware version: %s", new_app_info.version);
^
C:/msys32/home/Andrei/esp/esp-idf/components/log/include/esp_log.h:299:137: note: in definition of macro 'ESP_LOG_LEVEL'
if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^
C:/msys32/home/Andrei/esp/esp-idf/components/log/include/esp_log.h:268:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGD( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_DEBUG, tag, format, ##__VA_ARGS__)
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1643:21: note: in expansion of macro 'ESP_LOGD'
ESP_LOGD(TAG, "New firmware version: %s", new_app_info.version);
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1643:75: error: request for member 'version' in something not a structure or union
ESP_LOGD(TAG, "New firmware version: %s", new_app_info.version);
^
C:/msys32/home/Andrei/esp/esp-idf/components/log/include/esp_log.h:300:137: note: in definition of macro 'ESP_LOG_LEVEL'
else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^
C:/msys32/home/Andrei/esp/esp-idf/components/log/include/esp_log.h:268:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGD( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_DEBUG, tag, format, ##__VA_ARGS__)
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1643:21: note: in expansion of macro 'ESP_LOGD'
ESP_LOGD(TAG, "New firmware version: %s", new_app_info.version);
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1643:75: error: request for member 'version' in something not a structure or union
ESP_LOGD(TAG, "New firmware version: %s", new_app_info.version);
^
C:/msys32/home/Andrei/esp/esp-idf/components/log/include/esp_log.h:301:137: note: in definition of macro 'ESP_LOG_LEVEL'
else if (level==ESP_LOG_DEBUG ) { esp_log_write(ESP_LOG_DEBUG, tag, LOG_FORMAT(D, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^
C:/msys32/home/Andrei/esp/esp-idf/components/log/include/esp_log.h:268:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGD( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_DEBUG, tag, format, ##__VA_ARGS__)
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1643:21: note: in expansion of macro 'ESP_LOGD'
ESP_LOGD(TAG, "New firmware version: %s", new_app_info.version);
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1643:75: error: request for member 'version' in something not a structure or union
ESP_LOGD(TAG, "New firmware version: %s", new_app_info.version);
^
C:/msys32/home/Andrei/esp/esp-idf/components/log/include/esp_log.h:302:137: note: in definition of macro 'ESP_LOG_LEVEL'
else if (level==ESP_LOG_VERBOSE ) { esp_log_write(ESP_LOG_VERBOSE, tag, LOG_FORMAT(V, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^
C:/msys32/home/Andrei/esp/esp-idf/components/log/include/esp_log.h:268:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGD( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_DEBUG, tag, format, ##__VA_ARGS__)
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1643:21: note: in expansion of macro 'ESP_LOGD'
ESP_LOGD(TAG, "New firmware version: %s", new_app_info.version);
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1643:75: error: request for member 'version' in something not a structure or union
ESP_LOGD(TAG, "New firmware version: %s", new_app_info.version);
^
C:/msys32/home/Andrei/esp/esp-idf/components/log/include/esp_log.h:303:137: note: in definition of macro 'ESP_LOG_LEVEL'
else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^
C:/msys32/home/Andrei/esp/esp-idf/components/log/include/esp_log.h:268:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGD( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_DEBUG, tag, format, ##__VA_ARGS__)
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1643:21: note: in expansion of macro 'ESP_LOGD'
ESP_LOGD(TAG, "New firmware version: %s", new_app_info.version);
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1645:36: error: expected ';' before 'running_app_info'
esp_app_desc_t running_app_info;
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1646:25: error: implicit declaration of function 'esp_ota_get_partition_description' [-Werror=implicit-function-declaration]
if (esp_ota_get_partition_description(running, &running_app_info) == ESP_OK) {
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1646:69: error: 'running_app_info' undeclared (first use in this function)
if (esp_ota_get_partition_description(running, &running_app_info) == ESP_OK) {
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1650:63: error: implicit declaration of function 'esp_ota_get_last_invalid_partition' [-Werror=implicit-function-declaration]
const esp_partition_t* last_invalid_app = esp_ota_get_last_invalid_partition();
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1650:63: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1651:36: error: expected ';' before 'invalid_app_info'
esp_app_desc_t invalid_app_info;
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1652:78: error: 'invalid_app_info' undeclared (first use in this function)
if (esp_ota_get_partition_description(last_invalid_app, &invalid_app_info) == ESP_OK) {
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1658:74: error: request for member 'version' in something not a structure or union
if (memcmp(invalid_app_info.version, new_app_info.version, sizeof(new_app_info.version)) == 0) {
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1658:103: error: request for member 'version' in something not a structure or union
if (memcmp(invalid_app_info.version, new_app_info.version, sizeof(new_app_info.version)) == 0) {
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1666:44: error: request for member 'version' in something not a structure or union
if (memcmp(new_app_info.version, running_app_info.version, sizeof(new_app_info.version)) == 0) {
^
C:/msys32/home/Andrei/esp/esp32_hd/main/hd_http.c:1666:99: error: request for member 'version' in something not a structure or union
if (memcmp(new_app_info.version, running_app_info.version, sizeof(new_app_info.version)) == 0) {
^
cc1.exe: some warnings being treated as errors
make[1]: *** [/home/Andrei/esp/esp-idf/make/component_wrapper.mk:286: hd_http.o] Ошибка 1
make: *** [C:/msys32/home/Andrei/esp/esp-idf/make/project.mk:530: component-main-build] Ошибка 2
Andrei@PC MINGW32 ~/esp/esp32_hd