Skip to content

Commit 434f730

Browse files
authored
Merge pull request #24 from UncleGrumpy/flash
Use bootloader settings for esp32
2 parents 68db431 + 304ac46 commit 434f730

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/mix/tasks/esp32_flash.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defmodule Mix.Tasks.Atomvm.Esp32.Flash do
1212
{:args, {:ok, options}} <- {:args, parse_args(args)},
1313
{:pack, {:ok, _}} <- {:pack, Packbeam.run(args)},
1414
idf_path <- System.get_env("IDF_PATH", <<"">>) do
15-
chip = Map.get(options, :chip, Keyword.get(avm_config, :chip, "esp32"))
15+
chip = Map.get(options, :chip, Keyword.get(avm_config, :chip, "auto"))
1616
port = Map.get(options, :port, Keyword.get(avm_config, :port, "/dev/ttyUSB0"))
1717
baud = Map.get(options, :baud, Keyword.get(avm_config, :baud, "115200"))
1818

@@ -48,9 +48,9 @@ defmodule Mix.Tasks.Atomvm.Esp32.Flash do
4848
"write_flash",
4949
"-u",
5050
"--flash_mode",
51-
"dio",
51+
"keep",
5252
"--flash_freq",
53-
"40m",
53+
"keep",
5454
"--flash_size",
5555
"detect",
5656
"0x#{Integer.to_string(flash_offset, 16)}",

0 commit comments

Comments
 (0)