|
| 1 | +.. _frdm_mcxa156: |
| 2 | + |
| 3 | +NXP FRDM-MCXA156 |
| 4 | +################ |
| 5 | + |
| 6 | +Overview |
| 7 | +******** |
| 8 | + |
| 9 | +FRDM-MCXA156 are compact and scalable development boards for rapid prototyping of |
| 10 | +MCX A15X MCUs. They offer industry standard headers for easy access to the |
| 11 | +MCUs I/Os, integrated open-standard serial interfaces, external flash memory and |
| 12 | +an on-board MCU-Link debugger. MCX N Series are high-performance, low-power |
| 13 | +microcontrollers with intelligent peripherals and accelerators providing multi-tasking |
| 14 | +capabilities and performance efficiency. |
| 15 | + |
| 16 | +.. image:: frdm_mcxa156.webp |
| 17 | + :align: center |
| 18 | + :alt: FRDM-MCXA156 |
| 19 | + |
| 20 | +Hardware |
| 21 | +******** |
| 22 | + |
| 23 | +- MCX-A156 Arm Cortex-M33 microcontroller running at 96 MHz |
| 24 | +- 1MB dual-bank on chip Flash |
| 25 | +- 128 KB RAM |
| 26 | +- USB high-speed (Host/Device) with on-chip HS PHY. HS USB Type-C connectors |
| 27 | +- 2x FlexCAN with FD, 2x I3Cs, 2x SAI |
| 28 | +- On-board MCU-Link debugger with CMSIS-DAP |
| 29 | +- Arduino Header, FlexIO/LCD Header, SmartDMA/Camera Header, mikroBUS |
| 30 | + |
| 31 | +For more information about the MCX-A156 SoC and FRDM-MCXA156 board, see: |
| 32 | + |
| 33 | +- `MCX-A156 SoC Website`_ |
| 34 | +- `MCX-A156 Datasheet`_ |
| 35 | +- `MCX-A156 Reference Manual`_ |
| 36 | +- `FRDM-MCXA156 Website`_ |
| 37 | +- `FRDM-MCXA156 User Guide`_ |
| 38 | +- `FRDM-MCXA156 Board User Manual`_ |
| 39 | +- `FRDM-MCXA156 Schematics`_ |
| 40 | + |
| 41 | +Supported Features |
| 42 | +================== |
| 43 | + |
| 44 | +The FRDM-MCXA156 board configuration supports the following hardware features: |
| 45 | + |
| 46 | ++-----------+------------+-------------------------------------+ |
| 47 | +| Interface | Controller | Driver/Component | |
| 48 | ++===========+============+=====================================+ |
| 49 | +| NVIC | on-chip | nested vector interrupt controller | |
| 50 | ++-----------+------------+-------------------------------------+ |
| 51 | +| SYSTICK | on-chip | systick | |
| 52 | ++-----------+------------+-------------------------------------+ |
| 53 | +| PINMUX | on-chip | pinmux | |
| 54 | ++-----------+------------+-------------------------------------+ |
| 55 | +| GPIO | on-chip | gpio | |
| 56 | ++-----------+------------+-------------------------------------+ |
| 57 | +| UART | on-chip | serial port-polling; | |
| 58 | +| | | serial port-interrupt | |
| 59 | ++-----------+------------+-------------------------------------+ |
| 60 | +| CLOCK | on-chip | clock_control | |
| 61 | ++-----------+------------+-------------------------------------+ |
| 62 | +| FLASH | on-chip | soc flash | |
| 63 | ++-----------+------------+-------------------------------------+ |
| 64 | + |
| 65 | +Targets available |
| 66 | +================== |
| 67 | + |
| 68 | +The default configuration file |
| 69 | +:zephyr_file:`boards/nxp/frdm_mcxa156/frdm_mcxa156_defconfig` |
| 70 | + |
| 71 | +Other hardware features are not currently supported by the port. |
| 72 | + |
| 73 | +Connections and IOs |
| 74 | +=================== |
| 75 | + |
| 76 | +The MCX-A156 SoC has 5 gpio controllers and has pinmux registers which |
| 77 | +can be used to configure the functionality of a pin. |
| 78 | + |
| 79 | ++------------+-----------------+----------------------------+ |
| 80 | +| Name | Function | Usage | |
| 81 | ++============+=================+============================+ |
| 82 | +| PIO0_2 | UART | UART RX | |
| 83 | ++------------+-----------------+----------------------------+ |
| 84 | +| PIO0_3 | UART | UART TX | |
| 85 | ++------------+-----------------+----------------------------+ |
| 86 | + |
| 87 | +System Clock |
| 88 | +============ |
| 89 | + |
| 90 | +The MCX-A156 SoC is configured to use FRO running at 96MHz as a source for |
| 91 | +the system clock. |
| 92 | + |
| 93 | +Serial Port |
| 94 | +=========== |
| 95 | + |
| 96 | +The FRDM-MCXA156 SoC has 5 LPUART interfaces for serial communication. |
| 97 | +LPUART 0 is configured as UART for the console. |
| 98 | + |
| 99 | +Programming and Debugging |
| 100 | +************************* |
| 101 | + |
| 102 | +Build and flash applications as usual (see :ref:`build_an_application` and |
| 103 | +:ref:`application_run` for more details). |
| 104 | + |
| 105 | +Configuring a Debug Probe |
| 106 | +========================= |
| 107 | + |
| 108 | +A debug probe is used for both flashing and debugging the board. This board is |
| 109 | +configured by default to use the MCU-Link CMSIS-DAP Onboard Debug Probe. |
| 110 | + |
| 111 | +Using LinkServer |
| 112 | +---------------- |
| 113 | + |
| 114 | +Linkserver is the default runner for this board, and supports the factory |
| 115 | +default MCU-Link firmware. Follow the instructions in |
| 116 | +:ref:`mcu-link-cmsis-onboard-debug-probe` to reprogram the default MCU-Link |
| 117 | +firmware. This only needs to be done if the default onboard debug circuit |
| 118 | +firmware was changed. To put the board in ``DFU mode`` to program the firmware, |
| 119 | +short jumper JP5. |
| 120 | + |
| 121 | +Using J-Link |
| 122 | +------------ |
| 123 | + |
| 124 | +There are two options. The onboard debug circuit can be updated with Segger |
| 125 | +J-Link firmware by following the instructions in |
| 126 | +:ref:`mcu-link-jlink-onboard-debug-probe`. |
| 127 | +To be able to program the firmware, you need to put the board in ``DFU mode`` |
| 128 | +by shortening the jumper JP5. |
| 129 | +The second option is to attach a :ref:`jlink-external-debug-probe` to the |
| 130 | +10-pin SWD connector (J24) of the board. Additionally, the jumper JP7 must |
| 131 | +be shortened. |
| 132 | +For both options use the ``-r jlink`` option with west to use the jlink runner. |
| 133 | + |
| 134 | +.. code-block:: console |
| 135 | +
|
| 136 | + west flash -r jlink |
| 137 | +
|
| 138 | +Configuring a Console |
| 139 | +===================== |
| 140 | + |
| 141 | +Connect a USB cable from your PC to J21, and use the serial terminal of your choice |
| 142 | +(minicom, putty, etc.) with the following settings: |
| 143 | + |
| 144 | +- Speed: 115200 |
| 145 | +- Data: 8 bits |
| 146 | +- Parity: None |
| 147 | +- Stop bits: 1 |
| 148 | + |
| 149 | +Flashing |
| 150 | +======== |
| 151 | + |
| 152 | +Here is an example for the :ref:`hello_world` application. |
| 153 | + |
| 154 | +.. zephyr-app-commands:: |
| 155 | + :zephyr-app: samples/hello_world |
| 156 | + :board: frdm_mcxa156 |
| 157 | + :goals: flash |
| 158 | + |
| 159 | +Open a serial terminal, reset the board (press the RESET button), and you should |
| 160 | +see the following message in the terminal: |
| 161 | + |
| 162 | +.. code-block:: console |
| 163 | +
|
| 164 | + *** Booting Zephyr OS build v3.6.0-4478-ge6c3a42f5f52 *** |
| 165 | + Hello World! frdm_mcxa156/mcxa156 |
| 166 | +
|
| 167 | +Debugging |
| 168 | +========= |
| 169 | + |
| 170 | +Here is an example for the :ref:`hello_world` application. |
| 171 | + |
| 172 | +.. zephyr-app-commands:: |
| 173 | + :zephyr-app: samples/hello_world |
| 174 | + :board: frdm_mcxa156/mcxa156 |
| 175 | + :goals: debug |
| 176 | + |
| 177 | +Open a serial terminal, step through the application in your debugger, and you |
| 178 | +should see the following message in the terminal: |
| 179 | + |
| 180 | +.. code-block:: console |
| 181 | +
|
| 182 | + *** Booting Zephyr OS build v3.6.0-4478-ge6c3a42f5f52 *** |
| 183 | + Hello World! frdm_mcxa156/mcxa156 |
| 184 | +
|
| 185 | +.. _MCX-A156 SoC Website: |
| 186 | + https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/mcx-arm-cortex-m/mcx-a-series-microcontrollers/mcx-a13x-14x-15x-mcus-with-arm-cortex-m33-scalable-device-options-low-power-and-intelligent-peripherals:MCX-A13X-A14X-A15X |
| 187 | + |
| 188 | +.. _MCX-A156 Datasheet: |
| 189 | + https://www.nxp.com/docs/en/data-sheet/MCXAP100M96FS6.pdf |
| 190 | + |
| 191 | +.. _MCX-A156 Reference Manual: |
| 192 | + https://www.nxp.com/webapp/Download?colCode=MCXAP100M96FS6RM |
| 193 | + |
| 194 | +.. _FRDM-MCXA156 Website: |
| 195 | + https://www.nxp.com/design/design-center/development-boards-and-designs/general-purpose-mcus/frdm-development-board-for-mcx-a144-5-6-a154-5-6-mcus:FRDM-MCXA156 |
| 196 | + |
| 197 | +.. _FRDM-MCXA156 User Guide: |
| 198 | + https://www.nxp.com/document/guide/getting-started-with-frdm-mcxa156:GS-FRDM-MCXA156 |
| 199 | + |
| 200 | +.. _FRDM-MCXA156 Board User Manual: |
| 201 | + https://www.nxp.com/docs/en/user-manual/UM12121.pdf |
| 202 | + |
| 203 | +.. _FRDM-MCXA156 Schematics: |
| 204 | + https://www.nxp.com/webapp/Download?colCode=SPF-90841 |
0 commit comments