-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boards: stm32n6: Add serial boot variant #84869
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
2a5348f
scripts: stm32cubeprogrammer: Add 2 new options for start and download
erwango 9c9baf3
scripts: twister: Board id not needed for stm32cubeprog in BOOT-SERIAL
erwango 5651195
boards: st: Add script to perform power off/power
erwango 25fa964
soc: stm32n6: Add Boot serial option
erwango cf88c53
boards: stm32n6: Fix flash configuration for twister
erwango 4fc148d
boards: stm32n6570_dk: Introduce variant for serial boot
erwango 3d7b50b
boards: nucleo_n657x0_q: Introduce variant for serial boot
erwango 8373191
boards: stm32n6: Document sb variant and testing using twister
erwango 2570729
soc: stm32n6: Generate a warning when signing tool is not available
erwango 53e9f05
tests: uart_async_api: Disable DCACHE on stm32n6 targets
erwango 806a14e
boards: st: nucleo_n657x0_q: Fix full_name.
erwango f38a251
boards: stm32n6: Remove xtool support mention
erwango File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright (c) 2025 STMicroelectronics | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
STM32_Programmer_CLI -c port=swd mode=UR --power off index=0 --power on index=0 > /dev/null | ||
|
||
sleep 1 |
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 |
---|---|---|
@@ -1,9 +1,15 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright (c) 2024 STMicroelectronics | ||
|
||
board_runner_args(stm32cubeprogrammer "--port=swd") | ||
board_runner_args(stm32cubeprogrammer "--tool-opt= mode=HOTPLUG ap=1") | ||
board_runner_args(stm32cubeprogrammer "--extload=MX25UM51245G_STM32N6570-NUCLEO.stldr") | ||
board_runner_args(stm32cubeprogrammer "--download-address=0x70000000") | ||
if(CONFIG_STM32N6_BOOT_SERIAL) | ||
board_runner_args(stm32cubeprogrammer "--port=usb1") | ||
board_runner_args(stm32cubeprogrammer "--download-modifiers=0x1") | ||
board_runner_args(stm32cubeprogrammer "--start-modifiers=noack") | ||
else() | ||
board_runner_args(stm32cubeprogrammer "--port=swd") | ||
board_runner_args(stm32cubeprogrammer "--tool-opt= mode=HOTPLUG ap=1") | ||
board_runner_args(stm32cubeprogrammer "--extload=MX25UM51245G_STM32N6570-NUCLEO.stldr") | ||
board_runner_args(stm32cubeprogrammer "--download-address=0x70000000") | ||
endif() | ||
|
||
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake) |
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
board: | ||
name: nucleo_n657x0_q | ||
full_name: Nucleo N657x0-Q | ||
full_name: Nucleo N657X0-Q | ||
vendor: st | ||
socs: | ||
- name: stm32n657xx | ||
variants: | ||
- name: sb |
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 |
---|---|---|
@@ -1,124 +1,13 @@ | ||
/* | ||
* Copyright (c) 2024 STMicroelectronics | ||
* Copyright (c) 2025 STMicroelectronics | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/dts-v1/; | ||
#include <st/n6/stm32n657X0.dtsi> | ||
#include <st/n6/stm32n657x0hxq-pinctrl.dtsi> | ||
#include <zephyr/dt-bindings/input/input-event-codes.h> | ||
#include "nucleo_n657x0_q_common.dtsi" | ||
|
||
/ { | ||
model = "STMicroelectronics STM32N657X0-Q-NUCLEO board"; | ||
compatible = "st,stm32n657x0-q-nucleo"; | ||
|
||
chosen { | ||
zephyr,console = &usart1; | ||
zephyr,shell-uart = &usart1; | ||
zephyr,sram = &axisram2; | ||
}; | ||
|
||
leds: leds { | ||
compatible = "gpio-leds"; | ||
|
||
green_led: led_1 { | ||
gpios = <&gpiog 0 GPIO_ACTIVE_HIGH>; | ||
label = "User LD6"; | ||
}; | ||
|
||
blue_led: led_2 { | ||
gpios = <&gpiog 8 GPIO_ACTIVE_HIGH>; | ||
label = "User LD7"; | ||
}; | ||
|
||
red_led: led_3 { | ||
gpios = <&gpiog 10 GPIO_ACTIVE_HIGH>; | ||
label = "User LD5"; | ||
}; | ||
}; | ||
|
||
gpio_keys { | ||
compatible = "gpio-keys"; | ||
|
||
user_button: button_0 { | ||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; | ||
label = "User SB1"; | ||
zephyr,code = <INPUT_KEY_0>; | ||
}; | ||
}; | ||
|
||
aliases { | ||
led0 = &green_led; | ||
sw0 = &user_button; | ||
}; | ||
}; | ||
|
||
&clk_hsi { | ||
hsi-div = <1>; | ||
status = "okay"; | ||
}; | ||
|
||
&pll1 { | ||
clocks = <&clk_hsi>; | ||
div-m = <4>; | ||
mul-n = <75>; | ||
div-p1 = <1>; | ||
div-p2 = <1>; | ||
status = "okay"; | ||
}; | ||
|
||
&ic1 { | ||
pll-src = <1>; | ||
ic-div = <2>; | ||
status = "okay"; | ||
}; | ||
|
||
&ic2 { | ||
pll-src = <1>; | ||
ic-div = <3>; | ||
status = "okay"; | ||
}; | ||
|
||
&ic6 { | ||
pll-src = <1>; | ||
ic-div = <2>; | ||
status = "okay"; | ||
}; | ||
|
||
&ic11 { | ||
pll-src = <1>; | ||
ic-div = <3>; | ||
status = "okay"; | ||
}; | ||
|
||
&perck { | ||
clocks = <&rcc STM32_SRC_HSI PER_SEL(0)>; | ||
status = "okay"; | ||
}; | ||
|
||
&cpusw { | ||
clocks = <&rcc STM32_SRC_IC1 CPU_SEL(3)>; | ||
clock-frequency = <DT_FREQ_M(600)>; | ||
status = "okay"; | ||
}; | ||
|
||
&rcc { | ||
/* ic2, ic6 & ic11 must all be enabled to set ic2 as SYSCLK */ | ||
clocks = <&ic2>; | ||
clock-frequency = <DT_FREQ_M(400)>; | ||
ahb-prescaler = <2>; | ||
apb1-prescaler = <1>; | ||
apb2-prescaler = <1>; | ||
apb4-prescaler = <1>; | ||
apb5-prescaler = <1>; | ||
}; | ||
|
||
&usart1 { | ||
clocks = <&rcc STM32_CLOCK(APB2, 4)>, | ||
<&rcc STM32_SRC_CKPER USART1_SEL(1)>; | ||
pinctrl-0 = <&usart1_tx_pe5 &usart1_rx_pe6>; | ||
pinctrl-names = "default"; | ||
current-speed = <115200>; | ||
status = "okay"; | ||
}; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erwango Sorry for the late review, shouldn't this script be in Python for the sake of portability?