MAX22007EVKIT no-OS Example Project
See projects/max22007 (doxygen) for the Doxygen documentation.
Supported Evaluation Boards
Overview
The MAX22007EVKIT is a fully featured evaluation kit for the MAX22007. This board operates in standalone mode or in conjunction with SDP-K1
Hardware Specifications
The MAX22007EVKIT device has to be supplied with a 7-9V DC voltage and a 3V3 VDRIVE voltage from the microcontroller (for the logic level voltage of the SPI communication).
Pin Description
Please see the following table for the pin assignments for the interface connector (SPI Test Points).
Pin
Name
Description
PMOD1 pin1
CSB
SPI Chip-Select
PMOD1 pin2
SDO
Master-Out Slave-In (MOSI)
PMOD1 pin3
SDI
Master-In Slave-Out (MISO)
PMOD1 pin4
SCLK
Serial Clock
Please ensure to open all the switches on SW1, to ensure compatibility with an external MCU
Please refer to the MAX22007EVKIT Board user guide for more details on jumper positions.
No-OS Supported Examples
The initialization data used in the examples is taken out from: Project Common Data Path
The macros used in Common Data are defined in platform specific files found in: Project Platform Configuration Path
Basic Example
This is a simple example which initializes the MAX22007 and writes to the data register of channel 0 and 3 with a value equivalent to 2v and 4v respectively.
This example is built by selecting the basic variant (see the Build
Command section below).
No-OS Supported Platforms
STM32 Platform
Used Hardware
Connections:
MAX22007EVKIT Pin |
Signal |
Function |
SDP-K1 Pin Number |
PMOD1 pin1 |
CSB |
SPI interface Chip-Select |
D10 |
PMOD1 pin2 |
SDO |
Master-Out Slave-In (MOSI) |
D11 |
PMOD1 pin3 |
SDI |
Master-In Slave-Out (MISO) |
D12 |
PMOD1 pin4 |
SCLK |
SPI interface Serial Clock Line |
D13 |
GND |
GND |
Ground |
GND |
Build Command
For toolchain setup and prerequisites, see the STM32 CMake build guide.
Available variants: basic.
Available boards: sdp-ck1z.
Replace --variant / --board accordingly.
# set the path to STM32CubeMX and STM32CubeIDE (only if they are not
# in a default install location)
export STM32CUBEMX=</path/to/stm32cubemx>
export STM32CUBEIDE=</path/to/stm32cubeide>
# Windows (PowerShell):
# $env:STM32CUBEMX = "C:\ST\STM32CubeMX"
# $env:STM32CUBEIDE = "C:\ST\STM32CubeIDE"
cd no-OS
# build the project (basic example on the SDP-K1 board)
python tools/scripts/no_os_build.py build \
--project max22007 --variant basic --board sdp-ck1z
# build and flash (requires a connected debug probe)
python tools/scripts/no_os_build.py build \
--project max22007 --variant basic --board sdp-ck1z \
--probe openocd --flash