-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flashing ESP8266 HSPI Flash (ESPTOOL-141) #98
Comments
Neat! So, just to make sure I understand what you did here - this is putting a DIO SPI flash chip on the HSPI bus and then using the "swap" feature in the ESP hardware to configure that as the primary SPI flash? Angus |
You got it right. The other accesses just set up HSPI on IOMUX and control SPI clocks. Also, flashing does work with no other changes, and I can boot firmware (though this needs a few tweaks... by default, AT firmware will assign some of the HSPI pins to UART0). |
yes, just tested - it works. Would it be possible with an option to do it? |
at least it worked for NAND with 24 bit address, but not for my FeRAM with only 16 bits for address :-/ |
esptool.py v2.0 now supports a command line argument to configure the SPI connection parameters on ESP32. The |
Hi @projectgus, @sskylark or @st0ff3r would you mind explaining how/where to actually perform these 'self.write_reg()' commands? I've got a couple of ESP8266 ESP-WROOM-S2 boards which have their 2MB flash connected to the HSPI port and would appreciate any support. Thanks in advance. The modules if you care to look: https://za.rs-online.com/web/p/wlan-modules/1359774/ |
Can you see what happens when you do this after sync:
This should set up DIO SPI0 on HSPI port. If someone has a board with HSPI Flash, I'd be curious to hear about the results. Note: make sure nothing external is driving the SDIO bus - the bootloader SPI code will try to enable it as SPI as well, so multidriver issues may occur.
At least get_flash_id seems to work for me now on HSPI :-) I have not actually tried flashing anything yet... (my code runs deeply embedded so I can't just run esptool.)
The text was updated successfully, but these errors were encountered: