espressif / qemu

Fork of QEMU with Espressif patches. See Wiki for details.
https://github.com/espressif/esp-toolchain-docs/blob/main/qemu/README.md
Other
224 stars 57 forks source link

Unable to increase the RAM size (QEMU-57) #52

Open manimathma opened 2 years ago

manimathma commented 2 years ago

We are getting following error message when we try to increase the ram size ==2766==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases! RAM size larger than 4 MB not supported Adding SPI flash device

~/qemu/build/qemu-system-xtensa -nographic -machine esp32 -drive file=flash_image.bin,if=mtd,format=raw -nic user,model=open_eth --m 8M

igrr commented 2 years ago

@manimathma ESP32 only has 4MB of address space which can be used for the external RAM, so this error is intentional.

Larger PSRAM sizes can be accessed using a banking mechanism (himem API), but it is relatively uncommon so we haven't implemented support for it.