1.. zephyr:board:: max32666evkit
2
3Overview
4********
5The MAX32666EVKIT provides a platform for evaluating the capabilities of the MAX32665 and MAX32666
6high-efficiency Arm® microcontrollers and audio DSP for wearable and hearable device applications.
7
8The Zephyr port is running on the MAX32666 MCU.
9
10Hardware
11********
12
13- MAX32666 MCU:
14
15  - High-Efficiency Microcontroller and Audio DSP for Wearable and Hearable Devices
16
17    - Arm Cortex-M4 with FPU Up to 96MHz
18    - Optional Second Arm Cortex-M4 with FPU Optimized for Data Processing
19    - Low-Power 7.3728MHz System Clock Option
20    - 1MB Flash, Organized into Dual Banks 2 x 512KB
21    - 560KB (448KB ECC) SRAM; 3 x 16KB Cache
22    - Optional Error Correction Code (ECC-SEC-DED)for Cache, SRAM, and Internal Flash
23
24  - Bluetooth 5 Low Energy Radio
25
26    - 1Mbps and 2Mbps Data Throughput
27    - Long Range (125kbps and 500kbps)
28    - Advertising Extension
29    - Rx Sensitivity: -95dbm; Tx Power Up to +4.5dbm
30    - On-Chip Matching with Single-Ended Antenna Port
31
32  - Power Management Maximizes Operating Time for Battery Applications
33
34    - Integrated SIMO SMPS for Coin-Cell Operation
35    - Dynamic Voltage Scaling Minimizes Active Core Power Consumption
36    - 27.3μA/MHz at 3.3V Executing from Cache
37    - Selectable SRAM Retention in Low Power Modes with RTC Enabled
38
39  - Multiple Peripherals for System Control
40
41    - Three QSPI Master/Slave with Three Chip Selects Each
42    - Three 4-Wire UARTs
43    - Three I2C Master/Slave
44    - Up to 50 GPIO
45    - QSPI (SPIXF) with Real-Time Flash Decryption
46    - QSPI (SPIXR) RAM Interface Provides SRAMExpansion
47    - 8-Input 10-Bit Delta-Sigma ADC 7.8ksps
48    - USB 2.0 HS Engine with Internal Transceiver
49    - PDM Interface Supports Two Digital Microphones
50    - I2S with TDM
51    - Six 32-Bit Timers
52    - Two High-Speed Timers
53    - 1-Wire Master
54    - Sixteen Pulse Trains (PWM)
55    - Secure Digital Interface Supports SD3.0/SDIO3.0/eMMC4.51
56
57  - Secure Valuable IP/Data with Hardware Security
58
59    - Trust Protection Unit (TPU) with MAA SupportsFast ECDSA and Modular Arithmetic
60    - AES128/192/256, DES, 3DES, Hardware Accelerator
61    - TRNG Seed Generator
62    - SHA-2 Accelerator•Secure Bootloader
63
64- Benefits and Features of MAX32666EVKIT:
65
66  - Bluetooth SMA connector with a 2.4GHz Hinged Whip Antenna
67  - 1.28in 128 x 128 Monochrome TFT Display
68  - 64MB XIP Flash
69  - 1MB XIP RAM
70  - Stereo Audio Codec with Line-In and Line-Out 3.5mm Jacks
71  - Digital Audio Microphone
72  - USB 2.0 Micro B Interface
73  - USB 2.0 Micro B to Serial UARTs
74  - Micro SD Card Interface
75  - Select GPIOs Accessed Through a 0.1in Header
76  - Access to the 8 Analog Inputs Through a 0.1in Header
77  - Arm® or SWD JTAG 20-Pin Header
78  - 1-Wire RJ11 Port
79  - Can Be Solely Sourced by a Coin Cell Battery
80  - Board Power Provided by Either USB Port
81  - Individual Power Measurement on All IC Rails Through Jumpers
82  - On-Board 1.8V and 3.3V Regulators
83  - Two General-Purpose LEDs and Two General-Purpose Pushbutton Switches
84
85
86Supported Features
87==================
88
89Below interfaces are supported by Zephyr on MAX32666EVKIT.
90
91+-----------+------------+-------------------------------------+
92| Interface | Controller | Driver/Component                    |
93+===========+============+=====================================+
94| NVIC      | on-chip    | nested vector interrupt controller  |
95+-----------+------------+-------------------------------------+
96| SYSTICK   | on-chip    | systick                             |
97+-----------+------------+-------------------------------------+
98| CLOCK     | on-chip    | clock and reset control             |
99+-----------+------------+-------------------------------------+
100| GPIO      | on-chip    | gpio                                |
101+-----------+------------+-------------------------------------+
102| UART      | on-chip    | serial                              |
103+-----------+------------+-------------------------------------+
104| TRNG      | on-chip    | entropy                             |
105+-----------+------------+-------------------------------------+
106| Watchdog  | on-chip    | watchdog                            |
107+-----------+------------+-------------------------------------+
108| DMA       | on-chip    | dma controller                      |
109+-----------+------------+-------------------------------------+
110| I2C       | on-chip    | i2c                                 |
111+-----------+------------+-------------------------------------+
112| ADC       | on-chip    | adc                                 |
113+-----------+------------+-------------------------------------+
114| Timer     | on-chip    | counter                             |
115+-----------+------------+-------------------------------------+
116| PWM       | on-chip    | pwm                                 |
117+-----------+------------+-------------------------------------+
118| W1        | on-chip    | one wire master                     |
119+-----------+------------+-------------------------------------+
120| Flash     | on-chip    | flash                               |
121+-----------+------------+-------------------------------------+
122
123
124Connections and IOs
125===================
126
127
128+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
129| Name      | Name          | Settings      | Description                                                                                      |
130+===========+===============+===============+==================================================================================================+
131| JP1       | I2C0_SCL/SDA  |               |                                                                                                  |
132|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
133|           |               | | Open      | |  | Disconnects I2C0 SCL and SDA 1.5K pullups from VDDIOH.                        |               |
134|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
135|           |               | | Close     | |  | Connects I2C0 SCL and SDA 1.5K pullups to VDDIOH.                             |               |
136|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
137|           |               |               |                                                                                                  |
138+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
139| JP2       | I2C1_SCL/SDA  | +-----------+ |  +-------------------------------------------------------------------------------+               |
140|           |               | | Open      | |  | Disconnects I2C1 SCL and SDA 1.5K pullups from VDDIOH.                        |               |
141|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
142|           |               | | Close     | |  | Connects I2C1 SCL and SDA 1.5K pullups to VDDIOH.                             |               |
143|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
144|           |               |               |                                                                                                  |
145+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
146| JP3       | I2C2_SCL/SDA  | +-----------+ |  +-------------------------------------------------------------------------------+               |
147|           |               | | Open      | |  | Disconnects I2C2 SCL and SDA 1.5K pullups from VDDIOH.                        |               |
148|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
149|           |               | | Close     | |  | Connects I2C2 SCL and SDA 1.5K pullups to VDDIOH.                             |               |
150|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
151|           |               |               |                                                                                                  |
152+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
153| JP4       | P1_14         | +-----------+ |  +-------------------------------------------------------------------------------+               |
154|           |               | | Open      | |  | Disconnects LED D2 from P1_14.                                                |               |
155|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
156|           |               | | Close     | |  | Connects LED D2 to P1_14.                                                     |               |
157|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
158|           |               |               |                                                                                                  |
159+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
160| JP5       | P1_15         | +-----------+ |  +-------------------------------------------------------------------------------+               |
161|           |               | | Open      | |  | Disconnects LED D3 from P1_15.                                                |               |
162|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
163|           |               | | Close     | |  | Connects LED D3 to P1_15.                                                     |               |
164|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
165|           |               |               |                                                                                                  |
166+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
167| JP6       | VBUS          | +-----------+ |  +-------------------------------------------------------------------------------+               |
168|           |               | | 2-1       | |  | Connects VBUS to USB connector CN1 to supply board power.                     |               |
169|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
170|           |               | | 2-3       | |  | Connects VBUS to USB connector CN2 to supply board power.                     |               |
171|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
172|           |               |               |                                                                                                  |
173+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
174| JP7       | N/A           | N/A           |  N/A                                                                                             |
175+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
176| JP8       | N/A           | N/A           |  N/A                                                                                             |
177+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
178| JP9       | +-----------+ | +-----------+ |  +-------------------------------------------------------------------------------+               |
179|           | | P0_20     | | | 2-1       | |  | Connects the USB to serial UART to GPIO P0_20 (RX1).                          |               |
180|           | +-----------+ | +-----------+ |  +-------------------------------------------------------------------------------+               |
181|           | | P0_28     | | | 2-3       | |  | Connects the USB to serial UART to GPIO P0_28 (RX2).                          |               |
182|           | +-----------+ | +-----------+ |  +-------------------------------------------------------------------------------+               |
183|           |               |               |                                                                                                  |
184+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
185| JP10      | +-----------+ | +-----------+ |  +-------------------------------------------------------------------------------+               |
186|           | | P0_21     | | | 2-1       | |  | Connects the USB to serial UART to GPIO P0_21 (TX1).                          |               |
187|           | +-----------+ | +-----------+ |  +-------------------------------------------------------------------------------+               |
188|           | | P0_29     | | | 2-3       | |  | Connects the USB to serial UART to GPIO P0_29 (TX2).                          |               |
189|           | +-----------+ | +-----------+ |  +-------------------------------------------------------------------------------+               |
190|           |               |               |                                                                                                  |
191+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
192| JP11      | +-----------+ | +-----------+ |  +-------------------------------------------------------------------------------+               |
193|           | | P0_22     | | | 2-1       | |  | Connects the USB to serial UART to GPIO P0_22 (CTS1_N).                       |               |
194|           | +-----------+ | +-----------+ |  +-------------------------------------------------------------------------------+               |
195|           | | P0_30     | | | 2-3       | |  | Connects the USB to serial UART to GPIO P0_30 (CTS2_N).                       |               |
196|           | +-----------+ | +-----------+ |  +-------------------------------------------------------------------------------+               |
197|           |               |               |                                                                                                  |
198+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
199| JP12      | +-----------+ | +-----------+ |  +-------------------------------------------------------------------------------+               |
200|           | | P0_23     | | | 2-1       | |  | Connects the USB to serial UART to GPIO P0_23 (RTS1_N).                       |               |
201|           | +-----------+ | +-----------+ |  +-------------------------------------------------------------------------------+               |
202|           | | P0_31     | | | 2-3       | |  | Connects the USB to serial UART to GPIO P0_31 (RTS2_N).                       |               |
203|           | +-----------+ | +-----------+ |  +-------------------------------------------------------------------------------+               |
204|           |               |               |                                                                                                  |
205+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
206| JP13      | VREGI         | +-----------+ |  +-------------------------------------------------------------------------------+               |
207|           |               | | 2-1       | |  | Connects VREGI to the coin cell battery.                                      |               |
208|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
209|           |               | | 2-3       | |  | Connects VREGI to 3V3.                                                        |               |
210|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
211|           |               |               |                                                                                                  |
212+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
213| JP14      | VDDIOH        | +-----------+ |  +-------------------------------------------------------------------------------+               |
214|           |               | | 1-2       | |  | Connects VDDIOH to VREGO_A                                                    |               |
215|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
216|           |               | | 3-4       | |  | Connects VDDIOH to 1V8.                                                       |               |
217|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
218|           |               | | 5-6       | |  | Connects VDDIOH to 3V3.                                                       |               |
219|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
220|           |               |               |                                                                                                  |
221+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
222| JP15      | VDDIOH        | +-----------+ |  +-------------------------------------------------------------------------------+               |
223|           |               | | Open      | |  | Disconnects power from VDDIOH.                                                |               |
224|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
225|           |               | | Close     | |  | Connects power to VDDIOH.                                                     |               |
226|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
227|           |               |               |                                                                                                  |
228+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
229| JP16      | VDDB          | +-----------+ |  +-------------------------------------------------------------------------------+               |
230|           |               | | Open      | |  | Disconnects power from VDDB.                                                  |               |
231|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
232|           |               | | Close     | |  | Connects power to VDDB.                                                       |               |
233|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
234|           |               |               |                                                                                                  |
235+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
236| JP17      | VDDIO         | +-----------+ |  +-------------------------------------------------------------------------------+               |
237|           |               | | 2-1       | |  | Connects VDDIO to VREGO_A.                                                    |               |
238|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
239|           |               | | 2-3       | |  | Connects VDDIO to 1V8.                                                        |               |
240|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
241|           |               |               |                                                                                                  |
242+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
243| JP18      | VDDIO         | +-----------+ |  +-------------------------------------------------------------------------------+               |
244|           |               | | Open      | |  | Disconnects power from VDDIO.                                                 |               |
245|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
246|           |               | | Close     | |  | Connects power to VDDIO.                                                      |               |
247|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
248|           |               |               |                                                                                                  |
249+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
250| JP19      | VDDA          | +-----------+ |  +-------------------------------------------------------------------------------+               |
251|           |               | | Open      | |  | Disconnects power from VDDA.                                                  |               |
252|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
253|           |               | | Close     | |  | Connects power to VDDA.                                                       |               |
254|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
255|           |               |               |                                                                                                  |
256+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
257| JP20      | VCORE_A       | +-----------+ |  +-------------------------------------------------------------------------------+               |
258|           |               | | Open      | |  | Disconnects power from VCORE_A.                                               |               |
259|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
260|           |               | | Close     | |  | Connects power to VCORE_A.                                                    |               |
261|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
262|           |               |               |                                                                                                  |
263+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
264| JP21      | VCORE_B       | +-----------+ |  +-------------------------------------------------------------------------------+               |
265|           |               | | Open      | |  | Disconnects power from VCORE_B.                                               |               |
266|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
267|           |               | | Close     | |  | Connects power to VCORE_B.                                                    |               |
268|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
269|           |               |               |                                                                                                  |
270+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
271| JP22      | VTXIN         | +-----------+ |  +-------------------------------------------------------------------------------+               |
272|           |               | | Open      | |  | Disconnects power from VTXIN.                                                 |               |
273|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
274|           |               | | Close     | |  | Connects power to VTXIN.                                                      |               |
275|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
276|           |               |               |                                                                                                  |
277+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
278| JP23      | VRXIN         | +-----------+ |  +-------------------------------------------------------------------------------+               |
279|           |               | | Open      | |  | Disconnects power from VRXIN.                                                 |               |
280|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
281|           |               | | Close     | |  | Connects power to VRXIN.                                                      |               |
282|           |               | +-----------+ |  +-------------------------------------------------------------------------------+               |
283|           |               |               |                                                                                                  |
284+-----------+---------------+---------------+--------------------------------------------------------------------------------------------------+
285
286
287
288Programming and Debugging
289*************************
290
291Flashing
292========
293
294The MAX32666 MCU can be flashed by connecting an external debug probe to the
295SWD port. SWD debug can be accessed through the Cortex 10-pin connector, J6.
296Logic levels are fixed to VDDIOH (1.8V or 3.3V).
297
298Once the debug probe is connected to your host computer, then you can simply run the
299``west flash`` command to write a firmware image into flash.
300
301.. note::
302
303   This board uses OpenOCD as the default debug interface. You can also use
304   a Segger J-Link with Segger's native tooling by overriding the runner,
305   appending ``--runner jlink`` to your ``west`` command(s). The J-Link should
306   be connected to the standard 20-pin connector (J7) or a Cortex® 10-pin connector (J6).
307
308Debugging
309=========
310
311Please refer to the `Flashing`_ section and run the ``west debug`` command
312instead of ``west flash``.
313
314References
315**********
316
317- `MAX32666EVKIT web page`_
318
319.. _MAX32666EVKIT web page:
320   https://www.analog.com/en/design-center/evaluation-hardware-and-software/evaluation-boards-kits/MAX32666EVKIT.html
321