How nxp-real-time-edge-sw/heterogeneous-multicore works
This repository is the Heterogeneous Multicore Framework and its embedded demos: it connects AMP processors and operating systems through inter-core messaging, VirtIO data paths, and resource sharing, with examples for latency, networking, and industrial control. A representative flow is an RTOS application using RPMSG to communicate across cores; VirtIO networking provides a separate high-throughput sharing path. The README documents several capabilities whose implementation files were not sampled, so those links reflect documented behavior rather than inspected call paths.
Main entry points: freertos/main.c Latency benchmark · freertos/main.c VirtIO network backend · freertos/main.c RPMSG applications · app_srtm.c SRTM sharing
Components 26
Core framework
- OS counter API
include/os/counter.h - Statistics
libs/stats/stats.c - Logging API
include/log/log.h - Software mailbox
libs/gen_sw_mbox/gen_sw_mbox.c - Mailbox interface
include/mailbox/mailbox.h - Multi-SoC PTP
net/ptp_stack/ptp_multisoc_stack.c
Inter-core messaging
- RPMSG applications
apps/rpmsg_str_echo/freertos/main.c - RPMSG benchmark
apps/rpmsg_perf/freertos/main.c - RPMSG transport
libs/rpmsg/rpmsg.c - SRTM sharing
apps/netc_share/freertos/boards/imx943evk/cm33_core1/app_srtm.c - UART sharing demo
apps/rpmsg_uart_sharing/freertos/main.c
VirtIO and networking
- VirtIO benchmark
apps/virtio_perf/freertos/main.c - VirtIO network backend
apps/virtio_net_backend/freertos/main.c - VirtIO network device
virtio/devices/network.c - Network switch
net/net_switch.c - Ethernet port
net/port_enet.c - lwIP ping demo
apps/lwip_ping/freertos/main.c
RTOS examples
- Latency benchmark
apps/rt_latency/freertos/main.c - Latency test logic
apps/rt_latency/common/rt_latency.h - Hello world
apps/hello_world/freertos/main.c - Driver examples
apps/driver_examples/freertos/main.c
Industrial control
- EtherCAT digital IO
apps/soem_digital_io/freertos/main.c - EtherCAT servo
apps/soem_servo/freertos/main.c - RT1180 servo
apps/soem_servo_rt1180/freertos/main.c
Other components
- RTOS image
- Linux image
Connections 23
- RTOS image → RPMSG applications: runs demo
- RPMSG applications → RPMSG transport: uses transport
- RPMSG applications → Linux image: exchanges messages
- RPMSG benchmark → Linux image: measures bandwidth
- UART sharing demo → SRTM sharing: uses sharing
apps/rpmsg_uart_sharing/freertos/main.c - SRTM sharing → Linux image: shares resources
- RTOS image → VirtIO benchmark: runs benchmark
- VirtIO network backend → Network switch: configures
apps/virtio_net_backend/freertos/main.c - VirtIO network backend → Ethernet port: uses port
apps/virtio_net_backend/freertos/main.c - VirtIO network backend → VirtIO network device: sets up device
apps/virtio_net_backend/freertos/main.c - VirtIO network device → Linux image: provides virtual NIC
- lwIP ping demo → Ethernet port: uses networking
- Latency benchmark → Latency test logic: runs tests
apps/rt_latency/freertos/main.c - Latency benchmark → OS counter API: measures time
apps/rt_latency/freertos/main.c - Latency benchmark → Statistics: reports results
apps/rt_latency/freertos/main.c - Latency benchmark → Logging API: logs progress
apps/rt_latency/freertos/main.c - Hello world → RTOS image: demonstrates RTOS
- Driver examples → RTOS image: demonstrates drivers
- EtherCAT digital IO → RTOS image: runs EtherCAT master
- EtherCAT servo → RTOS image: runs EtherCAT master
- RT1180 servo → RTOS image: controls RT1180 slave
- Software mailbox → Mailbox interface: implements interface
- Multi-SoC PTP → RTOS image: synchronizes cores