# infineon/mtb-example-ce241617-multicore-blinky-app architecture

> Architecture diagram of the GitHub repository infineon/mtb-example-ce241617-multicore-blinky-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/infineon/mtb-example-ce241617-multicore-blinky-app
- Repository: https://github.com/infineon/mtb-example-ce241617-multicore-blinky-app

## Overview

This is a three-core PSOC Control C3M/P8 multicore blinky demo. The secure CM33 initializes the board, boots two PPCA cores, monitors their shared-memory flags, and reports activity through LEDs and UART. Each PPCA core toggles its own flag; Core 1 adds a 500 ms initial offset. The source excerpts support these runtime relationships, but the main-core excerpt is partial, so details beyond the documented behavior are omitted.

Main entry points: [`main_cm33_s/main.c`](https://github.com/infineon/mtb-example-ce241617-multicore-blinky-app/blob/master/main_cm33_s/main.c) (Secure CM33), [`ppca_cm33_0/main.c`](https://github.com/infineon/mtb-example-ce241617-multicore-blinky-app/blob/master/ppca_cm33_0/main.c) (PPCA Core 0), [`ppca_cm33_1/main.c`](https://github.com/infineon/mtb-example-ce241617-multicore-blinky-app/blob/master/ppca_cm33_1/main.c) (PPCA Core 1)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["Secure Core"]
  node_main["Secure CM33<br/>[main.c]"]
end

subgraph group_workers["PPCA Workers"]
  node_core0["PPCA Core 0<br/>[main.c]"]
  node_core1["PPCA Core 1<br/>[main.c]"]
end

subgraph group_io["Shared State and Output"]
  node_shared[("Shared Memory Flags")]
  node_leds["Board LEDs"]
  node_uart["UART Terminal"]
end

node_main -->|"boots"| node_core0
node_main -->|"boots"| node_core1
node_core0 -->|"toggles flag"| node_shared
node_core1 -->|"toggles flag"| node_shared
node_main -->|"reads flags"| node_shared
node_main -->|"controls activity LEDs"| node_leds
node_main -->|"prints status"| node_uart

click node_main "https://github.com/infineon/mtb-example-ce241617-multicore-blinky-app/blob/master/main_cm33_s/main.c"
click node_core0 "https://github.com/infineon/mtb-example-ce241617-multicore-blinky-app/blob/master/ppca_cm33_0/main.c"
click node_core1 "https://github.com/infineon/mtb-example-ce241617-multicore-blinky-app/blob/master/ppca_cm33_1/main.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main toneBlue
class node_core0,node_core1 toneAmber
class node_shared,node_leds,node_uart toneMint
```

## Components

### Secure Core

- [Secure CM33](https://github.com/infineon/mtb-example-ce241617-multicore-blinky-app/blob/master/main_cm33_s/main.c): `main_cm33_s/main.c`

### PPCA Workers

- [PPCA Core 0](https://github.com/infineon/mtb-example-ce241617-multicore-blinky-app/blob/master/ppca_cm33_0/main.c): `ppca_cm33_0/main.c`
- [PPCA Core 1](https://github.com/infineon/mtb-example-ce241617-multicore-blinky-app/blob/master/ppca_cm33_1/main.c): `ppca_cm33_1/main.c`

### Shared State and Output

- **Shared Memory Flags**
- **Board LEDs**
- **UART Terminal**

## Connections

- Secure CM33 → PPCA Core 0: boots (evidence: `main_cm33_s/main.c`)
- Secure CM33 → PPCA Core 1: boots (evidence: `main_cm33_s/main.c`)
- PPCA Core 0 → Shared Memory Flags: toggles flag (evidence: `ppca_cm33_0/main.c`)
- PPCA Core 1 → Shared Memory Flags: toggles flag (evidence: `ppca_cm33_1/main.c`)
- Secure CM33 → Shared Memory Flags: reads flags (evidence: `main_cm33_s/main.c`)
- Secure CM33 → Board LEDs: controls activity LEDs (evidence: `main_cm33_s/main.c`)
- Secure CM33 → UART Terminal: prints status (evidence: `main_cm33_s/main.c`)
