Skip to content

IPC Demo: Try to get a working demo#7

Open
jonas-rem wants to merge 3 commits intov09.02.00.05from
WIP/j.remmert@phytec.de/ipc_demo
Open

IPC Demo: Try to get a working demo#7
jonas-rem wants to merge 3 commits intov09.02.00.05from
WIP/j.remmert@phytec.de/ipc_demo

Conversation

@jonas-rem
Copy link
Copy Markdown

Use the ipc_echo_baremetal_test to get to a working example.

Goals for this PR:

  • Test IPC between Linux and any MCU
  • Provide a way to view logs
  • Allow restart of MCUs with remoteproc without Linux reboot (fix RP_MBOX_SHUTDOWN_ACK)
  • Reference this example in the documentation

Notes

  • This PR does not yet do anything fundamentally different. It just refactors the ipc_echo_baremetal_test sample in order to properly view logging messages.
  • Debug messages can be viewed with cat /sys/kernel/debug/remoteproc/remoteproc2/trace0
  • Restart of MCUs via remoteproc does not work yet. MCU never receives RP_MBOX_SHUTDOWN command.

Jonas Remmert added 3 commits April 15, 2025 18:47
The ipc_test example serves only as an example to demonstrate multicore
communication therefore it makes sense to enable debug per default.

Per default logging to the tracebuffer in memory is enabled. The logging
outputs can be viewed with:

cat /sys/kernel/debug/remoteproc/remoteproc<n>/trace0 where 'n' is the
number of the remoteproc interface for the related core.

Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
Simplify and refactor some code in the receive function.

The receive function was always sending new ping messages, even when
NUMMSGS was reached. This is confusing and the continuous flood of debug
messages makes it very hard to see anything.

Reduce NUMMSGS to 10 from 10000.

Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant