Out of memory in mbedTLS

Abierto
#2,341 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
c, erlang
Área
embedded-iot

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?

Lenguaje dominante
Erlang
Estrellas
2.3k
Forks
171
Merge medio
5 d 11 h
PR fusionados (30 d)
19

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de atomvm/AtomVM

Todos los issues de atomvm/AtomVM

Issues similares

Más issues de Embedded & IoT

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.