Core communication¶
Guide 5 · E-M5 III firmware 1.7 · draft 1. New to these guides? Read Before you start and Operating system first. Open questions: research gaps.
Key points¶
- The three MN103 cores share RAM, and they reach shared data through the uncached view or a separate shared block.
- The cores guard shared data with one-bit locks, and they wake each other with doorbell interrupts.
- A small remote-call service lets one core run a function on another, inside an interrupt.
- The ARM talks to the MN103 side through a hardware mailbox called ISC, which must not be used while the ARM is off.
The system-on-chip has three MN103 cores (CPU0, CPU1 and CPU2) and an ARM Cortex-A9. Each MN103 core runs its own copy of the μITRON kernel with its own tasks. This guide explains how they cooperate. It covers the memory they share, the lock bits that keep them from treading on each other, the "doorbell" interrupts one core rings on another, the queue that lets one core run a function on another, and the mailbox (ISC) that links the MN103 side to the ARM.
All of this was read from the code. None of it has been watched on a running camera yet.
1. Core roles¶
CPU0 runs almost everything we work with. That includes the user interface, the shooting sequencer, autofocus control, the lens and the stabiliser link. The other two cores take specific heavy or time-critical jobs. Their task tables give the picture.
- CPU1: the image-engine job workers, the camera's half of Wi-Fi, Bluetooth and the app link, the ARM power manager, graphics, the movie file writer and encoder framework, and the second half of autofocus image work.
- CPU2: the movie recorder, helpers for the still record pipeline (white balance, review image), motion and scene detection, and movie audio. The still record pipeline itself is on CPU0.
- Both: they load the main program's sections during start-up.
The full lists are on CPU1 and CPU2.
Each core also has its own system and user shells.
Deep-learning subject detection is a useful example of how work is split. The OM-5, OM-5 II and E-M1 III contain its
control code as tasks on CPU2 (MDET_DL_*_CPU2), but in those bodies it is dead code. There is no network executor and
no network weights, and the feature isn't offered. The body that does ship it, the OM-1, runs the network on a fourth
core (CPU3) and a dedicated deep-learning hardware block, with about 47 MB of weights. The E-M5 III has neither, so the
part that does the heavy work can't be ported. Only the control code on CPU2 could be.
The ARM runs Linux, for Wi-Fi, Bluetooth and the helper that does the maths for handheld high-res shots.
Where in the firmware
| what | where | known from |
|---|---|---|
| core number of the running core | (0x8050) | [code] |
| task tables CPU1 / CPU2 | 0x6003c460 (73 tasks) / 0x6003d544 (29 tasks), names 0x6143ccee / 0x6143d4e6 | [code] 2026-11-25 |
names like MOV_ENC_VIDEO_CPU1, IMGPRO_MDL_CPU2 |
other kernel objects, not tasks (corrected 2026-11-25) | [code] |
| what each task does | CPU1 and CPU2: technical notes | [code] names, roles [inferred] |
| ARM programs and their channels | ARM co-processor | [code] |
The task tables of CPU1 and CPU2, and where each core's roles are recorded.
Sources: SoC overview.
2. Shared memory¶
All three MN103 cores see the same RAM, so the simplest way to share is to put data somewhere both can reach. Each core has its own cache, so a value one core has written may still be sitting in that cache when another core reads it. The firmware avoids this by reaching shared data through the uncached view of RAM (see the MN103 primer) or through a separate shared block.
That shared block holds the things every core needs. It has a pointer to each core's kernel data, the serial port state that all the consoles print through, and records of a few shared objects such as frame pools. The kernels themselves keep their objects where any core can reach them, which matters in section 5.
Where in the firmware
| what | where | known from |
|---|---|---|
| shared block | 0x8ff00000-0x8ff000bc; per-core kernel pointer at 0x8ff00004 + 4 × core; UART state 0x8ff0005c | [code] |
| live-view pool object in the shared area | 0x8ff001d4 | [camera] |
| cached / uncached views | 0x6xxxxxxx / 0xaxxxxxxx | [camera] |
The shared block and the two views of RAM.
Sources: OS and framework (task table route), memory map.
3. Lock bits¶
When two cores might change the same data at the same time, they need a lock that works across cores. Interrupt masking, the usual tool on one core, does nothing to stop another core.
The firmware keeps 64 one-bit locks in a small area of memory. A core takes a lock with the MN103's bset
instruction, which sets a bit in memory and reports whether it was already set, in one step. If the bit was clear, the
core now holds the lock. If it was set, someone else does, and the core tries again. bclr clears the bit to let go.
Because the test and the set happen together, two cores can't both see the bit clear.
pseudocode in our own words, summarised from the disassembly (0x6003870f, 0x600587e6)
take_lock(n):
mask interrupts on this core ; the kernel's and the ISC code's versions do
loop:
if bset(bit n) found it clear: return ; we hold it
(after 8 million tries, log a warning and keep trying)
drop_lock(n):
bclr(bit n)
restore interrupts
The kernels use two of these bits to protect their shared data. The mailbox to the ARM (section 7) uses others. Most of these loops have no timeout. If the holder never lets go, the waiting core spins forever.
Where in the firmware
| what | where | known from |
|---|---|---|
| lock area | 0x8fe00000-0x8fe0003f: lock n = bit n&7 of byte 0x8fe00000 + 8 × (n>>3) | [code] |
| try / release primitives | 0x600587d6 / 0x600587e0 | [code] |
| lock manager (mode 0 try once, 255 spin) / release | 0x600587e6 / 0x6005892d | [code] |
| kernel lock (bits 1 and 2) | 0x6003870f / 0x6003871c, used by 0x600368fa, 0x60031ade, 0x60031b67 | [code] |
| ISC's own copy | 0x61206b6d | [code] |
bset atomic across cores |
the design depends on it | [inferred] |
The lock area and the routines that take and release locks.
Sources: SoC overview.
4. Doorbells¶
Shared memory and locks let cores share data, but a core still needs a way to tell another "look now" without making it check memory over and over. For that, each MN103 core has a small register block. Writing a bit to it raises an interrupt on that core. This is a doorbell.
The receiving core's handler reads which bits are set, clears each one by writing it to an acknowledge register, and acts on it. On CPU0, the bits mean:
| bit | meaning |
|---|---|
| 0 | a remote kernel call is waiting: wakes this core's request server (CPUCONN) |
| 1 | a reply to this core's remote kernel call has arrived: wakes the caller |
| 2 | a message from another core's slots |
| 3, 4, 5 | a cross-core call is waiting from CPU0, CPU1 or CPU2 (section 6) |
What each doorbell bit means on CPU0.
There is a second doorbell register that the kernel itself uses. Each core's kernel configuration names a small routine that writes to another core's block. It is probably how one kernel tells another to look at its ready tasks again after a change (section 5), but that isn't proven.
An interrupt arriving from another core that nobody expected prints !!Dummy IRQ from CPU1 (or CPU0, CPU2).
Where in the firmware
| what | where | known from |
|---|---|---|
| doorbell blocks | CPU0 0x99200400, CPU1 0x99300400, CPU2 0x99b00400 | [code] |
| raise / acknowledge | write the bit to +0x08 / +0x0c | [code] |
| CPU0's doorbell handler | 0x60053f11 (event flag u16 at 0x60040f00) | [code] |
| kernel kick to another core | write 1 to +0x10; routines 0x600300a1, 0x600300c3, 0x600300e5, named in the three kernel configs (0x60041528, 0x600416b4, 0x60041840) | [code]; purpose [inferred] |
| fault request | +0x00 (0x60058333) | [code] |
| unexpected inter-core interrupt message | 0x60054fa8 | [code] |
The doorbell register blocks, their offsets and the handlers.
Sources: SoC overview, memory map.
5. Kernel calls across cores¶
The OS guide explained that every kernel object id carries its core number. So a task on CPU0 can set an event flag that belongs to CPU1, using the same call it would use for its own flag.
What happens underneath is direct. CPU0's kernel takes the kernel lock bit, finds CPU1's kernel data through the shared block, and changes the flag there itself. It doesn't send CPU1 a message asking it to do so. CPU1's own scheduler then has to notice that a task may now be ready, which is presumably what the kernel's doorbell in section 4 is for.
Where in the firmware
| what | where | known from |
|---|---|---|
| example: set event flag, any core | set_flg 0x60035b26: id → core (id >> 12), core's kernel data via 0x8ff00004 + 4 × core |
[code] |
| kernel lock taken around it | 0x60038721 (mask interrupts, then lock bits) | [code] |
An example of a kernel call that reaches another core's data.
Sources: OS and framework.
6. Remote function calls¶
For anything more than waking a task, the firmware has a small remote-call service. A core asks another core to run a function with one argument:
pseudocode in our own words, summarised from the disassembly (0x6005730b)
call_on_core(target, function, argument):
mask interrupts
ring = the ring for (this core → target)
if ring is full:
log an error, return -1
put {function, argument} in the next slot
advance the ring's write index
read the shared block once ; probably to make sure the writes have landed
ring the target's doorbell with this core's bit
restore interrupts
There is one ring of 32 slots for every pair of cores (nine in all, including a core calling itself), kept in uncached memory. On the other side, the doorbell handler empties the ring for the core that rang, calling each function with its argument. That happens inside the interrupt, so these functions follow the interrupt rules and must not wait.
The system shell's syscall command prints the nine rings and their recent entries, which makes this one of the easier
mechanisms to watch on a live camera.
Where in the firmware
| what | where | known from |
|---|---|---|
| post a call | 0x6005730b(d0 target, a0 function, a1 argument) | [code] |
| descriptor table | 0x60077700 (3 × 3 × 16 bytes: write index, read index, ring base, doorbell bit) | [code] |
| rings | 0xa2623fdc-0xa26248f2 with indexes, 32 × 8 bytes each (end corrected 2026-11-25 from 0xa26249f4) | [code] |
| doorbell address table | 0x60077790: 0x99200408, 0x99300408, 0x99b00408 | [code] |
| drain the ring from CPU0 / CPU1 / CPU2 | 0x600573ee / 0x60057442 / 0x60057496 (from the doorbell handler) | [code] |
syscall shell command |
0x60057a1d | [code] |
The remote-call service, its rings and its doorbells.
Sources: SoC overview.
7. ARM mailbox¶
The ARM is a different CPU running Linux, so it doesn't share the kernels' data. It talks to the MN103 cores through a hardware mailbox that Panasonic calls ISC (Inter System Communication). ISC has 48 numbered channels. Each ARM program uses its own channels. The Wi-Fi and app manager, the Bluetooth bridge and the handheld high-res helper each have their own.
Messages are short (32 to 112 bytes depending on the channel). Anything bigger, such as image data for the high-res helper, goes through 128 KB of memory both sides map, or through image buffers the ARM maps directly.
The ARM is only powered when something needs it. A power-manager task on CPU1 starts it on request (for Wi-Fi, or for a shot that needs it) and waits for a boot message from the ARM before marking it ready.
Warning
Sending on ISC while the ARM is off doesn't fail cleanly. The ISC code spins on its lock bits, and a send to a stopped ARM is the likely cause of a crash in one of our tests.
Where in the firmware
| what | where | known from |
|---|---|---|
| ISC channels, control blocks | 48 channels, 0x8ff00c00 | [code] |
| shared memory | 0x62fe0000 (MN103) = 0x22fe0000 (ARM), 128 KB | [code] |
| ISC send / receive (blocking) | 0x61205800 / 0x6120581c | [code] |
| ARM started flag | byte 0xa2624f09 (getter 0x60059129) | [code] |
| ARM power manager | task TSK_CA9PWR_MNGR, loop 0x6005978d, runs on CPU1 (SYS_CA9_PWR_MNG, id 0x101c) |
[code] |
| crash after a send with the ARM stopped | an HHHR test on our camera, 2026-11-05 | [camera]; cause [inferred] |
The ISC mailbox, the shared memory with the ARM and the ARM power manager.
Sources: ARM co-processor, HHHR, gotchas.
Patching notes¶
- Know which core you are on. Our hooks check the core number and act only on CPU0, because the native objects they touch belong to CPU0's kernel.
- Don't call ISC without checking the ARM. Check the ARM-started flag first. The ISC locks never time out.
- Change ARM power only outside a capture. Starting or stopping the ARM in the middle of a shot reset the camera in the HHHR tests. At idle it was fine.
- Remote calls run in an interrupt. A function handed to another core through the call rings must not wait or take locks.
- A watchable mechanism. If we ever need to see cross-core traffic, the
syscallshell command already prints it.
Other cameras¶
Each step checked against the firmware of other bodies. Nothing is assumed. "Not checked" means we don't know.
| step | E-M5 III 1.7 | OM-5 1.2 | E-M1 III 1.6 | OM-5 II 1.1 | OM-1 1.9 | PEN-F 3.1 | other projects |
|---|---|---|---|---|---|---|---|
| three MN103 cores | yes | confirmed (CPU2 strings) | confirmed | confirmed | different: four cores (CPU3) | confirmed (CPU2 strings) | — |
| lock bits at 0x8fe00000 | yes | confirmed | confirmed | confirmed | different: not at this address | confirmed | — |
| doorbell table 0x99200408 / 0x99300408 / 0x99b00408 | 0x60077790 | confirmed 0x6007a7b8 | confirmed 0x6007d3a4 | confirmed 0x6007b0cc | different: not found | different: not found | — |
cross-core call service (sys_callrequest) |
yes | confirmed (strings) | confirmed (strings) | confirmed (strings) | confirmed (strings) | not found in strings | — |
| ISC mailbox to the ARM | yes | confirmed | confirmed | not checked | not checked | not checked | — |
The core-communication facts of this guide checked against other bodies' firmware.
"Confirmed (strings)" means the names are there. The code behind them wasn't compared. SoC overview, ARM co-processor.
Further reading¶
- SoC overview: technical notes, the reference notes on communication between cores.
- CPU1 and CPU2, what the other two cores run.
- ARM co-processor, the ARM side and its programs.
- Operating system, the guide to the kernel each core runs.
Research by the Oly Firmware Notes and Mods contributors, shared under CC BY 4.0. If you use or summarise it, please credit and link "Core communication".
Spotted a mistake, or know something we don't? Additions and corrections are welcome. Open an issue on the notes repository.