-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01456f3
commit 7e9b7d0
Showing
6 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
CONFIG_MAIN_STACK_SIZE=32768 | ||
|
||
# Enable SMP serial DFU | ||
CONFIG_CONSOLE=n | ||
CONFIG_LOG=n | ||
CONFIG_UART_CONSOLE=n | ||
CONFIG_SERIAL=y | ||
CONFIG_UART_LINE_CTRL=y | ||
CONFIG_MCUBOOT_SERIAL=y | ||
CONFIG_BOOT_MGMT_ECHO=y | ||
CONFIG_BOOT_SERIAL_IMG_GRP_HASH=y | ||
CONFIG_BOOT_SERIAL_IMG_GRP_IMAGE_STATE=y | ||
|
||
# Allow upload to the primary slot | ||
CONFIG_MCUBOOT_SERIAL_DIRECT_IMAGE_UPLOAD=y | ||
|
||
# Serial Recovery | ||
CONFIG_BOOT_SERIAL_NO_APPLICATION=y | ||
|
||
# # Measured ~7.1 kB/s on 115200 baud (STM32F407 Discovery) | ||
CONFIG_BOOT_MAX_LINE_INPUT_LEN=4096 | ||
CONFIG_BOOT_LINE_BUFS=2 | ||
CONFIG_BOOT_SERIAL_MAX_RECEIVE_SIZE=4096 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
&flash0 { | ||
partitions { | ||
compatible = "fixed-partitions"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
boot_partition: partition@0 { | ||
label = "mcuboot"; | ||
reg = <0x00000000 0x10000>; | ||
}; | ||
slot0_partition: partition@10000 { | ||
label = "image-0"; | ||
reg = <0x00010000 0x40000>; | ||
}; | ||
slot1_partition: partition@50000 { | ||
label = "image-1"; | ||
reg = <0x00050000 0x40000>; | ||
}; | ||
storage_partition: partition@7e000 { | ||
label = "storage"; | ||
reg = <0x0007e000 DT_SIZE_K(8)>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/ { | ||
chosen { | ||
zephyr,uart-mcumgr = &usart2; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/ { | ||
aliases { | ||
mcuboot-button0 = &user_button; | ||
}; | ||
}; |