Out of memory in mbedTLS

Đang mở
#2,341 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
c, erlang
Lĩnh vực
embedded-iot

Hướng nghiên cứu

Start by locating where AtomVM configures mbedTLS and how ESP32 builds handle the two sdkconfig options, CONFIG_MBEDTLS_EXTERNAL_MEM_ALLOC and CONFIG_MBEDTLS_DYNAMIC_BUFFER. Check how the settings interact with regular and PSRAM-enabled ESP32 builds. Done means HTTPS tile downloads no longer run out of memory on the affected setup while both memory configurations remain supported.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I tried to download an open street map tile from their server using https on ESP32.
mbedTLS failed with an out of memory. It seems that the following sdkconfig options fix the problem:
Probably there is some sort of pre-allocated somewhere.

CONFIG_MBEDTLS_EXTERNAL_MEM_ALLOC=y
CONFIG_MBEDTLS_DYNAMIC_BUFFER=y

(I actually selected SPI ram option).

Shoud be changed to be the default? How to make this work both with regular and PSRAM enabled ESP32?

Ngôn ngữ chính
Erlang
Star
2.3k
Fork
171
Merge trung bình
5 ngày 11 giờ
Pull request đã merge (30 ngày)
19

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của atomvm/AtomVM

Tất cả issue của atomvm/AtomVM

Issue tương tự

Thêm issue về Embedded & IoT

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.