DIO vs QIO - FYI, there is a significant difference in execution speed! #6011
Replies: 1 comment
-
Posted at 2018-02-07 by @MaBecker Don't miss this page for more details on SPI-Flash-Modes Posted at 2018-02-07 by Wilberforce This suggests that we can automate the flashing scripts to work out if dio mode is required, as the default it qio. https://github.com/espressif/esptool#read-spi-flash-id Manufacturer: e0 It would need to have a database of device ids, however this would stop a lot of headaches (specially for first timers) on setting the flash size and flash mode. Posted at 2018-02-07 by @MaBecker W25Q40BV ( 4 Mega Bits / 512K Byte ) = ID 4013h Posted at 2018-02-07 by @MaBecker @wilberforce, also see Build Content on ESP8266 page Posted at 2018-02-07 by Wilberforce So is there a way of working out qio vs dio? It sounds like chip type might not be enough as it depends on wiring? Posted at 2018-02-08 by @MaBecker Yes, it definitely depends on wiring, so check circuit diagram if available or try and error :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-02-06 by DrAzzy
I just thought I'd let people know about an issue I'd run into:
With DIO, code executes somewhere in the neighborhood of 30-50% slower (I haven't timed it precisely) vs QIO. And you can't really tell if the board you bought has it wired as QIO or DIO until you try to flash it (the QIO capable ESP12 modules have "QIO" printed on the underside, but you can't see that if they're soldered in).
For my pingpong light controllers, I realized this after I had a bunch made with DIO modules (they have to all run at the same speed, and I'd like the QIO ones to run faster), so I've been taking the DIO modules off of my WeMos D1 Mini's with a torch and soldering a QIO one in it's place....
Beta Was this translation helpful? Give feedback.
All reactions