Último mensaje de la página anterior:
Running this test:#include <Arduino.h>
void setup(){
Serial.begin(115200);
Serial.printf("setup running on core %d", xPortGetCoreID());
Serial.println();
Serial.printf("Total PSRAM: %d", ESP.getPsramSize());
Serial.println();
Serial.printf("Free PSRAM: %d", ESP.getFreePsram());
Serial.println();
}
void loop(){
}
esptool.py v2.6
Serial port COM3
Connecting....
Chip is ESP32-PICO-D4 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
Serial Monitor:
setup running on core 1
Total PSRAM: 4194252
Free PSRAM: 4194252
The ESP32 can access external SPI RAM transparently, so you can use it as normal memory in your program code. However, because the address space for external memory is limited in size, only the first 4MiB can be used as such. Access to the remaining memory is still possible, however this needs to go through a bankswitching scheme controlled by the himem API.
El ESP32 puede acceder a la RAM SPI externa de forma transparente, por lo que puede usarla como memoria normal en su código de programa. Sin embargo, debido a que el espacio de direcciones para la memoria externa es de tamaño limitado, solo los primeros 4MiB se pueden usar como tales. El acceso a la memoria restante aún es posible, sin embargo, esto debe pasar por un esquema de cambio de banco controlado por la API de himem.
Himem API
https://github.com/espressif
Because we are only planning on emulating 8bit and 16bit retro computers 4096kB PSRAM plus 520kB SRAM should be plenty without needing to mess with Himem.
Debido a que solo estamos planeando emular computadoras retro de 8 bits y 16 bits, 4096kB PSRAM más 520kB SRAM deberían ser suficientes sin necesidad de meterse con Himem.