diff --git a/nrf52840/Makefile.toml b/nrf52840/Makefile.toml index f6fa831..be94ee7 100644 --- a/nrf52840/Makefile.toml +++ b/nrf52840/Makefile.toml @@ -18,6 +18,11 @@ command = "cargo" args = ["objcopy", "--release", "--", "-O", "ihex", "{{ project_name }}.hex"] dependencies = ["build"] +[tasks.bin] +command = "cargo" +args = ["objcopy", "--release", "--", "-O", "binary", "{{ project_name }}.bin"] +dependencies = ["build"] + [tasks.uf2] install_crate = { crate_name = "cargo-hex-to-uf2", binary = "cargo", test_arg = [ "hex-to-uf2", diff --git a/nrf52840_split/Makefile.toml b/nrf52840_split/Makefile.toml index 4712573..dc4cecd 100644 --- a/nrf52840_split/Makefile.toml +++ b/nrf52840_split/Makefile.toml @@ -45,6 +45,37 @@ args = [ ] dependencies = ["build"] +[tasks.bin-central] +command = "cargo" +args = [ + "objcopy", + "--release", + "--bin", + "central", + "--", + "-O", + "binary", + "{{ project_name }}-central.bin", +] +dependencies = ["build"] + +[tasks.bin-peripheral] +command = "cargo" +args = [ + "objcopy", + "--release", + "--bin", + "peripheral", + "--", + "-O", + "binary", + "{{ project_name }}-peripheral.bin", +] +dependencies = ["build"] + +[tasks.bin] +dependencies = ["bin-central", "bin-peripheral"] + [tasks.uf2-central] install_crate = { crate_name = "cargo-hex-to-uf2", binary = "cargo", test_arg = [ "hex-to-uf2", diff --git a/pico_w/Makefile.toml b/pico_w/Makefile.toml index ccf1b11..687660f 100644 --- a/pico_w/Makefile.toml +++ b/pico_w/Makefile.toml @@ -18,6 +18,11 @@ command = "cargo" args = ["objcopy", "--release", "--", "-O", "ihex", "{{ project_name }}.hex"] dependencies = ["build"] +[tasks.bin] +command = "cargo" +args = ["objcopy", "--release", "--", "-O", "binary", "{{ project_name }}.bin"] +dependencies = ["build"] + [tasks.uf2] install_crate = { crate_name = "cargo-hex-to-uf2", binary = "cargo", test_arg = [ "hex-to-uf2", diff --git a/pico_w_split/Makefile.toml b/pico_w_split/Makefile.toml index e18b0ae..3dd6936 100644 --- a/pico_w_split/Makefile.toml +++ b/pico_w_split/Makefile.toml @@ -79,5 +79,36 @@ args = [ ] dependencies = ["objcopy-peripheral"] +[tasks.bin-central] +command = "cargo" +args = [ + "objcopy", + "--release", + "--bin", + "central", + "--", + "-O", + "binary", + "{{ project_name }}-central.bin", +] +dependencies = ["build"] + +[tasks.bin-peripheral] +command = "cargo" +args = [ + "objcopy", + "--release", + "--bin", + "peripheral", + "--", + "-O", + "binary", + "{{ project_name }}-peripheral.bin", +] +dependencies = ["build"] + +[tasks.bin] +dependencies = ["bin-central", "bin-peripheral"] + [tasks.uf2] dependencies = ["uf2-central", "uf2-peripheral"] diff --git a/rp2040/Makefile.toml b/rp2040/Makefile.toml index 16e70c3..e0f5f09 100644 --- a/rp2040/Makefile.toml +++ b/rp2040/Makefile.toml @@ -20,6 +20,11 @@ command = "cargo" args = ["objcopy", "--release", "--", "-O", "ihex", "{{ project_name }}.hex"] dependencies = ["build"] +[tasks.bin] +command = "cargo" +args = ["objcopy", "--release", "--", "-O", "binary", "{{ project_name }}.bin"] +dependencies = ["build"] + [tasks.uf2] install_crate = { crate_name = "cargo-hex-to-uf2", binary = "cargo", test_arg = [ "hex-to-uf2", diff --git a/rp2040_split/Makefile.toml b/rp2040_split/Makefile.toml index a2a7283..4111720 100644 --- a/rp2040_split/Makefile.toml +++ b/rp2040_split/Makefile.toml @@ -82,5 +82,36 @@ args = [ ] dependencies = ["objcopy-peripheral"] +[tasks.bin-central] +command = "cargo" +args = [ + "objcopy", + "--release", + "--bin", + "central", + "--", + "-O", + "binary", + "{{ project_name }}-central.bin", +] +dependencies = ["build"] + +[tasks.bin-peripheral] +command = "cargo" +args = [ + "objcopy", + "--release", + "--bin", + "peripheral", + "--", + "-O", + "binary", + "{{ project_name }}-peripheral.bin", +] +dependencies = ["build"] + +[tasks.bin] +dependencies = ["bin-central", "bin-peripheral"] + [tasks.uf2] dependencies = ["uf2-central", "uf2-peripheral"]