|
| 1 | +.. zephyr:board:: mcxw23_evk |
| 2 | +
|
| 3 | +Overview |
| 4 | +******** |
| 5 | + |
| 6 | +The MCXW23 EVK base board, combined with a MCXW23 Radio Daughter Module (RDM), |
| 7 | +is an evaluation environment supporting NXP’s MCXW23 wireless processor. |
| 8 | +The EVK supports IoT applications and is intended for prototyping, demos, |
| 9 | +software development and measurements (power consumption and RF). |
| 10 | +The MCXW23 EVK constitutes multiple debugging mechanisms, therefore aiding |
| 11 | +easier application development. |
| 12 | + |
| 13 | +Hardware |
| 14 | +******** |
| 15 | + |
| 16 | +- MCXW23 Arm® Cortex®-M33 microcontroller running at up to 32 MHz |
| 17 | +- 1 MB flash and 128 KB SRAM on-chip |
| 18 | +- 40HVQFN package |
| 19 | +- On-board MCU-Link debugger with CMSIS-DAP |
| 20 | +- LED |
| 21 | +- Reset, ISP, wake, and user buttons for easy testing of software functionality |
| 22 | +- NXP FXLS8974CF accelerometer |
| 23 | +- NXP FXPQ3115BVT1 pressure sensor |
| 24 | +- TMP117 temperature sensor |
| 25 | +- Arduino Header, mikroBUS |
| 26 | + |
| 27 | +For more information about the MCXW236 SoC and MCXW23-EVK board, see: |
| 28 | + |
| 29 | +- `MCXW23 SoC Website`_ |
| 30 | +- `MCXW23 Datasheet`_ |
| 31 | +- `MCXW23 Reference Manual`_ |
| 32 | + |
| 33 | +Supported Features |
| 34 | +================== |
| 35 | + |
| 36 | +.. zephyr:board-supported-hw:: |
| 37 | +
|
| 38 | +Connections and IOs |
| 39 | +=================== |
| 40 | + |
| 41 | +The MCXW23 SoC has IOCON registers, which can be used to configure |
| 42 | +the functionality of a pin. |
| 43 | + |
| 44 | ++---------+-----------------+----------------------------+ |
| 45 | +| Name | Function | Usage | |
| 46 | ++=========+=================+============================+ |
| 47 | +| PIO0_20 | GPIO | ISP SW2 | |
| 48 | ++---------+-----------------+----------------------------+ |
| 49 | +| PIO0_2 | USART | USART RX | |
| 50 | ++---------+-----------------+----------------------------+ |
| 51 | +| PIO0_3 | USART | USART TX | |
| 52 | ++---------+-----------------+----------------------------+ |
| 53 | +| PIO0_19 | GPIO | RED LED | |
| 54 | ++---------+-----------------+----------------------------+ |
| 55 | +| PIO0_18 | GPIO | USR SW4 | |
| 56 | ++---------+-----------------+----------------------------+ |
| 57 | +| PIO0_21 | GPIO | Wakeup SW3 | |
| 58 | ++---------+-----------------+----------------------------+ |
| 59 | +| PIO0_14 | I2C | I2C SCL | |
| 60 | ++---------+-----------------+----------------------------+ |
| 61 | +| PIO0_13 | I2C | I2C SDA | |
| 62 | ++---------+-----------------+----------------------------+ |
| 63 | +| PIO0_1 | GPIO | FXLS8974CF INT1 | |
| 64 | ++---------+-----------------+----------------------------+ |
| 65 | +| PIO0_1 | GPIO | TMP117 INT1 | |
| 66 | ++---------+-----------------+----------------------------+ |
| 67 | +| PIO0_1 | GPIO | FXPQ3115BVT1 INT1 | |
| 68 | ++---------+-----------------+----------------------------+ |
| 69 | + |
| 70 | +System Clock |
| 71 | +============ |
| 72 | + |
| 73 | +The MCXW23 SoC is configured to use FRO running at 32 MHz as a system clock source. |
| 74 | + |
| 75 | +Serial Port |
| 76 | +=========== |
| 77 | + |
| 78 | +The MCXW23 SoC has 3 FLEXCOMM interfaces for serial |
| 79 | +communication. One is configured as USART for the console, one is |
| 80 | +configured for I2C, and the other one is not used. |
| 81 | + |
| 82 | +Programming and Debugging |
| 83 | +************************* |
| 84 | + |
| 85 | +.. zephyr:board-supported-runners:: |
| 86 | +
|
| 87 | +Build and flash applications as usual (see :ref:`build_an_application` |
| 88 | +and :ref:`application_run` for more details). |
| 89 | + |
| 90 | +Configuring a Debug Probe |
| 91 | +========================= |
| 92 | + |
| 93 | +A debug probe is used for both flashing and debugging the board. This board is |
| 94 | +configured by default to use the MCU-Link CMSIS-DAP Onboard Debug Probe. |
| 95 | + |
| 96 | +Using LinkServer |
| 97 | +---------------- |
| 98 | + |
| 99 | +Linkserver is the default runner for this board, and supports the factory |
| 100 | +default MCU-Link firmware. Follow the instructions in |
| 101 | +:ref:`mcu-link-cmsis-onboard-debug-probe` to reprogram the default MCU-Link |
| 102 | +firmware. This only needs to be done if the default onboard debug circuit |
| 103 | +firmware was changed. To put the board in ``DFU mode`` to program the firmware, |
| 104 | +short jumper J32. |
| 105 | + |
| 106 | +Using J-Link |
| 107 | +------------ |
| 108 | + |
| 109 | +There are two options. The onboard debug circuit can be updated with Segger |
| 110 | +J-Link firmware by following the instructions in |
| 111 | +:ref:`mcu-link-jlink-onboard-debug-probe`. |
| 112 | +To be able to program the firmware, you need to put the board in ``DFU mode`` |
| 113 | +by shortening the jumper J32. |
| 114 | +The second option is to attach a :ref:`jlink-external-debug-probe` to the |
| 115 | +10-pin SWD connector (J11) of the board. Additionally, the jumper JP30 must |
| 116 | +be shortened. |
| 117 | +For both options use the ``-r jlink`` option with west to use the jlink runner. |
| 118 | + |
| 119 | +.. code-block:: console |
| 120 | +
|
| 121 | + west flash -r jlink |
| 122 | +
|
| 123 | +Configuring a Console |
| 124 | +===================== |
| 125 | + |
| 126 | +Connect a USB cable from your PC to J33, and use the serial terminal of your choice |
| 127 | +(minicom, putty, etc.) with the following settings: |
| 128 | + |
| 129 | +- Speed: 115200 |
| 130 | +- Data: 8 bits |
| 131 | +- Parity: None |
| 132 | +- Stop bits: 1 |
| 133 | + |
| 134 | +Flashing |
| 135 | +======== |
| 136 | + |
| 137 | +Here is an example for the :zephyr:code-sample:`hello_world` application. |
| 138 | + |
| 139 | +.. zephyr-app-commands:: |
| 140 | + :zephyr-app: samples/hello_world |
| 141 | + :board: mcxw23_evk |
| 142 | + :goals: flash |
| 143 | + |
| 144 | +Open a serial terminal, reset the board (press the RESET button), and you should |
| 145 | +see the following message in the terminal: |
| 146 | + |
| 147 | +.. code-block:: console |
| 148 | +
|
| 149 | + *** Booting Zephyr OS build v4.2.0-2105-g9da1d56da9e7 *** |
| 150 | + Hello World! mcxw23_evk/mcxw236 |
| 151 | +
|
| 152 | +Debugging |
| 153 | +========= |
| 154 | + |
| 155 | +Here is an example for the :zephyr:code-sample:`hello_world` application. |
| 156 | + |
| 157 | +.. zephyr-app-commands:: |
| 158 | + :zephyr-app: samples/hello_world |
| 159 | + :board: mcxw23_evk |
| 160 | + :goals: debug |
| 161 | + |
| 162 | +Open a serial terminal, step through the application in your debugger, and you |
| 163 | +should see the following message in the terminal: |
| 164 | + |
| 165 | +.. code-block:: console |
| 166 | +
|
| 167 | + *** Booting Zephyr OS build v4.2.0-2105-g9da1d56da9e7 *** |
| 168 | + Hello World! mcxw23_evk/mcxw236 |
| 169 | +
|
| 170 | +.. include:: ../../common/board-footer.rst |
| 171 | + :start-after: nxp-board-footer |
| 172 | + |
| 173 | +.. _MCXW23 SoC Website: |
| 174 | + https://www.nxp.com/products/MCX-W23 |
| 175 | + |
| 176 | +.. _MCXW23 Datasheet: |
| 177 | + https://www.nxp.com/docs/en/data-sheet/MCXW23.pdf |
| 178 | + |
| 179 | +.. _MCXW23 Reference Manual: |
| 180 | + https://www.nxp.com/webapp/Download?colCode=MCXW23RM |
0 commit comments