3
3
Overview
4
4
********
5
5
6
- The STM32 Nucleo-144 board provides an affordable and flexible way for users to try out
6
+ The NUCLEO-N657X0-Q board provides an affordable and flexible way for users to try out
7
7
new concepts and build prototypes by choosing from the various combinations of performance
8
8
and power consumption features, provided by the STM32 microcontroller. For the compatible boards,
9
9
the internal or external SMPS significantly reduces power consumption in Run mode.
@@ -12,7 +12,7 @@ The ST Zio connector, which extends the ARDUINO® Uno V3 connectivity, and the S
12
12
provide an easy means of expanding the functionality of the Nucleo open development platform with
13
13
a wide choice of specialized shields.
14
14
15
- The STM32 Nucleo-144 board does not require any separate probe as it integrates the ST-LINK
15
+ The NUCLEO-N657X0-Q board does not require any separate probe as it integrates the ST-LINK
16
16
debugger/programmer.
17
17
18
18
The STM32 Nucleo-144 board comes with the STM32 comprehensive free software libraries and
@@ -51,6 +51,12 @@ Hardware
51
51
- On-board ST-LINK (STLINK/V2-1, STLINK-V3E, or STLINK-V3EC) debugger/programmer with
52
52
USB re-enumeration capability: mass storage, Virtual COM port, and debug port
53
53
54
+ For more details, please refer to:
55
+
56
+ * `NUCLEO-N657X0-Q website `_
57
+ * `STM32N657X0 on www.st.com `_
58
+ * `STM32N657 reference manual `_
59
+
54
60
Supported Features
55
61
==================
56
62
@@ -79,10 +85,10 @@ The default configuration can be found in the defconfig file:
79
85
Connections and IOs
80
86
===================
81
87
82
- NUCLEO_N657X0_Q Board has 12 GPIO controllers. These controllers are responsible
88
+ NUCLEO-N657X0-Q Board has 12 GPIO controllers. These controllers are responsible
83
89
for pin muxing, input/output, pull-up, etc.
84
90
85
- For more details please refer to `NUCLEO_N657X0_Q User Manual `_.
91
+ For more details please refer to `NUCLEO-N657X0-Q User Manual `_.
86
92
87
93
Default Zephyr Peripheral Mapping:
88
94
----------------------------------
@@ -95,83 +101,147 @@ Default Zephyr Peripheral Mapping:
95
101
System Clock
96
102
------------
97
103
98
- NUCLEO_N657X0_Q System Clock could be driven by internal or external oscillator,
104
+ NUCLEO-N657X0-Q System Clock could be driven by internal or external oscillator,
99
105
as well as main PLL clock. By default System clock is driven by PLL clock at
100
106
400MHz, driven by 64MHz high speed internal oscillator.
101
107
102
108
Serial Port
103
109
-----------
104
110
105
- NUCLEO_N657X0_Q board has 10 U(S)ARTs. The Zephyr console output is assigned to
111
+ NUCLEO-N657X0-Q board has 10 U(S)ARTs. The Zephyr console output is assigned to
106
112
USART1. Default settings are 115200 8N1.
107
113
108
114
Programming and Debugging
109
115
*************************
110
116
111
- NUCLEO_N657X0_Q board includes an ST-LINK/V3 embedded debug tool interface.
112
- This probe allows to flash the board using various tools.
117
+ NUCLEO-N657X0-Q board includes an ST-LINK/V3 embedded debug tool interface.
118
+ This probe allows to flash and debug the board using various tools.
119
+
113
120
114
- Flashing
115
- ========
116
121
117
- The board is configured to be flashed using west `STM32CubeProgrammer `_ runner,
118
- so its :ref: `installation <stm32cubeprog-flash-host-tools >` is required.
122
+ Flashing or loading
123
+ ===================
124
+
125
+ The board is configured to be programmed using west `STM32CubeProgrammer `_ runner,
126
+ so its :ref: `installation <stm32cubeprog-flash-host-tools >` is needed.
119
127
Version 2.18.0 or later of `STM32CubeProgrammer `_ is required.
120
128
121
- Flashing an application to NUCLEO_N657X0_Q
122
- ------------------------------------------
129
+ To program the board, there are two options:
130
+
131
+ - Program the firmware in external flash. At boot, it will then be loaded on RAM
132
+ and executed from there.
133
+ - Optionally, it can also be taken advantage from the serial boot interface provided
134
+ by the boot ROM. In that case, firmware is directly loaded in RAM and executed from
135
+ there. It is not retained.
136
+
137
+ Programming an application to NUCLEO-N657X0-Q
138
+ ---------------------------------------------
139
+
140
+ Here is an example to build and run :zephyr:code-sample: `hello_world ` application.
141
+
142
+ First, connect the NUCLEO-N657X0-Q to your host computer using the ST-Link USB port.
123
143
124
- Connect the NUCLEO_N657X0_Q to your host computer using the USB port.
125
- Then build and flash an application.
144
+ .. tabs ::
145
+
146
+ .. group-tab :: ST-Link
147
+
148
+ Build and flash an application using ``nucleo_n657x0_q `` target.
149
+
150
+ .. zephyr-app-commands ::
151
+ :zephyr-app: samples/hello_world
152
+ :board: nucleo_n657x0_q
153
+ :goals: build flash
126
154
127
155
.. note ::
128
- For flashing, BOOT0 pin should be set to 0 and BOOT1 to 1 before powering on
129
- the board.
156
+ For flashing, before powering the board, set the boot pins in the following configuration:
157
+
158
+ * BOOT0: 0
159
+ * BOOT1: 1
130
160
131
- To run the application after flashing, BOOT1 should be set to 0 and the board
132
- should be powered off and on again.
161
+ After flashing, to run the application, set the boot pins in the following configuration:
133
162
134
- Here is an example for the :zephyr:code-sample: ` hello_world ` application.
163
+ * BOOT1: 0
135
164
136
- Run a serial host program to connect with your Nucleo board:
165
+ Power off and on the board again.
166
+
167
+ Run a serial host program to connect to your board:
137
168
138
169
.. code-block :: console
139
170
140
171
$ minicom -D /dev/ttyACM0
141
172
142
- Then build and flash the application.
173
+ .. group-tab:: Serial Boot Loader (USB)
174
+
175
+ Additionally, connect the NUCLEO-N657X0-Q to your host computer using the USB port.
176
+ In this configuration, ST-Link is used to power the board and for serial communication
177
+ over the Virtual COM Port.
178
+
179
+ .. note::
180
+ Before powering the board, set the boot pins in the following configuration:
181
+
182
+ * BOOT0: 1
183
+ * BOOT1: 0
184
+
185
+ Build and load an application using ``nucleo_n657x0_q/stm32n657xx/sb`` target (you
186
+ can also use the shortened form: ``nucleo_n657x0_q//sb``)
143
187
144
188
.. zephyr-app-commands ::
145
189
:zephyr-app: samples/hello_world
146
190
:board: nucleo_n657x0_q
147
191
:goals: build flash
148
192
193
+
194
+ Run a serial host program to connect to your board:
195
+
196
+ .. code-block :: console
197
+
198
+ $ minicom -D /dev/ttyACM0
199
+
149
200
You should see the following message on the console:
150
201
151
202
.. code-block :: console
152
203
153
204
Hello World! nucleo_n657x0_q/stm32n657xx
154
205
206
+
155
207
Debugging
156
208
=========
157
209
158
210
For now debugging is only available through STM32CubeIDE:
159
- * Go to File > Import and select C/C++ > STM32 Cortex-M Executable
160
- * In Executable field, browse to your <ZEPHYR_PATH>/build/zephyr/zephyr.elf
211
+
212
+ * Go to File > Import and select C/C++ > STM32 Cortex-M Executable.
213
+ * In Executable field, browse to your <ZEPHYR_PATH>/build/zephyr/zephyr.elf.
161
214
* In MCU field, select STM32N657X0HxQ.
162
- * Click on Finish
163
- * Then click on Debug to start the debugging session
215
+ * Click on Finish.
216
+ * Finally, click on Debug to start the debugging session.
164
217
165
218
.. note ::
166
- For debugging, BOOT0 pin should be set to 0 and BOOT1 to 1 before powering on the
167
- board.
219
+ For debugging, before powering on the board, set the boot pins in the following configuration:
220
+
221
+ * BOOT0: 0
222
+ * BOOT1: 1
223
+
224
+
225
+ Running tests with twister
226
+ ==========================
168
227
169
- .. _NUCLEO_N657X0_Q website :
228
+ Due to the BOOT switches manipulation required when flashing the board using ``nucleo_n657x0_q ``
229
+ board target, it is only possible to run twister tests campaign on ``nucleo_n657x0_q/stm32n657xx/sb ``
230
+ board target which doesn't require BOOT pins changes to load and execute binaries.
231
+ To do so, it is advised to use Twister's hardware map feature with the following settings:
232
+
233
+ .. code-block :: yaml
234
+
235
+ - platform : nucleo_n657x0_q/stm32n657xx/sb
236
+ product : BOOT-SERIAL
237
+ pre_script : <path_to_zephyr>/boards/st/common/scripts/board_power_reset.sh
238
+ runner : stm32cubeprogrammer
239
+
240
+ .. _NUCLEO-N657X0-Q website :
170
241
https://www.st.com/en/evaluation-tools/nucleo-n657x0-q.html
171
242
172
- .. _ NUCLEO_N657X0_Q User Manual :
243
+ .. _ NUCLEO-N657X0-Q User Manual :
173
244
https://www.st.com/resource/en/user_manual/um3417-stm32n6-nucleo144-board-mb1940-stmicroelectronics.pdf
174
-
175
245
.. _STM32N657X0 on www.st.com :
176
246
https://www.st.com/en/microcontrollers-microprocessors/stm32n657x0.html
177
247
0 commit comments