Search found 15 matches
- Wed Oct 18, 2023 1:14 pm
- Forum: ESP-IDF
- Topic: Largest contiguous RAM for HEAP
- Replies: 16
- Views: 8960
Re: Largest contiguous RAM for HEAP
This flag is another interesting one https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/kconfig.html#config-spiram-malloc-reserve-internal When SPIRAM allocation with malloc are enabled, it is possible to reserve a block of RAM for "specific needs" such as DMA etc. If this is ...
- Wed Oct 18, 2023 1:08 pm
- Forum: ESP-IDF
- Topic: Largest contiguous RAM for HEAP
- Replies: 16
- Views: 8960
Re: Largest contiguous RAM for HEAP
I think there is this flag, which may influence the behaviour: CONFIG_ESP32_IRAM_AS_8BIT_ACCESSIBLE_MEMORY https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/kconfig.html#config-esp32-iram-as-8bit-accessible-memory But I can't find this option any more in idf.py menuconfig, it...
- Wed Oct 18, 2023 10:56 am
- Forum: ESP-IDF
- Topic: Largest contiguous RAM for HEAP
- Replies: 16
- Views: 8960
Re: Largest contiguous RAM for HEAP
If you really don't want allocations to happen in a certain area, have you tried "reserving" it by doing the allocation before the other (smaller) allocations? If you need that space temporarily, you can still try to assign memory from the "reserved" space temporarily, effectively implementing your...
- Wed Oct 18, 2023 9:17 am
- Forum: ESP-IDF
- Topic: Largest contiguous RAM for HEAP
- Replies: 16
- Views: 8960
Re: Largest contiguous RAM for HEAP
heap_caps_malloc_prefer
only allows to separate internal from external (PSRAM) memory, but not DRAM from D/IRAM as far as I know.
For my application it is even more difficult as I use std::unique_ptr and would possible have to reimplement the allocator of std::unique_ptr.
Thanks for your help!
only allows to separate internal from external (PSRAM) memory, but not DRAM from D/IRAM as far as I know.
For my application it is even more difficult as I use std::unique_ptr and would possible have to reimplement the allocator of std::unique_ptr.
Thanks for your help!
- Wed Oct 18, 2023 9:07 am
- Forum: ESP-IDF
- Topic: Largest contiguous RAM for HEAP
- Replies: 16
- Views: 8960
Re: Largest contiguous RAM for HEAP
heap fragmentation and how to best avoid it General recommendation: Reduce the number of allocations from the heap. - Use the stack/local variables instead of heap when possible - Use statically allocated variables - Avoid reallocations/resizing of allocations (C++ string concatenation, std::vector...
- Wed Oct 18, 2023 7:39 am
- Forum: ESP-IDF
- Topic: Largest contiguous RAM for HEAP
- Replies: 16
- Views: 8960
Re: Largest contiguous RAM for HEAP
That's a good resource for heap analysis.
Unfortunately nothing is said about heap fragmentation and how to best avoid it in order to get a large as possible contiguous block.
Any more ideas?
Unfortunately nothing is said about heap fragmentation and how to best avoid it in order to get a large as possible contiguous block.
Any more ideas?
- Wed Oct 18, 2023 4:59 am
- Forum: ESP-IDF
- Topic: Largest contiguous RAM for HEAP
- Replies: 16
- Views: 8960
Re: Largest contiguous RAM for HEAP
Which entries in menuconfig? I don't want to place code in the PSRAM, there is an option to allow malloc to use PSRAM, but that is RAM is much slower.
Any hints? Thx
Any hints? Thx
- Tue Oct 17, 2023 3:30 pm
- Forum: ESP-IDF
- Topic: Largest contiguous RAM for HEAP
- Replies: 16
- Views: 8960
Largest contiguous RAM for HEAP
Hi, On ESP32: Is there any way to tell malloc to first use memory fragments for heap allocation from the D/IRAM region instead of the DRAM region? It seems to first consume the DRAM which in turn reduces the size of the largest available contiguous block. This disallows some critical allocations in ...
- Fri Nov 27, 2020 8:43 am
- Forum: ESP-IDF
- Topic: Problem with sampling using ADC via DMA
- Replies: 11
- Views: 19232
Re: Problem with sampling using ADC via DMA
Hi,
I am also on the same issue...
Strangely, no matter which ADC Channel I configure, sampling only works on Channel 0 (Sensor VP) (code from last post).
Working from esp-idf master with DevKitC WROVER module...
Anyone else experiencing the same?
Thx
I am also on the same issue...
Strangely, no matter which ADC Channel I configure, sampling only works on Channel 0 (Sensor VP) (code from last post).
Working from esp-idf master with DevKitC WROVER module...
Anyone else experiencing the same?
Thx
- Sat May 04, 2019 5:19 am
- Forum: Showcase
- Topic: ESP32 real-time audio synthesis platform
- Replies: 1
- Views: 16731
ESP32 real-time audio synthesis platform
Hi, we've created an open source real-time audio synthesis hardware platform using the ESP32. It allows stereo audio IO at 44.1kHz-24bit and DSP processing using the ESP32 FPU of the audio stream. Buffer size is small enough to allow for latencies <1ms, e.g. reacting to a key press event. We have cr...