This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 763b63463ba679aecca8ce5b0bdf7319790ae527
Author: Szymon Janc <szymon.j...@codecoup.pl>
AuthorDate: Fri Oct 6 22:04:14 2023 +0200

    hw/bsp: Disable UART_0 in bootloader for BSPs that don't fit on flash
    
    This allows to fit in mcuboot with default configuration.
---
 hw/bsp/b-l072z-lrwan1/syscfg.yml   | 5 +++++
 hw/bsp/stm32f4discovery/syscfg.yml | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/hw/bsp/b-l072z-lrwan1/syscfg.yml b/hw/bsp/b-l072z-lrwan1/syscfg.yml
index 6e5f7f2ef..285cad760 100644
--- a/hw/bsp/b-l072z-lrwan1/syscfg.yml
+++ b/hw/bsp/b-l072z-lrwan1/syscfg.yml
@@ -61,3 +61,8 @@ syscfg.vals:
     TIMER_0_TIM: 'TIM2'
     TIMER_1_TIM: 'TIM3'
     TIMER_2_TIM: 'TIM21'
+
+# Disable UART for bootloader, otherwise may not fit on flash
+# with default build
+syscfg.vals.BOOT_LOADER:
+    UART_0: 0
diff --git a/hw/bsp/stm32f4discovery/syscfg.yml 
b/hw/bsp/stm32f4discovery/syscfg.yml
index 3ada839a8..1a4c30bc3 100644
--- a/hw/bsp/stm32f4discovery/syscfg.yml
+++ b/hw/bsp/stm32f4discovery/syscfg.yml
@@ -60,3 +60,8 @@ syscfg.vals:
     TIMER_0_TIM: 'TIM9'
     TIMER_1_TIM: 'TIM10'
     TIMER_2_TIM: 'TIM11'
+
+# Disable UART for bootloader, otherwise may not fit on flash
+# with default build
+syscfg.vals.BOOT_LOADER:
+    UART_0: 0

Reply via email to