-
I have (sourced from Amazon) a very affordable little ESP32-C3 development board. Because the ESP32-C3 is quite IO-poor, the designers of this board have chosen to use the flash in DIO mode instead of QIO mode. This makes the flash slower, but frees up two GPIO pins (GPIO12 and GPIO13) that would normally not be available. This DIO mode must be specified when the board is flashed. Using, for example, .NET Nanoframework, this is specified like this:
Using Arduino, it looks like this:
For ESPHome, the DIO mode is specified in the .yaml: esphome:
name: my-esphome-device
platformio_options:
board_build.flash_mode: dio Is there a way to specify this in DeviceScript, or am I limited to the "standard" boards that use QIO flash mode? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
We should be able to add an option to devs flash command. However underneath it just invokes esptool - i think you can see what exactly with --verbose. You can just run it yourself directly adding appreciate flash mode option. |
Beta Was this translation helpful? Give feedback.
-
I have created a (n extremely simple) draft PR here: #606 I would appreciate any suggestions, or I can mark it ready if you're interested in merging it. |
Beta Was this translation helpful? Give feedback.
-
The board.json file has a field to pass flash tool arguments -> https://microsoft.github.io/devicescript/devices/esp32#custom-write_flash-argument |
Beta Was this translation helpful? Give feedback.
I have created a (n extremely simple) draft PR here: #606
I would appreciate any suggestions, or I can mark it ready if you're interested in merging it.