diff --git a/README.md b/README.md index 35798c5..1078ea8 100644 --- a/README.md +++ b/README.md @@ -439,5 +439,6 @@ The `atomvm` properties list in the Mix project file (`mix.exs`) may contain the | Key | Type | Default | Value | |-----|------|----------|-------| | `app_start` | Address in hexademical format | 0x10180000 | The flash address to place the application | +| `family_id` | atom or string | `universal` | The flavor of uf2 to create; `rp2040`, `rp2350_riscv`, `rp2350_arm_s`, `rp2350_arm_ns`, `data`, `absolute`, or `universal` | Properties in the `mix.exs` file may be over-ridden on the command line using long-style flags (prefixed by `--`) by the same name as the properties key. For example, you can use the `--app_start` option to specify or override the `app_start` property in the above table. diff --git a/lib/mix/tasks/uf2create.ex b/lib/mix/tasks/uf2create.ex index f0f42ef..abfc729 100644 --- a/lib/mix/tasks/uf2create.ex +++ b/lib/mix/tasks/uf2create.ex @@ -64,7 +64,7 @@ defmodule Mix.Tasks.Atomvm.Uf2create do Keyword.get( avm_config, :family_id, - Map.get(options, :family_id, System.get_env("ATOMVM_PICO_UF2_FAMILY", "rp2040")) + Map.get(options, :family_id, System.get_env("ATOMVM_PICO_UF2_FAMILY", :universal)) ) ) @@ -131,14 +131,41 @@ defmodule Mix.Tasks.Atomvm.Uf2create do :rp2040 -> :rp2040 - "rp2035" -> - :data + "rp2350_riscv" -> + :rp2350_riscv - ":rp2035" -> - :data + ":rp2350_riscv" -> + :rp2350_riscv - :rp2035 -> - :data + :rp2350_riscv -> + :rp2350_riscv + + "rp2350_arm_s" -> + :rp2350_arm_s + + ":rp2350_arm_s" -> + :rp2350_arm_s + + :rp2350_arm_s -> + :rp2350_arm_s + + "rp2350_arm_ns" -> + :rp2350_arm_ns + + ":rp2350_arm_ns" -> + :rp2350_arm_ns + + :rp2350_arm_ns -> + :rp2350_arm_ns + + "absolute" -> + :absolute + + ":absolute" -> + :absolute + + :universal -> + :absolute "data" -> :data