1.. zephyr:board:: max32666fthr 2 3Overview 4******** 5The MAX32666FTHR board is a rapid development platform to help engineers quickly implement battery 6optimized Bluetooth® 5 solutions with the MAX32666 Arm® Cortex®-M4 processor with FPU. The board 7also includes the MAX1555 1-Cell Li+ battery charger for battery management. The form factor is 8a small 0.9in by 2.0in dualrow header footprint that is compatible with breadboards and 9off-the-shelf peripheral expansion boards. The board also includes a variety of peripherals, 10such as a micro SD card connector, 6-axis accelerometer/gyro, RGB indicator LED, and pushbutton. 11This platform provides poweroptimized flexible for quick proof-of-concepts and early software 12development to enhance time to market. 13 14 15The Zephyr port is running on the MAX32666 MCU. 16 17.. image:: img/max32666fthr_img1.jpg 18 :align: center 19 :alt: MAX32666FTHR Front 20 21.. image:: img/max32666fthr_img2.jpg 22 :align: center 23 :alt: MAX32666FTHR Back 24 25Hardware 26******** 27 28- MAX32666 MCU: 29 30 - High-Efficiency Microcontroller and Audio DSP for Wearable and Hearable Devices 31 32 - Arm Cortex-M4 with FPU Up to 96MHz 33 - Optional Second Arm Cortex-M4 with FPU Optimized for Data Processing 34 - Low-Power 7.3728MHz System Clock Option 35 - 1MB Flash, Organized into Dual Banks 2 x 512KB 36 - 560KB (448KB ECC) SRAM; 3 x 16KB Cache 37 - Optional Error Correction Code (ECC-SEC-DED)for Cache, SRAM, and Internal Flash 38 39 - Bluetooth 5 Low Energy Radio 40 41 - 1Mbps and 2Mbps Data Throughput 42 - Long Range (125kbps and 500kbps) 43 - Advertising Extension 44 - Rx Sensitivity: -95dbm; Tx Power Up to +4.5dbm 45 - On-Chip Matching with Single-Ended Antenna Port 46 47 - Power Management Maximizes Operating Time for Battery Applications 48 49 - Integrated SIMO SMPS for Coin-Cell Operation 50 - Dynamic Voltage Scaling Minimizes Active Core Power Consumption 51 - 27.3μA/MHz at 3.3V Executing from Cache 52 - Selectable SRAM Retention in Low Power Modes with RTC Enabled 53 54 - Multiple Peripherals for System Control 55 56 - Three QSPI Master/Slave with Three Chip Selects Each 57 - Three 4-Wire UARTs 58 - Three I2C Master/Slave 59 - Up to 50 GPIO 60 - QSPI (SPIXF) with Real-Time Flash Decryption 61 - QSPI (SPIXR) RAM Interface Provides SRAMExpansion 62 - 8-Input 10-Bit Delta-Sigma ADC 7.8ksps 63 - USB 2.0 HS Engine with Internal Transceiver 64 - PDM Interface Supports Two Digital Microphones 65 - I2S with TDM 66 - Six 32-Bit Timers 67 - Two High-Speed Timers 68 - 1-Wire Master 69 - Sixteen Pulse Trains (PWM) 70 - Secure Digital Interface Supports SD3.0/SDIO3.0/eMMC4.51 71 72 - Secure Valuable IP/Data with Hardware Security 73 74 - Trust Protection Unit (TPU) with MAA SupportsFast ECDSA and Modular Arithmetic 75 - AES128/192/256, DES, 3DES, Hardware Accelerator 76 - TRNG Seed Generator 77 - SHA-2 Accelerator•Secure Bootloader 78 79- External devices connected to the MAX32666FTHR: 80 81 - MAX1555 1-Cell Li+ Battery Charger 82 - Breadboard Compatible Headers 83 - 10-Pin Cortex Debug Header 84 - Micro USB Connector 85 - Micro SD Card Connector 86 - RGB Indicator LED and One General Purpose Push Button Switch 87 - 6-Axis Accelerometer/Gyro 88 - Bluetooth Surface Mount Antenna 89 90 91Supported Features 92================== 93 94Below interfaces are supported by Zephyr on MAX32666FTHR. 95 96+-----------+------------+-------------------------------------+ 97| Interface | Controller | Driver/Component | 98+===========+============+=====================================+ 99| NVIC | on-chip | nested vector interrupt controller | 100+-----------+------------+-------------------------------------+ 101| SYSTICK | on-chip | systick | 102+-----------+------------+-------------------------------------+ 103| CLOCK | on-chip | clock and reset control | 104+-----------+------------+-------------------------------------+ 105| GPIO | on-chip | gpio | 106+-----------+------------+-------------------------------------+ 107| UART | on-chip | serial | 108+-----------+------------+-------------------------------------+ 109| TRNG | on-chip | entropy | 110+-----------+------------+-------------------------------------+ 111| Watchdog | on-chip | watchdog | 112+-----------+------------+-------------------------------------+ 113| SPI | on-chip | spi | 114+-----------+------------+-------------------------------------+ 115| DMA | on-chip | dma controller | 116+-----------+------------+-------------------------------------+ 117| I2C | on-chip | i2c | 118+-----------+------------+-------------------------------------+ 119| ADC | on-chip | adc | 120+-----------+------------+-------------------------------------+ 121| Timer | on-chip | counter | 122+-----------+------------+-------------------------------------+ 123| PWM | on-chip | pwm | 124+-----------+------------+-------------------------------------+ 125| W1 | on-chip | one wire master | 126+-----------+------------+-------------------------------------+ 127| Flash | on-chip | flash | 128+-----------+------------+-------------------------------------+ 129 130Connections and IOs 131=================== 132 133JH3 Pinout 134********** 135 136+---------+----------+-------------------------------------------------------------------------------------------------+ 137| Pin | Name | Description | 138+=========+==========+=================================================================================================+ 139| 1 | GND | Ground | 140+---------+----------+-------------------------------------------------------------------------------------------------+ 141| 2 | P0_9 | UART0 Tx | 142+---------+----------+-------------------------------------------------------------------------------------------------+ 143| 3 | P0_10 | UART0 Rx | 144+---------+----------+-------------------------------------------------------------------------------------------------+ 145| 4 | P0_26 | QSPI2 MISO | 146+---------+----------+-------------------------------------------------------------------------------------------------+ 147| 5 | P0_25 | QSPI2 MOSI | 148+---------+----------+-------------------------------------------------------------------------------------------------+ 149| 6 | P0_27 | QSPI2 SCK | 150+---------+----------+-------------------------------------------------------------------------------------------------+ 151| 7 | AIN_5 | ADC Analog Input. Alternatively, AIN2N or P0_21 | 152+---------+----------+-------------------------------------------------------------------------------------------------+ 153| 8 | AIN_4 | ADC Analog Input. Alternatively, AIN2P or P0_20 | 154+---------+----------+-------------------------------------------------------------------------------------------------+ 155| 9 | AIN_3 | ADC Analog Input. Alternatively, AIN1N or P0_19 | 156+---------+----------+-------------------------------------------------------------------------------------------------+ 157| 10 | AIN_2 | ADC Analog Input. Alternatively, AIN1P or P0_18 | 158+---------+----------+-------------------------------------------------------------------------------------------------+ 159| 11 | AIN_1 | ADC Analog Input. Alternatively, AIN0N or P0_17 | 160+---------+----------+-------------------------------------------------------------------------------------------------+ 161| 12 | AIN_0 | ADC Analog Input. Alternatively, AIN0P or P0_16 | 162+---------+----------+-------------------------------------------------------------------------------------------------+ 163| 13 | GND | Ground | 164+---------+----------+-------------------------------------------------------------------------------------------------+ 165| 14 | NC | No Connection | 166+---------+----------+-------------------------------------------------------------------------------------------------+ 167| 15 | 3V3 | 3.3V Output. Typically used to provide 3.3V to peripherals connected to the expansion headers | 168+---------+----------+-------------------------------------------------------------------------------------------------+ 169| 16 | RSTN | Master Reset Signal | 170+---------+----------+-------------------------------------------------------------------------------------------------+ 171 172 173JH4 Pinout 174********** 175 176+---------+----------+-----------------------------------------------------------------------------------------------------------+ 177| Pin | Name | Description | 178+=========+==========+===========================================================================================================+ 179| 1 | SYS | SYS switched connection to the Battery. This is the primary system power supply and | 180| | | automatically switches between the battery voltage and the USB supply when available. | 181+---------+----------+-----------------------------------------------------------------------------------------------------------+ 182| 2 | PWREN | Power Enable. This is connected to the ON pin of the MAX4995 LDO. It turns off the LDO if shorted to GND. | 183+---------+----------+-----------------------------------------------------------------------------------------------------------+ 184| 3 | VBUS | USB VBUS Signal. This can be used as a 5V supply when connected to USB. This pin can also be used as | 185| | | an input to power the board, but this should only be done when not using the USB connector since there is | 186| | | no circuitry to prevent current from flowing back into the USB connector. | 187+---------+----------+-----------------------------------------------------------------------------------------------------------+ 188| 4 | P0_12 | 1-Wire master signal | 189+---------+----------+-----------------------------------------------------------------------------------------------------------+ 190| 5 | P0_3 | SPIXF SCK | 191+---------+----------+-----------------------------------------------------------------------------------------------------------+ 192| 6 | P0_5 | SPIXF SDIO3 | 193+---------+----------+-----------------------------------------------------------------------------------------------------------+ 194| 7 | P0_4 | SPIXF SDIO2 | 195+---------+----------+-----------------------------------------------------------------------------------------------------------+ 196| 8 | P0_2 | SPIXF SDIO1/MISO | 197+---------+----------+-----------------------------------------------------------------------------------------------------------+ 198| 9 | P0_1 | SPIXF SDIO0/MOSI | 199+---------+----------+-----------------------------------------------------------------------------------------------------------+ 200| 10 | P0_0 | SPIXF SS0 | 201+---------+----------+-----------------------------------------------------------------------------------------------------------+ 202| 11 | P0_6 | I2CM0 SCL. Pulled to MAX32666 VDDIOH, connected to BMI160. | 203+---------+----------+-----------------------------------------------------------------------------------------------------------+ 204| 12 | P0_7 | I2CM0 SDA. Pulled to MAX32666 VDDIOH, connected to BMI160. | 205+---------+----------+-----------------------------------------------------------------------------------------------------------+ 206 207 208Programming and Debugging 209************************* 210 211Flashing 212======== 213 214The MAX32666 MCU can be flashed by connecting an external debug probe to the SWD port. 215SWD debug can be accessed through the Cortex 10-pin connector, JH2. 216Logic levels are fixed to VDDIO (1.8V). 217 218Once the debug probe is connected to your host computer, then you can simply run the 219``west flash`` command to write a firmware image into flash. 220 221.. note:: 222 223 This board uses OpenOCD as the default debug interface. You can also use 224 a Segger J-Link with Segger's native tooling by overriding the runner, 225 appending ``--runner jlink`` to your ``west`` command(s). The J-Link should 226 be connected to the standard 2*5 pin debug connector (JH2) using an 227 appropriate adapter board and cable. 228 229Debugging 230========= 231 232Please refer to the `Flashing`_ section and run the ``west debug`` command 233instead of ``west flash``. 234 235References 236********** 237 238- `MAX32666FTHR web page`_ 239 240.. _MAX32666FTHR web page: 241 https://www.analog.com/en/design-center/evaluation-hardware-and-software/evaluation-boards-kits/MAX32666FTHR.html 242