Skip to content

hms-networks/abcc-example-stm32nucleo

Repository files navigation

abcc-example-stm32nucleo

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.

Purpose

To enable easy evaluation and inspiration to Anybus CompactCom prospects.

Prerequisites

Integrated Development Environment (IDE)

Hardware

Git

  • Of course, you will need to have Git installed. See this tutorial on how to install Git.

Cloning

Flag? What flag?

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

(In case you missed it...)

If you did not pass the flag --recurse-submodules when cloning, the following command can be run:

git submodule update --init --recursive

Build and run

Step 1. Setup the hardware

Follow the steps in the chapter called Confuguration in the Anybus® CompactCom™ Adapter Board for STM32 Nucleo™ - Installation Guide to setup your hardware correctly.

Step 2. Open the project

Find the .project file in the repository root and open it with STM32CubeIDE.

Step 3. Build and run

Select Run->Debug to build and run the configuration called "Debug". Use the function keys to step through or run the debug application.

Step 4. See debug print-out

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.

(Nothing is happening...)

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.

About

Anybus CompactCom (ABCC) STM32 Nucleo example implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages