ESP32 메모리 (RAM)관련 내용

ESPRESSIF|2022. 4. 27. 11:10

ESP32의 IC내부 SRAM은 520KB로 WiFi stack, BT stack등을 올리고, MCU에서도 사용을 하면 메모리가 모자라는 경우가 종종 있습니다.

 

SRAM이 모자라면 어쩔수 없이 물리적으로 메모리를 늘여야 합니다. 이 경우는 PSRAM이 내장된 제품으로 변경을 해야 합니다. PSRAM이 내장된 제품은 ESP32-WROVER 시리즈 제품 혹은 ESP32-S3 제품 등 다양하게 있습니다. PSRAM이 내장된 모듈을 사용할 경우, SRAM을 2MB ~ 8MB까지 추가로 확보 가능하나, 그 만큼 비용이 올라가게 됩니다. 

 

대표적으로 PSRAM이 내장된 제품은 아래와 같습니다.

 

- ESP32-WROVER-E/IE : https://www.espressif.com/sites/default/files/documentation/esp32-wrover-e_esp32-wrover-ie_datasheet_en.pdf

- ESP32-PICO-V3-02 : https://www.espressif.com/sites/default/files/documentation/esp32-pico-v3-02_datasheet_en.pdf

- ESP32-S3-WROOM-1/1U (Option에서 PSRAM사용 제품으로 선택) 

https://www.espressif.com/sites/default/files/documentation/esp32-s3-wroom-1_wroom-1u_datasheet_en.pdf

 

 

ESP32에서 메모리관리에 대한 내용입니다.

 

1) IDF에서 메모리 최적화에 대한 내용입니다.

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/performance/ram-usage.html

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/performance/size.html#idf-py-size

 

2) 메모리 디버깅에 대한 내용입니다. 

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/heap_debug.html

 

3) 메모리 관련 Case study, blog 입니다. 메모리에 대한 중요한 내용입니다. 

https://blog.espressif.com/esp32-memory-analysis-case-study-eacc75fe5431

 

ESP32 Memory Analysis — Case Study

Memory has significant impact on silicon cost as well as die size, hence from hardware perspective having optimal size is important and…

blog.espressif.com

https://blog.espressif.com/esp32-programmers-memory-model-259444d89387

 

ESP32 Programmers’ Memory Model

Internal memory of the MCU is probably the most precious resource as it occupies maximum area in the chip. The newer application use-cases…

blog.espressif.com

https://blog.espressif.com/memory-availability-comparison-between-esp32-and-esp32-c3-10f2e65f055e

 

Memory Availability Comparison between ESP32 and ESP32-C3

Espressif launched ESP32-C3 at the end of 2020. It’s very well received and now it’s already in the mass production state. ESP32-C3…

blog.espressif.com

 


 

'ESPRESSIF' 카테고리의 다른 글

ESP32-S3-WROOM-1 / 1U 모듈 소개  (0) 2022.05.03
ESP32-WROOM + ESP32-WROVER co-layout 방안  (0) 2022.04.28
ESP32 AT command 시험 하기  (0) 2022.04.26
ESP32-S3-WROOM-1 - KC인증  (0) 2022.04.26
ESP32-C3 ADC 관련 노트  (0) 2022.04.05