Porting ARM's DSP examples to Maxim's LP microcontrollers. Supported target platforms :
- MAX32665 (Covers MAX32665 - MAX32668) - Fully tested
- MAX32660 - Fully tested
- MAX32650 - Build fully tested, debug to be tested
- MAX32625 - Build fully tested, debug to be tested
- MAX32620 - Build fully tested, debug to be tested
- MAX32520 - Build fully tested, debug to be tested
- MAX3263X - Build fully tested, debug to be tested
Support for the MAX32600 is under development.
The projects in this repo are ports of ARM's DSP example projects that can be found in the CMSIS-DSP library that have been made compatible with the build system in Maxim's Low-Power ARM Micro Toolchain. Some slight modifications have been made to the source code to eliminate compiler errors/warnings, but the examples have been left mostly "as-is". The major changes here have been made to the build system.
Some of the example projects are dependant on a newer version of the CMSIS library than what is included in our toolchain, so pre-compiled binaries are included in this repo and the makefiles for the projects that need it are linked with a path relative to the project. So if the Bayes, FFT, or SVM projects are copied to a workspace outside of the repo, the CMSIS directory must be copied to into the same workspace.
Debug launch configurations are included in each project, and should appear in the "Favorites" menu in Eclipse.
- Install Maxim's ARM LP Microcontroller Toolchain for your OS from one of the above links (If not already installed).
- Clone or download+extract this repo to an accessible location.
- Launch the Eclipse CDT IDE and open a workspace. (For help getting started with Eclipse, see the Quick Start guide found in the README.pdf of the toolchain, or Maxim's Getting Started with Eclipse User Guide.)
- Open the Eclipse Import wizard with File -> Import...
- Under General, select the "Existing Projects into Workspace" option. Hit Next.
- Browse to root directory of the repo from step 2. Select the projects you'd like to import into the workspace. If the "Copy projects into workspace" option is checked, the "CMSIS" project must be selected too. The CMSIS "project" is simply a folder that holds the CMSIS-DSP library that these projects link against. Hit Finish.
These example projects come pre-configured for the MAX32665 target (which covers the MAX32665-MAX32668), but if you'd like to target a different microcontroller there are just two modifications that you will need to make.
- Change the target processor for the makefile of the project, as shown below. For example, if targeting the MAX32660, change to TARGET=MAX32660. The makefile will handle the rest.
These example projects are great starting points for your own projects. When copying a project to a new one, there are a few modifications to the copied project that you'll need to make, shown with an example below. For this example, I've copied the "arm_bayes_example" to a new project called "my_bayes_project".
- Right click -> Copy on the example project.
- ** The filepath to the project directory must not contain spaces **
- All of the example projects retain support for Maxim's peripheral drivers and compile all of the drivers by default on first build. This can be disabled in the makefile to reduce build time if the peripheral drivers aren't going to be used.