Search found 4 matches

by k1924001
Sun Mar 24, 2024 9:54 am
Forum: ESP-IDF
Topic: opencv component overload DRAM.bss , how can i put into PSRAM
Replies: 4
Views: 791

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: char very_big_variable[1024*1024]; would become #include <esp_attr.h> ... EXT_RAM_BSS_ATTR char very_big_variable[1024*1024]; to allocate it in PSRAM. Thanks, i understand,it can't work on C++ CLASS.
by k1924001
Fri Mar 22, 2024 4:38 pm
Forum: ESP-IDF
Topic: opencv component overload DRAM.bss , how can i put into PSRAM
Replies: 4
Views: 791

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. I know CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY, Found in: Component config > ESP PSRAM > CONFIG_SPIRAM > SP...
by k1924001
Fri Mar 22, 2024 4:22 am
Forum: ESP-IDF
Topic: opencv component overload DRAM.bss , how can i put into PSRAM
Replies: 4
Views: 791

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 furt...
by k1924001
Fri Mar 22, 2024 4:17 am
Forum: ESP-IDF 中文讨论版
Topic: opencv组件 .bss太大了 怎么放到片外RAM
Replies: 0
Views: 1835

opencv组件 .bss太大了 怎么放到片外RAM

我试过 在定义时,cv::QRCodeDetector QRdetecter 前面加 EXT_RAM_BSS_ATTR,但是并没有用。IDF文档中提到,利用链接器片段方案 extram_bss 将组件或库的 BSS 段放到片外 RAM 中。然而这方面的具体教程。