|
| 1 | +.. zephyr:board:: nucleo_n657x0_q |
| 2 | +
|
| 3 | +Overview |
| 4 | +******** |
| 5 | + |
| 6 | +The STM32 Nucleo-144 board provides an affordable and flexible way for users to try out |
| 7 | +new concepts and build prototypes by choosing from the various combinations of performance |
| 8 | +and power consumption features, provided by the STM32 microcontroller. For the compatible boards, |
| 9 | +the internal or external SMPS significantly reduces power consumption in Run mode. |
| 10 | + |
| 11 | +The ST Zio connector, which extends the ARDUINO® Uno V3 connectivity, and the ST morpho headers |
| 12 | +provide an easy means of expanding the functionality of the Nucleo open development platform with |
| 13 | +a wide choice of specialized shields. |
| 14 | + |
| 15 | +The STM32 Nucleo-144 board does not require any separate probe as it integrates the ST-LINK |
| 16 | +debugger/programmer. |
| 17 | + |
| 18 | +The STM32 Nucleo-144 board comes with the STM32 comprehensive free software libraries and |
| 19 | +examples available with the STM32Cube MCU Package. |
| 20 | + |
| 21 | +Hardware |
| 22 | +******** |
| 23 | + |
| 24 | +- Common features: |
| 25 | + |
| 26 | + - STM32 microcontroller in an LQFP144, TFBGA225, or VFBGA264 package |
| 27 | + - 3 user LEDs |
| 28 | + - 1 user push-button and 1 reset push-button |
| 29 | + - 32.768 kHz crystal oscillator |
| 30 | + - Board connectors: |
| 31 | + |
| 32 | + - SWD |
| 33 | + - ST morpho expansion connector |
| 34 | + |
| 35 | + - Flexible power-supply options: ST-LINK USB VBUS, USB connector, or external sources |
| 36 | + |
| 37 | +- Features specific to some of the boards (refer to the ordering information section |
| 38 | + of the data brief for details); |
| 39 | + |
| 40 | + - External or internal SMPS to generate Vcore logic supply |
| 41 | + - Ethernet compliant with IEEE-802.3-2002 |
| 42 | + - USB Device only, USB OTG full speed, or SNK/UFP (full-speed or high-speed mode) |
| 43 | + - Board connectors: |
| 44 | + |
| 45 | + - ARDUINO® Uno V3 connector or ST Zio expansion connector including ARDUINO® Uno V3 |
| 46 | + - Camera module FPC |
| 47 | + - MIPI20 compatible connector with trace signals |
| 48 | + - USB with Micro-AB or USB Type-C® |
| 49 | + - Ethernet RJ45 |
| 50 | + |
| 51 | + - On-board ST-LINK (STLINK/V2-1, STLINK-V3E, or STLINK-V3EC) debugger/programmer with |
| 52 | + USB re-enumeration capability: mass storage, Virtual COM port, and debug port |
| 53 | + |
| 54 | +Supported Features |
| 55 | +================== |
| 56 | + |
| 57 | +The Zephyr ``nucleo_n657x0_q`` board supports the following hardware features: |
| 58 | + |
| 59 | ++-----------+------------+-------------------------------------+ |
| 60 | +| Interface | Controller | Driver/Component | |
| 61 | ++===========+============+=====================================+ |
| 62 | +| CLOCK | on-chip | reset and clock control | |
| 63 | ++-----------+------------+-------------------------------------+ |
| 64 | +| GPIO | on-chip | gpio | |
| 65 | ++-----------+------------+-------------------------------------+ |
| 66 | +| NVIC | on-chip | nested vector interrupt controller | |
| 67 | ++-----------+------------+-------------------------------------+ |
| 68 | +| UART | on-chip | serial port-polling; | |
| 69 | +| | | serial port-interrupt | |
| 70 | ++-----------+------------+-------------------------------------+ |
| 71 | + |
| 72 | + |
| 73 | +Other hardware features are not yet supported on this Zephyr port. |
| 74 | + |
| 75 | +The default configuration can be found in the defconfig file: |
| 76 | +:zephyr_file:`boards/st/nucleo_n657x0_q/nucleo_n657x0_q_defconfig` |
| 77 | + |
| 78 | + |
| 79 | +Connections and IOs |
| 80 | +=================== |
| 81 | + |
| 82 | +NUCLEO_N657X0_Q Board has 12 GPIO controllers. These controllers are responsible |
| 83 | +for pin muxing, input/output, pull-up, etc. |
| 84 | + |
| 85 | +For more details please refer to `NUCLEO_N657X0_Q User Manual`_. |
| 86 | + |
| 87 | +Default Zephyr Peripheral Mapping: |
| 88 | +---------------------------------- |
| 89 | + |
| 90 | +- LD1 : PO1 |
| 91 | +- LD2 : PG10 |
| 92 | +- USART_1_TX : PE5 |
| 93 | +- USART_1_RX : PE6 |
| 94 | + |
| 95 | +System Clock |
| 96 | +------------ |
| 97 | + |
| 98 | +NUCLEO_N657X0_Q System Clock could be driven by internal or external oscillator, |
| 99 | +as well as main PLL clock. By default System clock is driven by PLL clock at |
| 100 | +400MHz, driven by 64MHz high speed internal oscillator. |
| 101 | + |
| 102 | +Serial Port |
| 103 | +----------- |
| 104 | + |
| 105 | +NUCLEO_N657X0_Q board has 10 U(S)ARTs. The Zephyr console output is assigned to |
| 106 | +USART1. Default settings are 115200 8N1. |
| 107 | + |
| 108 | +Programming and Debugging |
| 109 | +************************* |
| 110 | + |
| 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. |
| 113 | + |
| 114 | +Flashing |
| 115 | +======== |
| 116 | + |
| 117 | +The board is configured to be flashed using west `STM32CubeProgrammer`_ runner, |
| 118 | +so its :ref:`installation <stm32cubeprog-flash-host-tools>` is required. |
| 119 | +Version 2.18.0 or later of `STM32CubeProgrammer`_ is required. |
| 120 | + |
| 121 | +Flashing an application to NUCLEO_N657X0_Q |
| 122 | +------------------------------------------ |
| 123 | + |
| 124 | +Connect the NUCLEO_N657X0_Q to your host computer using the USB port. |
| 125 | +Then build and flash an application. |
| 126 | + |
| 127 | +.. note:: |
| 128 | + For flashing, BOOT0 pin should be set to 0 and BOOT1 to 1 before powering on |
| 129 | + the board. |
| 130 | + |
| 131 | + To run the application after flashing, BOOT1 should be set to 0 and the board |
| 132 | + should be powered off and on again. |
| 133 | + |
| 134 | +Here is an example for the :zephyr:code-sample:`hello_world` application. |
| 135 | + |
| 136 | +Run a serial host program to connect with your Nucleo board: |
| 137 | + |
| 138 | +.. code-block:: console |
| 139 | +
|
| 140 | + $ minicom -D /dev/ttyACM0 |
| 141 | +
|
| 142 | +Then build and flash the application. |
| 143 | + |
| 144 | +.. zephyr-app-commands:: |
| 145 | + :zephyr-app: samples/hello_world |
| 146 | + :board: nucleo_n657x0_q |
| 147 | + :goals: build flash |
| 148 | + |
| 149 | +You should see the following message on the console: |
| 150 | + |
| 151 | +.. code-block:: console |
| 152 | +
|
| 153 | + Hello World! nucleo_n657x0_q/stm32n657xx |
| 154 | +
|
| 155 | +Debugging |
| 156 | +========= |
| 157 | + |
| 158 | +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 |
| 161 | +* In MCU field, select STM32N657X0HxQ. |
| 162 | +* Click on Finish |
| 163 | +* Then click on Debug to start the debugging session |
| 164 | + |
| 165 | +.. note:: |
| 166 | + For debugging, BOOT0 pin should be set to 0 and BOOT1 to 1 before powering on the |
| 167 | + board. |
| 168 | + |
| 169 | +.. _NUCLEO_N657X0_Q website: |
| 170 | + https://www.st.com/en/evaluation-tools/nucleo-n657x0-q.html |
| 171 | + |
| 172 | +.. _NUCLEO_N657X0_Q User Manual: |
| 173 | + https://www.st.com/resource/en/user_manual/um3417-stm32n6-nucleo144-board-mb1940-stmicroelectronics.pdf |
| 174 | + |
| 175 | +.. _STM32N657X0 on www.st.com: |
| 176 | + https://www.st.com/en/microcontrollers-microprocessors/stm32n657x0.html |
| 177 | + |
| 178 | +.. _STM32N657 reference manual: |
| 179 | + https://www.st.com/resource/en/reference_manual/rm0486-stm32n647657xx-armbased-32bit-mcus-stmicroelectronics.pdf |
| 180 | + |
| 181 | +.. _STM32CubeProgrammer: |
| 182 | + https://www.st.com/en/development-tools/stm32cubeprog.html |
0 commit comments