Open zackees opened 1 year ago
This happens for the following platformio.ini
configurations:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:WT32-SC01]
platform = https://github.com/platformio/platform-espressif32.git
board = wt32-eth01
framework = arduino
upload_speed = 921600
monitor_speed = 115200
monitor_filters =
default
esp32_exception_decoder
;board_build.f_flash = 80000000L
build_flags =
-DCORE_DEBUG_LEVEL=2
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-I src/
And also:
board = esp-wrover-kit
And also:
board = esp32dev
I'm using VSCode with the arduino framework. It happens with the release:
platform = https://github.com/platformio/platform-espressif32.git
And also:
platform = espressif32
The error says that it can't enable spiram, which is interesting because the WT32-SCO uses psram. I can access and use the first 4mb of psram on the chip, which I've confirmed works with a memory test:
void *memory = ps_malloc(100000);
memset(memory, 0, 100000);
free(memory);
This issue only affects the upper 4mb high memory.
You cant address more than 4MB PSRAM with the ESP32.
The internet reports that people are accessing the upper 4mb psram through high mem bank switching. At the very least calling this function should not crash the system.
Anyways, not a platformio issue.
Does anyone know if this is issue is fixed with ESP-IDF v5.X?
I see that platformio latest (5.2.0) currently uses ESP-IDF v4.4.2 and proper support for the WT32-SCO board might have come after ESP-IDF v.4.4.2. It could just be a fix waiting for an upstream merge with the new toolchain.
@zackees You can use this project for WT32-* boards. Once PIO support for IDF 5.0 happens, will add the support in the project. https://github.com/sukesh-ak/ESP32-TUX/
@zackees And ESP-IDF himem sample is here https://github.com/espressif/esp-idf/tree/release/v5.0/examples/system/himem
hi, i was wondering if there is any progress adding these boards?
Does anyone know which board I can select as a work around?
I can compile and flash but
esp_highmem_get_phys_size()
andesp_himem_get_free_size()
both crash when called.Results in