circuitpython/ports
Jeff Epler 953f44b46e
Fix spiram limit calculation on esp32
esp32 places the psram start at SOC_EXTRAM_DATA_LOW and it can extend
up to SOC_EXTRAM_DATA_SIZE. This is different than esp32-s2 and later,
which place the end at EXTRAM_DATA_HIGH and the limitation of
SOC_EXTRAM_DATA_SIZE was not previously identified as important.
Additionally, the esp32 has a reserved area within himem which was
not being accounted for.

With this change, the Feather ESP32 V2 feather can be used via thonny,
and the other "quick memory corruption tests" I was performing
also all succeed instead of failing.

Before this change, the incorrect address being used for spiram was
0x3fa00000..0x3fc00000 (2MiB). Now, it's 0x3f800000..0x3f9c0000 (1.75MiB)
due to the reserved area and the changed start address.

This is intended to be a no-effect change for other espressif chips besides
original esp32.
2022-07-13 10:52:15 -05:00
..
atmel-samd update samd-peripherals submodule 2022-07-08 22:47:36 -04:00
broadcom refactor debug UART to console UART; get working on ESP32 2022-06-30 23:16:46 -04:00
cxd56 Separate translate object control from LTO 2022-05-31 12:42:59 -07:00
espressif Fix spiram limit calculation on esp32 2022-07-13 10:52:15 -05:00
litex Conditionalize LTO 2022-05-27 12:59:54 -07:00
mimxrt10xx refactor debug UART to console UART; get working on ESP32 2022-06-30 23:16:46 -04:00
nrf refactor debug UART to console UART; get working on ESP32 2022-06-30 23:16:46 -04:00
raspberrypi issue adafruit#6538 loose bounds checking on WAIT PIO instruction 2022-07-02 14:32:20 -07:00
stm refactor debug UART to console UART; get working on ESP32 2022-06-30 23:16:46 -04:00
unix Fix dependencies for translate.c again 2022-06-07 07:35:54 +02:00