This is a stand-alone example application using the Anybus CompactCom Driver API (abcc-api) ported for the Anybus CompactCom Adapter Board - Module to STM32 Nucleo™ evaluation platform.
To enable easy evaluation and inspiration to Anybus CompactCom prospects.
- STM32CubeIDE is required to run this example application.
- This example application is created for the STM32 Nucleo H753ZI board together with the adapter board from HMS. See the Anybus® CompactCom™ Adapter Board for STM32 Nucleo™ - Installation Guide for more details on how to set up the hardware.
- Of course, you will need to have Git installed. See this tutorial on how to install Git.
This repository contain submodules abcc-driver-api, abcc-driver and abcc-abp that must be initialized. Therefore, pass the flag --recurse-submodules when cloning.
git clone --recurse-submodules https://github.com/hms-networks/abcc-example-stm32nucleo.git
If you did not pass the flag --recurse-submodules when cloning, the following command can be run:
git submodule update --init --recursive
Follow the steps in the chapter called Confuguration in the Anybus® CompactCom™ Adapter Board for STM32 Nucleo™ - Installation Guide to setup your hardware correctly.
Find the .project file in the repository root and open it with STM32CubeIDE.
Select Run->Debug to build and run the configuration called "Debug". Use the function keys to step through or run the debug application.
Open Window->Show view->SWV->SWV ITM Data Console. From there, click on the wrench icon to open the Serial Wire Viewer settings and enable the 0th ITM Stimulus port (rightmost checkbox). Then, press the red circle "Start Trace" to view the debug print-out from the example application.
Make sure that your hardware is set up correctly and that the switch (S4) on the adapter board is configured to either SPI or UART operation mode. See the Anybus® CompactCom™ Adapter Board for STM32 Nucleo™ - Installation Guide for more details.