Crates.io | memcom |
lib.rs | memcom |
version | 0.1.0 |
source | src |
created_at | 2024-02-23 11:14:55.78186 |
updated_at | 2024-02-23 11:14:55.78186 |
description | Command-line tool to interact with shared-mem-queue queues |
homepage | |
repository | https://git.openlogisticsfoundation.org/silicon-economy/libraries/serum/memcom-rs |
max_upload_size | |
id | 1150485 |
size | 40,869 |
Memcom is a command line tool for interacting with the shared memory between the M4 and A7
processors of the ST32MP1XX controllers. It is based on the
shared-mem-queue
crate so it can be used to interact
with applications which use that crate, too, or follow the protocol. For example, it can be used to
write commands to or read logs from the M4 processor.
The tool can operate a read channel (M4 to A7) and a write channel (A7 to M4) simultaneously. The
channel origin and length can either be specified via the command-line arguments
--read_origin
, --read_length
, --write_origin
, --write_length
or via a config file which is
specified via the command-line flag --file
(-f
). As a fallback, ./memcom.toml
is tried as
default configuration file.
The config file has to be a toml file with the following syntax:
[read_channel]
origin = "0x10048000"
length = "0x2000"
[write_channel]
origin = "0x1004a000"
length = "0x2000"
memcom --read_origin 0x10048000 --read_length 0x2000 --write_origin 0x1004a000 --write_length 0x2000
Open Logistics Foundation License Version 1.3, January 2023
See the LICENSE file in the top directory.
Fraunhofer IML Embedded Rust Group - embedded-rust@iml.fraunhofer.de