The X-CUBE-H7DC-APP Expansion Package shows how to use OpenAMP middleware to create a communication channel (called rpmsg channel) between the two CPUs of dual-core STM32H74xxx and STM32H75xxx microcontrollers, and send the data from the Cortex®-M4 to the Cortex®-M7 to create an application such as a digital oscilloscope This application is working in bare metal mode for both CPUs.
The Expansion Package is provided with two project configurations for the STM32H745I-DISCO Discovery kit. In the STM32H7_CM4_Oscilloscope_OpenAMP first project, the Cortex®-M4 generates an analog signal via the DAC and timer peripheral; The generated signal is looped back via an external cable to analog inputs; The ADC converts the signal and sends the data to the Cortex®-M7 via OpenAMP middleware. In the second project called STM32H7_CM7_Oscilloscope_OpenAMP, the Cortex®-M7 core receives the converted data from the Cortex®-M4 via OpenAMP middleware and displays the input signal and its FFT32 (provided by the CMSIS library) on the LCD. This package supports several toolchains: IAR Systems® IAR Embedded Workbench®, Keil® MDK-ARM, and STMicroelectronics System Workbench for STM32 (SW4STM32). It can be ported easily to any other toolchain and any STM32H7 Series dual-core device.
- STM32H74xxx and STM32H75xxx dual-core communication demonstrator
- Code execution and data storage in different memory locations
- Arm® Cortex®-M7 and Arm® Cortex®-M4 communication channel
- OpenAMP middleware
- Digital oscilloscope
- FFT display