Running The Application; Using Rpmsg Utility; Using Python Utility - ST X-LINUX-MEMS1 User Manual

Table of Contents

Advertisement

Step 4.
Add meta-st-mems1 layer
PC $> bitbake-layers add-layer ../layers/meta-st/meta-st-mems1
Step 5.
Update the configuration to add new components in the image
PC $> echo 'IMAGE_INSTALL:append = "mems1"' >> ../layers/meta-st/meta-st-openstlinux
/conf/layer.conf
or
PC $>vi ../layers/meta-st/meta-st-openstlinux/conf/layer.conf
IMAGE_INSTALL: append = "mems1"
Step 6.
Build the image
PC $> bitbake st-image-weston
New Images are formed in the tmp-glibc/deploy/images/stm32mp1/ directory
PC $> ls -l tmp-glibc/deploy/images/stm32mp1/FlashLayout_sdcard_stm32mp157f-dk2-trus
ted.tsv
and FlashLayout_sdcard_stm32mp157f-dk2-trusted are created besides other images.
Follow the
Step 7.
Check if the file below is present on the discovery kit
$ ls -l /lib/firmware
Elf file and rpmsg utility will be present.
4.5

Running the application

4.5.1

Using rpmsg utility

4.5.1.1
Starter package
The .elf and rpmsg can be built as explained in the above section. There are prebuilt binaries which can be
pushed to the discovery kit at /lib/firmware.
Change the permission of rpmsg and run the application
$chmod a+x rpmsg
$./rpmsg
4.5.2

Using Python utility

Transfer X-LINUX-MEMS1_V1.0.0\Application\Source\X-LINUX-MEMS1\Utilities\sensor.py utility to /lib/firmware
Run the below command in the terminal of the STM32MPU and Python GUI will be launched on the STM32MPU
LCD Screen.
PC $python3 sensor.py
UM3148 - Rev 2
''link''
to flash the binary.
UM3148
Running the application
page 9/15

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the X-LINUX-MEMS1 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents