From ec28f20f346ba75c3df3531c49347eecce11b909 Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Thu, 5 Mar 2020 17:59:03 +0100 Subject: [PATCH 1/2] board: arm: nucleo_g474re reflashing board Reflash the nucleo_g474re successively Signed-off-by: Francois Ramu --- boards/arm/nucleo_g474re/board.cmake | 5 ++++- boards/arm/nucleo_g474re/nucleo_g474re.yaml | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/boards/arm/nucleo_g474re/board.cmake b/boards/arm/nucleo_g474re/board.cmake index f5a4e04e9dcda6..b45e4ef7c4df7c 100644 --- a/boards/arm/nucleo_g474re/board.cmake +++ b/boards/arm/nucleo_g474re/board.cmake @@ -1,4 +1,7 @@ # SPDX-License-Identifier: Apache-2.0 -board_runner_args(pyocd "--target=stm32g474retx") + +# use target=stm32g474rbtx instead of stm32g474retx +# to allow board re-flashing (see PR #23230) +board_runner_args(pyocd "--target=stm32g474rbtx") include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake) diff --git a/boards/arm/nucleo_g474re/nucleo_g474re.yaml b/boards/arm/nucleo_g474re/nucleo_g474re.yaml index d6e0e1ed2e7d98..c80c31c08dbcd2 100644 --- a/boards/arm/nucleo_g474re/nucleo_g474re.yaml +++ b/boards/arm/nucleo_g474re/nucleo_g474re.yaml @@ -6,8 +6,8 @@ toolchain: - zephyr - gnuarmemb - xtools -ram: 32 -flash: 128 +ram: 128 +flash: 512 supported: - arduino_gpio - arduino_i2c From bb5bcdbe3e74309f3f0635fabd4c1531a404554d Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Fri, 6 Mar 2020 09:18:38 +0100 Subject: [PATCH 2/2] soc: arm: stm32g474 config device This patch aligns the Kconfig.defconfig.stm32g474re to the Kconfig.defconfig.stm32g431rb Signed-off-by: Francois Ramu --- soc/arm/st_stm32/stm32g4/Kconfig.defconfig.stm32g474re | 2 -- 1 file changed, 2 deletions(-) diff --git a/soc/arm/st_stm32/stm32g4/Kconfig.defconfig.stm32g474re b/soc/arm/st_stm32/stm32g4/Kconfig.defconfig.stm32g474re index de24e64abe7527..78bca517cc13eb 100644 --- a/soc/arm/st_stm32/stm32g4/Kconfig.defconfig.stm32g474re +++ b/soc/arm/st_stm32/stm32g4/Kconfig.defconfig.stm32g474re @@ -6,11 +6,9 @@ if SOC_STM32G474XX config SOC - string default "stm32g474xx" config NUM_IRQS - int default 102 endif # SOC_STM32G474XX