ESP32 Wrover SPI flash erase and write function fail under Arduino IDE

chief23c
Posts: 3
Joined: Sat Nov 09, 2019 7:13 am

ESP32 Wrover SPI flash erase and write function fail under Arduino IDE

Postby chief23c » Tue Dec 31, 2019 3:11 am

I am using a ESP32 Wrover which has 4MB SPI flash and 8MB PSRAM, I am able to make PSRAM works by using the (uint16_t*)ps_malloc(153600) to acxcess the PSRAM . However, I had hard time to use the SPI flash.
I had include the https://github.com/espressif/arduino-es ... pi_flash.h into my program and use the esp_rom_spiflash_write(uint32_t dest_addr, const uint32_t *src, int32_t len); and esp_rom_spiflash_read(uint32_t src_addr, uint32_t *dest, int32_t len); to do write an dread the SPI flash but it seems not working
Is there a SPI Flash test code that I can use for testing?

Who is online

Users browsing this forum: No registered users and 83 guests