opencv component overload DRAM.bss , how can i put into PSRAM
opencv component overload DRAM.bss , how can i put into PSRAM
I tried to put EXT_RAM_BSS_ATTR , example: EXT_RAM_BSS_ATTR cv::QRCodeDetector QRdetecter; but didnt't work , dram.bss still overload, i read there is also possible to place the BSS section of a component or a library to external RAM using linker fragment scheme extram_bss. But how? there is no further instruction.
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: opencv component overload DRAM.bss , how can i put into PSRAM
There's an option for that somewhere in menuconfig. Note that you do need to annotate the bss variables you want in psram with a certain attribute; see the help for the menuconfig option.
Re: opencv component overload DRAM.bss , how can i put into PSRAM
I know CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY, Found in: Component config > ESP PSRAM > CONFIG_SPIRAM > SPI RAM config, I enable it before .I really don't konw how to ues extram_bss to make components .bss into PSRAM.bssESP_Sprite wrote: ↑Fri Mar 22, 2024 11:41 amThere's an option for that somewhere in menuconfig. Note that you do need to annotate the bss variables you want in psram with a certain attribute; see the help for the menuconfig option.
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: opencv component overload DRAM.bss , how can i put into PSRAM
If you enable that, you can mark variables to live in PSRAM BSS rather than internal BSS. Example:
would become
to allocate it in PSRAM.
Code: Select all
char very_big_variable[1024*1024];
Code: Select all
#include <esp_attr.h>
...
EXT_RAM_BSS_ATTR char very_big_variable[1024*1024];
Re: opencv component overload DRAM.bss , how can i put into PSRAM
Thanks, i understand,it can't work on C++ CLASS.ESP_Sprite wrote: ↑Sat Mar 23, 2024 2:57 amIf you enable that, you can mark variables to live in PSRAM BSS rather than internal BSS. Example:would becomeCode: Select all
char very_big_variable[1024*1024];
to allocate it in PSRAM.Code: Select all
#include <esp_attr.h> ... EXT_RAM_BSS_ATTR char very_big_variable[1024*1024];
Who is online
Users browsing this forum: No registered users and 104 guests