Skip to main content
K.Ata15
Associate II
June 21, 2019
Solved

Is there a simple script example on Linux side to test MPU <-> CPU comm ?

  • June 21, 2019
  • 2 replies
  • 1231 views

Hello,

I am building the firmware on the M4 core. I have allready modified the 'demo_launcher.py' script to launch my code via the GUI (for demonstration purposes). As the Linux application will be built by somebody else, i only need to do the M4 firmware and use simple script to send and receive messages. I see a lot of info about on the Wiki about the protocol, but my knowledge of Linux is not that great to code this from scratch.

Is there a basic example script that i can use and modify for my purpose ? I see a C app here:

https://github.com/STMicroelectronics/meta-st-openstlinux/blob/4e36cf0c7c7bdb24700a990f73afcda84cdcf0cf/recipes-samples/ai-nn-application/ai-hand-char-reco-launcher/ai_char_reco_launcher.c

that is used by the 'demo_launcher.py', but i don't currently have a PC set to build this.

Thank you!

K.

This topic has been closed for replies.
Best answer by Olivier GALLIEN

Hi @K.Ata15​ 

I guess the example OpenAMP_TTY_echo is the example code you are looking for.

Please refer to this page for details where to find and how to play with it :

https://wiki.st.com/stm32mpu/wiki/STM32CubeMP1_Package

Hope it help

Olivier

2 replies

Olivier GALLIEN
Olivier GALLIENBest answer
ST Technical Moderator
June 24, 2019

Hi @K.Ata15​ 

I guess the example OpenAMP_TTY_echo is the example code you are looking for.

Please refer to this page for details where to find and how to play with it :

https://wiki.st.com/stm32mpu/wiki/STM32CubeMP1_Package

Hope it help

Olivier

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
K.Ata15
K.Ata15Author
Associate II
June 25, 2019

Hey Olivier,

Thank you!