Replies: 1 comment
-
There is already an issue for that: #85440 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
My goal is to build the
samples/drivers/video/tcpserversink
andsamples/drivers/video/capture_to_lvgl
for thexiao/esp32/procpu/sense
platform, however I am out of memory, and I don't think the 8MB SPI PSRAM is being used properly.I have added a DTS overlay
samples/drivers/video/tcpserversink/boards/xiao_esp32s3_procpu_sense.overlay
:And I have made a
samples/drivers/video/tcpserversink/boards/xiao_esp32s3_procpu_sense.conf
with the following:The SPI-RAM chip according to the schematic is a GD25Q64 (8MB) which I believe should be in Quad mode (although the exact type/mode shouldn't matter just to build)
The build fails at the linker stage, with various "DRAM segment data does not fit" messages.
Full build output
As per my Kconfig, I have tried a few options to move data from DRAM to PSRAM already, and even reduced the Heap Mem Pool to 40000, producing a warning
Am I doing anything wrong here, is there anything else that I need to do to fully utilise the ESP-SPIRAM in Zephyr?
If not, I will make this into an issue - but what is the technical limitation in Zephyr that needs fixing to solve this?
Even the basic
samples/net/wifi/shell
does not seem to build for this board (for the same out-of-RAM reasons)Nor does
samples/drivers/video/capture
And even
samples/hello_world
uses 11% IRAM, 12% DRAM, and apparently 14% (1MB) ext_DRAM if I try to enable the SPI-RAM:Mem Usage (Hello World)
Config (Hello World)
If I try to enable CONFIG_SPIRAM_RODATA for hello_world then I get a build error too
Build Output (Hello World)
What's going on?
I notice there is a DTS warning about duplicate unit-address 0x3c000000 but I'm not sure what's causing that, it might be a clue to my issue.
Cheers
Beta Was this translation helpful? Give feedback.
All reactions