Home
last modified time | relevance | path

Searched refs:memory (Results 1 – 25 of 264) sorted by relevance

1234567891011

/hal_espressif-2.7.6/components/esp_common/
DKconfig.spiram.common14 have specific requirements, you'll want to leave this enabled so memory allocated
31 memory region in the CPU's memory map, by integrating it in the heap as 'special' memory
36 bool "Integrate RAM into memory map"
45 bool "Run memory test on SPI RAM initialization"
49 … Runs a rudimentary memory test on initialization. Aborts when memory test fails. Disable this for
53 int "Maximum malloc() size, in bytes, to always put in internal memory"
59 … allocate chunks less than this size in internal memory, while allocations larger than this will be
62 external memory is full.
65 … "Try to allocate memories of WiFi and LWIP in SPIRAM firstly. If failed, allocate internal memory"
70 memory then.
[all …]
/hal_espressif-2.7.6/docs/en/api-reference/system/
Dmem_alloc.rst7 …dynamic memory allocated by program control flow) and *heap* (dynamic memory allocated by function…
11 …ontains multiple heaps with different capabilities. A capabilities-based memory allocator allows a…
15 However, in order to fully make use of all of the memory types and their characteristics, ESP-IDF a…
16 …-based heap memory allocator. If you want to have memory with certain properties (for example, :re…
23 - DRAM (Data RAM) is memory used to hold data. This is the most common kind of memory accessed as h…
24 - IRAM (Instruction RAM) usually holds executable data only. If accessed as generic memory, all acc…
27 For more details on these internal memory types, see :ref:`memory-layout`.
31 …api-guides/external-ram>` can be integrated into the {IDF_TARGET_NAME}'s memory map using the flas…
35 Because malloc uses the capabilities-based allocation system, memory allocated using :cpp:func:`hea…
44 At startup, the DRAM heap contains all data memory which is not statically allocated by the app. Re…
[all …]
Dhimem.rst7 The ESP32 can access external SPI RAM transparently, so you can use it as normal memory in your pro…
8 space for external memory is limited in size, only the first 4MiB can be used as such. Access to th…
18 …nt of external memory allocated by functions like ``malloc()``, but it allows you to use the himem…
22 (called 'regions' in the API) as well as one or more of banks of memory to map into the ranges.
27 An example doing a simple memory test of the high memory range is available in esp-idf: :example:`s…
Dheap_debug.rst7 …uption <heap-corruption>`, and :ref:`tracing memory leaks <heap-tracing>`. These can help track do…
9 For general information about the heap memory allocator, see the :doc:`Heap Memory Allocation </api…
18 … a FreeRTOS function which returns the number of free bytes in the (data memory) heap. This is equ…
19 …aps_get_free_size` can also be used to return the current free memory for different memory capabil…
32 Heap corruption detection allows you to detect various types of heap memory errors:
35 - Writes to freed memory.
36 - Reads from freed or uninitialized memory,
41 …heap.c``, etc.) includes a lot of assertions which will fail if the heap memory is corrupted. To d…
43 …nted like ``CORRUPT HEAP: multi_heap.c:225 detected at 0x3ffbb71c``. The memory address which is p…
45 …ty_all` or related functions. This function checks all of requested heap memory for integrity, and…
[all …]
Dasync_memcpy.rst7 {IDF_TARGET_NAME} has a DMA engine which can help to offload internal memory copy operations from t…
11 Thanks to the benefit of the DMA, we don't have to wait for each memory copy to be done before we i…
39 Send memory copy request
42 :cpp:func:`esp_async_memcpy` is the API to send memory copy request to DMA engine. It must be calle…
44 … :cpp:func:`esp_async_memcpy`, if it's necessary to be notified when the memory copy is done. The …
71 … know your application won't use this driver anymore, then this API can recycle the memory for you.
/hal_espressif-2.7.6/components/wear_levelling/doc/
Dwl_sw_structure.rst4 …nent that is implemented to prevent situation when some sectors in flash memory used by erase oper…
18 …- Flash_Access - memory access interface. Used to access the memory. A classes WL_Flash, Partition…
19 - SPI_Flash - class implements the Flash_Access interface to provide access to the flash memory.
24 …- wear_levelling - wrapper API class that provides "C" interface to access the memory through the …
31 - read - read memory to the buffer.
32 - write - writes buffer to the memory.
34 - erase_range - erase range of memory. The address of rage must be rounded to the sector size.
35 - chip_size - returns the equivalent amount of memory.
39 The WLC implements this interface for the user, and requires this interface to access the memory.
45 - start_addr - offset in the flash memory. The WLC will place all data after this address.
[all …]
/hal_espressif-2.7.6/docs/en/api-guides/
Dexternal-ram.rst12 …lity to also use up to 4 MB of external SPI RAM memory. The external memory is incorporated in the…
32 ESP-IDF fully supports the use of external memory in applications. Once the external RAM is initial…
42 Integrate RAM into the {IDF_TARGET_NAME} memory map
45 Select this option by choosing "Integrate RAM into memory map" from :ref:`CONFIG_SPIRAM_USE`.
51 …n manually place data in external memory by creating pointers to this region. So if an application…
61 When enabled, memory is mapped to address 0x3F800000 and also added to the :doc:`capabilities-based…
63 To allocate memory from external RAM, a program should call ``heap_caps_malloc(size, MALLOC_CAP_SPI…
73 In this case, memory is added to the capability allocator as described for the previous option. How…
77 …NAL`, can be used to set the size threshold when a single allocation should prefer external memory:
79 - When allocating a size less than the threshold, the allocator will try internal memory first.
[all …]
Ddeep-sleep-stub.rst6 …st Memory" and any data which it uses must also be loaded into RTC memory. RTC memory regions hold…
17 * The wake stub code can only access data loaded in RTC memory. All other RAM will be unintiailised…
19 * RTC memory must include any read-only data (.rodata) used by the stub.
21 * Data in RTC memory is initialised whenever the SoC restarts, except when waking from deep sleep. …
23 …ing of esp-idf, functions can call the wake stub functions or access RTC memory. It is as if these…
43 The first way is to use the ``RTC_IRAM_ATTR`` attribute to place a function into RTC memory::
50 …Files names ``rtc_wake_stub*`` have their contents automatically put into RTC memory by the linker.
52 … "RTC" code. The second way is simpler when you want to write longer pieces of code for RTC memory.
58 Data used by stub code must be resident in RTC memory.
62 The data can be placed in RTC Fast memory or in RTC Slow memory which is also used by the ULP.
[all …]
Dmemory-types.rst6 {IDF_TARGET_NAME} chip has multiple memory types and flexible memory mapping features. This section…
8memory bus (IRAM, IROM, RTC FAST memory) and data memory bus (DRAM, DROM). Instruction memory is e…
15 …itialized data (.bss) is placed by the linker into Internal SRAM as data memory. Remaining space i…
19 …h of this region is also reduced by 16 kB or 32kB if trace memory is used. Due to some memory frag…
25 … by the :ref:`iram` size of the compiled application. The available heap memory at runtime is redu…
45 …t 64 kB block which is used for PRO and APP MMU caches, the rest of this memory range (i.e. from `…
49 … first block (up to 32 kB) which is used for MMU cache, the rest of this memory range is used to s…
111 If a function is not explicitly placed into :ref:`iram` or RTC memory, it is placed into flash. The…
113 …ternal SRAM and accessing cached flash data is as fast as accessing other types of internal memory.
115 RTC fast memory
[all …]
Dcore_dump_internals.rst6 …ommended for new designs. It provides more information about the CPU and memory state of a program…
7 The memory state embeds a snapshot of all tasks mapped in the memory space of the program. The CPU …
8 Loadable ELF segments are used for the memory state of the process while ELF notes (ELF.PT_NOTE) ar…
/hal_espressif-2.7.6/components/esp32/ld/
Desp32.ld3 This file describes the memory layout (memory blocks) as virtual
4 memory addresses.
7 into these memory blocks.
67 /* Shared data RAM, excluding memory reserved for ROM bss/data/stack.
73 in heap at runtime. However due to static ROM memory usage at this 176KB mark, the
74 additional static memory temporarily cannot be used.
86 /* RTC fast memory (executable). Persists over deep sleep.
90 /* RTC fast memory (same block as above), viewed from data bus */
93 /* RTC slow memory (data accessible). Persists over deep sleep.
95 Start of RTC slow memory is reserved for ULP co-processor code + data, if enabled.
[all …]
/hal_espressif-2.7.6/components/spi_flash/sim/
DSpiFlash.cpp67 this->memory = (uint8_t *) malloc(this->chip_size); in init()
68 memset(this->memory, 0xFF, this->chip_size); in init()
80 memcpy(&this->memory[CONFIG_PARTITION_TABLE_OFFSET], buffer.data(), buffer.size()); in init()
86 free(this->memory); in deinit()
158 memset(&this->memory[page * this->page_size], 0xFF, this->page_size); in erase_page()
189 uint8_t written = this->memory[dest_addr + ctr]; in write()
194 this->memory[dest_addr + ctr] = data; in write()
222 memcpy(dest, &this->memory[src_addr], size); in read()
228 return &this->memory[src_address]; in get_memory_ptr()
/hal_espressif-2.7.6/components/wear_levelling/
DREADME.rst8memory and especially SPI flash that is used in {IDF_TARGET_NAME} has a sector-based organization …
10 …mponent provides API functions related to reading, writing, erasing, and memory mapping of data in…
12 … is a standard size for flash memory. With this size, the component shows the best performance but…
14 To save internal memory, the component has two additional modes which both use sectors of 512 bytes:
16 …ored in RAM, the sector is erased, and then data is copied back to flash memory. However, if a dev…
17 - **Safety mode.** The data is first saved to flash memory, and after the sector is erased, the dat…
39 - ``wl_size`` - returns the size of available memory in bytes
48 The memory size is calculated in the wear levelling module based on partition parameters. The modul…
/hal_espressif-2.7.6/tools/esp_app_trace/test/sysview/
Dheap_log_mcore.svdat38 ��5������Z?<I (330) example: Task[0x3ffb8124]: free memory @ 0x3ffb828c
42 Z?<I (331) example: Task[0x3ffb8484]: free memory @ 0x3ffb85ec
49 ���������Z?<I (332) example: Task[0x3ffb49a8]: free memory @ 0x3ffb87e4
54 ���u������Z?<I (360) example: Task[0x3ffb8124]: free memory @ 0x3ffb828c
58 ��u������Z?<I (361) example: Task[0x3ffb8484]: free memory @ 0x3ffb87e4
63 ���u������Z?<I (362) example: Task[0x3ffb49a8]: free memory @ 0x3ffb87e4
67 ���u������Z?<I (390) example: Task[0x3ffb8124]: free memory @ 0x3ffb87e4
72 ���u������Z?<I (391) example: Task[0x3ffb8484]: free memory @ 0x3ffb87e4
77 ���u������Z?<I (392) example: Task[0x3ffb49a8]: free memory @ 0x3ffb87e4
81 ���u������Z?<I (420) example: Task[0x3ffb8124]: free memory @ 0x3ffb87e4
[all …]
/hal_espressif-2.7.6/examples/system/himem/
DREADME.md8 …com/projects/esp-idf/en/latest/api-reference/system/himem.html) to run a memory test of the upper …
10 … in the same way internal memory can be accessed. In other words, if enabled in project configurat…
12memory. If you have, for instance, an ESP32-WROVER module with 8 MiB of PSRAM, you cannot use the …
14 …hysical SPI RAM. While this does not allow transparent access in the way memory allocated with `ma…
16memory test of the entire range of upper memory. It illustrates how to allocate address space to b…
88 I (735) spiram: SPI SRAM memory test OK
96 I (771) spiram: Adding pool of 2112K of external SPI memory to heap allocator
97 …m: Initialized. Using last 62 32KB address blocks for bank switching on 6080 KB of physical memory.
100 I (132) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
101 Himem has 6080 KiB of memory, 6080 KiB of which is free. Testing the free memory...
/hal_espressif-2.7.6/examples/storage/partition_api/partition_mmap/
DREADME.md3 …ow to use `esp_partition_mmap` to configure MMU and map a partition into memory address space for …
7 …, with a data partition `storage` used for demonstration. Before mapping this partition to memory,
10 The partition API function `esp_partition_mmap` is used to get a pointer to the mapped memory regio…
16 I (309) example: Mapped partition to data memory address 0x3f410000
17 I (319) example: Read sample data from partition using mapped memory: ESP-IDF Partition Memory Map …
19 I (329) example: Unmapped partition from data memory
/hal_espressif-2.7.6/components/esp32s2/ld/
Desp32s2.ld3 This file describes the memory layout (memory blocks) by virtual memory addresses.
82 /* Shared data RAM, excluding memory reserved for bootloader and ROM bss/data/stack. */
92 /* RTC fast memory (executable). Persists over deep sleep.
96 /* RTC slow memory (data accessible). Persists over deep sleep.
98 Start of RTC slow memory is reserved for ULP co-processor code + data, if enabled.
103 /* RTC fast memory (same block as above), viewed from data bus */
119 When the option is not defined then use slow memory segment
120 else the data will be placed in fast memory segment
/hal_espressif-2.7.6/components/esp32s3/ld/
Desp32s3.ld3 * This file describes the memory layout (memory blocks) by virtual memory addresses.
61 * Shared data RAM, excluding memory reserved for ROM bss/data/stack.
74 * RTC fast memory (executable). Persists over deep sleep.
79 * RTC fast memory (same block as above), viewed from data bus
84 * RTC slow memory (data accessible). Persists over deep sleep.
85 * Start of RTC slow memory is reserved for ULP co-processor code + data, if enabled.
/hal_espressif-2.7.6/components/esp_system/
DKconfig73 bool "Enable RTC fast memory for dynamic allocations"
80 This config option allows to add RTC fast memory region to system heap with capability
81 similar to that of DRAM region but without DMA. This memory will be consumed first per
83 … wise RTC fast memory operates on APB clock and hence does not have much performance impact.
106 bool "Enable memory protection"
110 …If enabled, the permission control module watches all the memory access and fires the panic handler
112 the SRAM memory into data and instruction segments and sets Read/Execute permissions
114 for the data part (above the splitting address). The memory protection is effective
119 bool "Lock memory protection settings"
122 Once locked, memory protection settings cannot be changed anymore.
/hal_espressif-2.7.6/components/spi_flash/include/
Desp_spi_flash.h211 esp_err_t spi_flash_mmap(size_t src_addr, size_t size, spi_flash_mmap_memory_t memory,
237 esp_err_t spi_flash_mmap_pages(const int *pages, size_t page_count, spi_flash_mmap_memory_t memory,
273 uint32_t spi_flash_mmap_get_free_pages(spi_flash_mmap_memory_t memory);
309 const void *spi_flash_phys2cache(size_t phys_offs, spi_flash_mmap_memory_t memory);
/hal_espressif-2.7.6/components/heap/
DKconfig1 menu "Heap memory debugging"
7 …le heap poisoning features to detect heap corruption caused by out-of-bounds access to heap memory.
54 … More stack frames uses more memory in the heap trace buffer (and slows down allocation), but
67 bool "Abort if memory allocation fails"
70 When enabled, if a memory allocation operation fails it will cause a system abort.
/hal_espressif-2.7.6/components/spi_flash/
Dflash_mmap.c112 static void IRAM_ATTR get_mmu_region(spi_flash_mmap_memory_t memory, int* out_begin, int* out_size,… in get_mmu_region() argument
114 if (memory == SPI_FLASH_MMAP_DATA) { in get_mmu_region()
127 esp_err_t IRAM_ATTR spi_flash_mmap(size_t src_addr, size_t size, spi_flash_mmap_memory_t memory, in spi_flash_mmap() argument
148 ret = spi_flash_mmap_pages(pages, page_count, memory, out_ptr, out_handle); in spi_flash_mmap()
153 …IRAM_ATTR spi_flash_mmap_pages(const int *pages, size_t page_count, spi_flash_mmap_memory_t memory, in spi_flash_mmap_pages() argument
183 get_mmu_region(memory,&region_begin,&region_size,&region_addr); in spi_flash_mmap_pages()
349 uint32_t IRAM_ATTR spi_flash_mmap_get_free_pages(spi_flash_mmap_memory_t memory) in spi_flash_mmap_get_free_pages() argument
357 get_mmu_region(memory,&region_begin,&region_size,&region_addr); in spi_flash_mmap_get_free_pages()
409 const void *IRAM_ATTR spi_flash_phys2cache(size_t phys_offs, spi_flash_mmap_memory_t memory) in spi_flash_phys2cache() argument
415 if (memory == SPI_FLASH_MMAP_DATA) { in spi_flash_phys2cache()
DREADME_legacy.rst10 The spi_flash component contains API functions related to reading, writing, erasing, memory mapping…
43 …RAM, DRAM, and flash cache, please refer to the :ref:`application memory layout <memory-layout>` d…
65 …rtition table to maintain information about various regions of SPI flash memory (bootloader, vario…
89memory hardware which allows regions of flash memory to be mapped into instruction and data addres…
91 …n address space. See the technical reference manual for more details about memory mapping hardware.
93 Note that some 64KB pages are used to map the application itself into memory, so the actual number …
95 Reading data from flash using a memory mapped region is the only way to decrypt contents of flash w…
106 …rary offset within the partition, it will adjust the returned pointer to mapped memory as necessary
108 Note that since memory mapping happens in 64KB blocks, it may be possible to read data outside of t…
/hal_espressif-2.7.6/components/esp32c3/ld/
Desp32c3.ld3 * This file describes the memory layout (memory blocks) by virtual memory addresses.
61 * Shared data RAM, excluding memory reserved for ROM bss/data/stack.
74 * RTC fast memory (executable). Persists over deep sleep.
93 * As C3 only has RTC fast memory, this is not configurable like on other targets
/hal_espressif-2.7.6/examples/system/heap_task_tracking/
DREADME.md5 The example creates a task which allocates random amount of memory in each iteration and demonstrat…
9 This adds small memory overhead on per heap block and hence this feature should be used for debuggi…
15 Navigate to `Component config -> Heap memory debugging` menu. In `Heap corruption detection` menu s…

1234567891011