Skip to content

Commit 60b99fc

Browse files
committed
Use universal format uf2 files by default
Changes the default uf2 format to universal (formerly rp2040) for compatablity with both rp2040 and rp2350 chipsets. Signed-off-by: Winford <winford@object.stream>
1 parent 309dbe5 commit 60b99fc

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
### Added
1717
- Added dialyzer task to simplify running dialyzer on AtomVM applications.
1818

19+
### Changed
20+
- The `uf2create` task now creates `universal` format uf2 files by default, suitable for both
21+
rp2040 or rp2350 devices.
22+
1923
## [0.7.5] (2025.05.27)
2024

2125
### Fixed

src/atomvm_uf2create_provider.erl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
-define(DEPS, [packbeam]).
3131
-define(OPTS, [
3232
{family_id, $f, "family_id", string,
33-
"Device family or flavor of uf2 file to create (default rp2040)"},
33+
"Device family or flavor of uf2 file to create (default universal)"},
3434
{output, $o, "output", string, "Output path/name"},
3535
{start, $s, "start", string, "Start address for the uf2 binary (default 0x10180000)"},
3636
{input, $i, "input", string, "Input avm file to convert to uf2"}
3737
]).
3838

3939
-define(DEFAULT_OPTS, #{
4040
start => os:getenv("ATOMVM_PICO_APP_START", "0x10180000"),
41-
family_id => os:getenv("ATOMVM_PICO_UF2_FAMILY", rp2040)
41+
family_id => os:getenv("ATOMVM_PICO_UF2_FAMILY", universal)
4242
}).
4343

4444
%%
@@ -84,10 +84,10 @@ do(State) ->
8484
catch
8585
C:E:S ->
8686
rebar_api:error(
87-
"An error occurred in the ~p task. Class=~p Error=~p Stacktrace=~p~n", [
88-
?PROVIDER, C, E, S
89-
]
87+
"An error occurred in the ~p task. Error=~p",
88+
[?PROVIDER, E]
9089
),
90+
rebar_api:debug("Class=~p, Error=~p~nSTACKTRACE:~n~p~n", [C, E, S]),
9191
{error, E}
9292
end.
9393

0 commit comments

Comments
 (0)