boards/adi/max32666fthr/doc/index.rst
.. zephyr:board:: max32666fthr
Overview
The MAX32666FTHR board is a rapid development platform to help engineers quickly implement battery optimized Bluetooth® 5 solutions with the MAX32666 Arm® Cortex®-M4 processor with FPU. The board also includes the MAX1555 1-Cell Li+ battery charger for battery management. The form factor is a small 0.9in by 2.0in dualrow header footprint that is compatible with breadboards and off-the-shelf peripheral expansion boards. The board also includes a variety of peripherals, such as a micro SD card connector, 6-axis accelerometer/gyro, RGB indicator LED, and pushbutton. This platform provides poweroptimized flexible for quick proof-of-concepts and early software development to enhance time to market.
The Zephyr port is running on the MAX32666 MCU.
.. image:: img/max32666fthr_img1.jpg :align: center :alt: MAX32666FTHR Front
.. image:: img/max32666fthr_img2.jpg :align: center :alt: MAX32666FTHR Back
Hardware
MAX32666 MCU:
High-Efficiency Microcontroller and Audio DSP for Wearable and Hearable Devices
Bluetooth 5 Low Energy Radio
Power Management Maximizes Operating Time for Battery Applications
Multiple Peripherals for System Control
Secure Valuable IP/Data with Hardware Security
External devices connected to the MAX32666FTHR:
.. zephyr:board-supported-hw::
JH3 Pinout
+---------+----------+-------------------------------------------------------------------------------------------------+ | Pin | Name | Description | +=========+==========+=================================================================================================+ | 1 | GND | Ground | +---------+----------+-------------------------------------------------------------------------------------------------+ | 2 | P0_9 | UART0 Tx | +---------+----------+-------------------------------------------------------------------------------------------------+ | 3 | P0_10 | UART0 Rx | +---------+----------+-------------------------------------------------------------------------------------------------+ | 4 | P0_26 | QSPI2 MISO | +---------+----------+-------------------------------------------------------------------------------------------------+ | 5 | P0_25 | QSPI2 MOSI | +---------+----------+-------------------------------------------------------------------------------------------------+ | 6 | P0_27 | QSPI2 SCK | +---------+----------+-------------------------------------------------------------------------------------------------+ | 7 | AIN_5 | ADC Analog Input. Alternatively, AIN2N or P0_21 | +---------+----------+-------------------------------------------------------------------------------------------------+ | 8 | AIN_4 | ADC Analog Input. Alternatively, AIN2P or P0_20 | +---------+----------+-------------------------------------------------------------------------------------------------+ | 9 | AIN_3 | ADC Analog Input. Alternatively, AIN1N or P0_19 | +---------+----------+-------------------------------------------------------------------------------------------------+ | 10 | AIN_2 | ADC Analog Input. Alternatively, AIN1P or P0_18 | +---------+----------+-------------------------------------------------------------------------------------------------+ | 11 | AIN_1 | ADC Analog Input. Alternatively, AIN0N or P0_17 | +---------+----------+-------------------------------------------------------------------------------------------------+ | 12 | AIN_0 | ADC Analog Input. Alternatively, AIN0P or P0_16 | +---------+----------+-------------------------------------------------------------------------------------------------+ | 13 | GND | Ground | +---------+----------+-------------------------------------------------------------------------------------------------+ | 14 | NC | No Connection | +---------+----------+-------------------------------------------------------------------------------------------------+ | 15 | 3V3 | 3.3V Output. Typically used to provide 3.3V to peripherals connected to the expansion headers | +---------+----------+-------------------------------------------------------------------------------------------------+ | 16 | RSTN | Master Reset Signal | +---------+----------+-------------------------------------------------------------------------------------------------+
JH4 Pinout
+---------+----------+-----------------------------------------------------------------------------------------------------------+ | Pin | Name | Description | +=========+==========+===========================================================================================================+ | 1 | SYS | SYS switched connection to the Battery. This is the primary system power supply and | | | | automatically switches between the battery voltage and the USB supply when available. | +---------+----------+-----------------------------------------------------------------------------------------------------------+ | 2 | PWREN | Power Enable. This is connected to the ON pin of the MAX4995 LDO. It turns off the LDO if shorted to GND. | +---------+----------+-----------------------------------------------------------------------------------------------------------+ | 3 | VBUS | USB VBUS Signal. This can be used as a 5V supply when connected to USB. This pin can also be used as | | | | an input to power the board, but this should only be done when not using the USB connector since there is | | | | no circuitry to prevent current from flowing back into the USB connector. | +---------+----------+-----------------------------------------------------------------------------------------------------------+ | 4 | P0_12 | 1-Wire master signal | +---------+----------+-----------------------------------------------------------------------------------------------------------+ | 5 | P0_3 | SPIXF SCK | +---------+----------+-----------------------------------------------------------------------------------------------------------+ | 6 | P0_5 | SPIXF SDIO3 | +---------+----------+-----------------------------------------------------------------------------------------------------------+ | 7 | P0_4 | SPIXF SDIO2 | +---------+----------+-----------------------------------------------------------------------------------------------------------+ | 8 | P0_2 | SPIXF SDIO1/MISO | +---------+----------+-----------------------------------------------------------------------------------------------------------+ | 9 | P0_1 | SPIXF SDIO0/MOSI | +---------+----------+-----------------------------------------------------------------------------------------------------------+ | 10 | P0_0 | SPIXF SS0 | +---------+----------+-----------------------------------------------------------------------------------------------------------+ | 11 | P0_6 | I2CM0 SCL. Pulled to MAX32666 VDDIOH, connected to BMI160. | +---------+----------+-----------------------------------------------------------------------------------------------------------+ | 12 | P0_7 | I2CM0 SDA. Pulled to MAX32666 VDDIOH, connected to BMI160. | +---------+----------+-----------------------------------------------------------------------------------------------------------+
Programming and Debugging
.. zephyr:board-supported-runners::
The MAX32666 MCU can be flashed by connecting an external debug probe to the SWD port. SWD debug can be accessed through the Cortex 10-pin connector, JH2. Logic levels are fixed to VDDIO (1.8V).
Once the debug probe is connected to your host computer, then you can simply run the
west flash command to write a firmware image into flash. To perform a full erase,
pass the --erase option when executing west flash.
.. note::
This board uses OpenOCD as the default debug interface. You can also use
a Segger J-Link with Segger's native tooling by overriding the runner,
appending --runner jlink to your west command(s). The J-Link should
be connected to the standard 2*5 pin debug connector (JH2) using an
appropriate adapter board and cable.
Please refer to the Flashing_ section and run the west debug command
instead of west flash.
References
MAX32666FTHR web page_.. _MAX32666FTHR web page: https://www.analog.com/en/design-center/evaluation-hardware-and-software/evaluation-boards-kits/MAX32666FTHR.html