fix errors when ci testing for esp32

This commit is contained in:
suda-morris
2019-06-19 15:31:47 +08:00
parent b1a7f7fcdb
commit 3f7a571c90
30 changed files with 1787 additions and 1774 deletions

View File

@@ -147,7 +147,10 @@ esp_err_t IRAM_ATTR spi_flash_mmap(size_t src_addr, size_t size, spi_flash_mmap_
return ESP_ERR_NO_MEM;
}
for (int i = 0; i < page_count; i++) {
pages[i] = (phys_page+i) | DPORT_MMU_ACCESS_FLASH;
pages[i] = (phys_page+i);
#if CONFIG_IDF_TARGET_ESP32S2BETA
pages[i] |= DPORT_MMU_ACCESS_FLASH;
#endif
}
ret = spi_flash_mmap_pages(pages, page_count, memory, out_ptr, out_handle);
free(pages);