【已解决】esp32s3进行https-OTA时,出现wifi:m f null,更新失败

linshc
Posts: 59
Joined: Mon Feb 21, 2022 2:06 am

【已解决】esp32s3进行https-OTA时,出现wifi:m f null,更新失败

Postby linshc » Tue Dec 13, 2022 7:35 am

使用的IDF为4.4.3,芯片为esp32s3F4R2.在进行https-ota时,进行到esp_https_ota_begin()出现了wifi:m f null的log然后HTTPS OTA Begin失败了!打印出来的DRAM内存为15512,psram为2077745,基本没怎么用到。是由于内存太少导致的吗?应该如何解决呢?以下为日志消息。

Code: Select all

I (127960) aliyun-task: [2022-12-13 14:59:47.725] OTA target firmware version: 1.0.1, size: 1347216 Bytes URL:https://iotx-ota.oss-cn-shanghai.aliyuncs.com/ota/9658090a2f2c25df127980a7b83a7d9e/clblvifq100083590ez25kcug.bin?Expires=1671001187&OSSAccessKeyId=LTAI4G1TuWwSirnbAzUHfL3e&Signature=lbKSSa3fd8220i1C1kr6AS1jEqQ%3D
I (127990) aliyun-task: [2022-12-13 14:59:47.754] starting download thread in 2 seconds ......
I (130000) aliyun-task: [2022-12-13 14:59:49.760] uxHighWaterMark:5768
I (130000) aliyun-task: [2022-12-13 14:59:49.762] free headsize:2092987 //esp_get_free_heap_size()
I (130000) aliyun-task: SPIRAM size:2077475 //heap_caps_get_free_size(MALLOC_CAP_SPIRAM)
I (130010) aliyun-task: intRAM size:15512 //heap_caps_get_free_size(MALLOC_CAP_INTERNAL)
W (130220) wifi:m f null

W (130280) wifi:m f null

W (135640) esp-tls: Failed to open new connection in specified timeout
E (135640) TRANSPORT_BASE: Failed to open a new connection
E (135650) HTTP_CLIENT: Connection failed, sock < 0
E (135650) esp_https_ota: Failed to open HTTP connection: ESP_ERR_HTTP_CONNECT
E (135660) esp_https_ota: Failed to establish HTTP connection
[1670914795.426][LK-0309] pub: /ota/device/progress/a1RlyRUfXpl/BRS0006
E (135670) aliyun-task: [2022-12-13 14:59:55.432] ESP HTTPS OTA Begin failed
I (135680) aliyun-task: [2022-12-13 14:59:55.437] download thread exit
Last edited by linshc on Fri Dec 16, 2022 6:19 am, edited 1 time in total.

linshc
Posts: 59
Joined: Mon Feb 21, 2022 2:06 am

Re: esp32s3进行https-OTA时,出现wifi:m f null,更新失败

Postby linshc » Tue Dec 13, 2022 9:35 am

有技术支持来回答一下这个问题吗?在线等。

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: esp32s3进行https-OTA时,出现wifi:m f null,更新失败

Postby ESP_ICY » Fri Dec 16, 2022 6:09 am

RAM 内存剩余太小了,尝试把东西多放点到PSRAM里

linshc
Posts: 59
Joined: Mon Feb 21, 2022 2:06 am

Re: esp32s3进行https-OTA时,出现wifi:m f null,更新失败

Postby linshc » Fri Dec 16, 2022 6:19 am

确实是ram太少了,我修改了配置sdkconfig,打开了CONFIG_SPIRAM_USE_MALLOC,然后将CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL改小后。ram的空间变大了,就正常了。

Who is online

Users browsing this forum: No registered users and 61 guests