From 85e505e06e5236aebcb6ec385a97446323b70280 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Mon, 15 Jun 2020 23:00:35 -0400 Subject: [PATCH] Build UF2 image for nice!nano board as well. --- app/boards/arm/nice_nano/CMakeLists.txt | 7 +++++++ app/boards/arm/nice_nano/nice_nano.dts | 2 +- app/west.yml | 5 +++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 app/boards/arm/nice_nano/CMakeLists.txt diff --git a/app/boards/arm/nice_nano/CMakeLists.txt b/app/boards/arm/nice_nano/CMakeLists.txt new file mode 100644 index 00000000..91d2dde0 --- /dev/null +++ b/app/boards/arm/nice_nano/CMakeLists.txt @@ -0,0 +1,7 @@ +set_property(GLOBAL APPEND PROPERTY extra_post_build_commands + COMMAND ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/../tools/uf2/utils/uf2conv.py + -b 0x26000 + -f NRF52 + -o ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.uf2 + ${PROJECT_BINARY_DIR}/${KERNEL_BIN_NAME} +) diff --git a/app/boards/arm/nice_nano/nice_nano.dts b/app/boards/arm/nice_nano/nice_nano.dts index 04574619..21b60d38 100644 --- a/app/boards/arm/nice_nano/nice_nano.dts +++ b/app/boards/arm/nice_nano/nice_nano.dts @@ -77,7 +77,7 @@ }; code_partition: partition@26000 { label = "code_partition"; - reg = <0x00026000 0x0001e000>; + reg = <0x00026000 0x0002e000>; }; /* diff --git a/app/west.yml b/app/west.yml index c2151eb3..3784d97b 100644 --- a/app/west.yml +++ b/app/west.yml @@ -4,6 +4,8 @@ manifest: url-base: https://github.com/zephyrproject-rtos - name: petejohanson url-base: https://github.com/petejohanson + - name: microsoft + url-base: https://github.com/microsoft projects: - name: zephyr remote: petejohanson @@ -19,5 +21,8 @@ manifest: - hal_microchip - hal_nxp - hal_openisa + - name: uf2 + remote: microsoft + path: tools/uf2 self: path: zmk