bootloader_mmap() function
Map a region of flash to data memory @important In bootloader code, only one region can be bootloader_mmaped at once. The previous region must be bootloader_munmapped before another region is mapped. @important In app code, these functions are not thread safe. Call bootloader_munmap once for each successful call to bootloader_mmap. In esp-idf app, this function maps directly to spi_flash_mmap.
Syntax
const void *bootloader_mmap(uint32_t src_addr,
uint32_t size);
Return value
Pointer to mapped data memory (at src_addr), or NULL if an allocation error occurred.
bootloader_mmap() is called by 6 functions and calls 4 functions:
![]()
bootloader_mmap()
bootloader_mmap() reads 4 variables:
![]()
bootloader_mmap()