cancel
Showing results for 
Search instead for 
Did you mean: 

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

K.Ata15
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Olivier GALLIEN
ST Employee

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

Olivier GALLIEN
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.

View solution in original post

2 REPLIES 2
Olivier GALLIEN
ST Employee

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

Olivier GALLIEN
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.

Hey Olivier,

Thank you!