You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attached a small example that triggers the exception.
Both the address and the size are 4 bytes aligned .
100% reproducible
Looks like a genuine issue.
Attached a small example that triggers the exception.
Both the address and the size are 4 bytes aligned .
100% reproducible
Looks like a genuine issue.
`#include "freertos/FreeRTOS.h"
#include "esp_wifi.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_event_loop.h"
#include "nvs_flash.h"
#include "driver/gpio.h"
#include <esp_log.h>
#include <esp_err.h>
#include <esp_spi_flash.h>
#define ADDR 0x300000
#define MEMMAP_SIZE (1024*1024)
static char tag[] = "memmap_test";
static spi_flash_mmap_handle_t handle;
static uint32_t pInstrPtr = 0;
void app_main(void)
{
nvs_flash_init();
tcpip_adapter_init();
spi_flash_init();
esp_err_t rc = spi_flash_mmap((uint32_t) ADDR, MEMMAP_SIZE, SPI_FLASH_MMAP_INST, (const void **)&pInstrPtr, &handle);
if (rc != ESP_OK) {
ESP_LOGE(tag, "rc from spi_flash_mmap: %d", rc);
}
else
{
ESP_LOGD(tag, "spi_flash_mmap success");
}
}
`
The text was updated successfully, but these errors were encountered: