# gamzeferizli/stm32f746-freertos-ethernet architecture

> Architecture diagram of the GitHub repository gamzeferizli/stm32f746-freertos-ethernet, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gamzeferizli/stm32f746-freertos-ethernet
- Repository: https://github.com/gamzeferizli/stm32f746-freertos-ethernet

## Overview

This is STM32F746 embedded firmware with FreeRTOS-facing application modules, Ethernet/TCP server code, an LED task, and SEGGER tracing. The intended user workflow appears to be a remote TCP client communicating with the device’s server; startup and peripheral setup provide the hardware foundation. Several application sources and the README are unavailable, so links between networking modules and their runtime dispatch are shown as unverified rather than asserted. The supplied tree does not include the referenced FreeRTOS or network-stack sources.

Main entry points: [`Core/Src/main.c`](https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/main.c) (Startup and setup), [`Core/Src/tcp_server.c`](https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/tcp_server.c) (TCP server), [`Core/Src/network_app.c`](https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/network_app.c) (Network application), [`Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.c`](https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.c) (STM32 HAL)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Firmware application"]
  node_startup["Startup and setup<br/>[main.c]"]
  node_network["Network application<br/>[network_app.c]"]
  node_tcp["TCP server<br/>[tcp_server.c]"]
  node_callbacks["Network callbacks<br/>[network_callback.c]"]
  node_led["LED task<br/>[led_task.c]"]
end

subgraph group_hardware["Device platform"]
  node_interrupts["Interrupt handlers<br/>[stm32f7xx_it.c]"]
  node_msp["Peripheral support"]
  node_clock["System clock<br/>[system_stm32f7xx.c]"]
  node_hal["STM32 HAL"]
  node_device["STM32 device definitions<br/>[stm32f7xx.h]"]
end

subgraph group_trace["Debug tracing"]
  node_sysview["SystemView events<br/>[SEGGER_SYSVIEW.c]"]
  node_rtt["RTT transport<br/>[SEGGER_RTT.c]"]
end

node_client(("TCP client"))

node_startup -->|"initializes HAL"| node_hal
node_client -.->|"sends requests"| node_tcp
node_network -.->|"dispatches to"| node_tcp
node_tcp -.->|"invokes callbacks"| node_callbacks
node_startup -.->|"starts networking"| node_network
node_startup -.->|"starts task"| node_led
node_sysview -->|"sends packets"| node_rtt
node_msp -.->|"supports peripherals"| node_hal
node_clock -->|"uses device definitions"| node_device

click node_startup "https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/main.c"
click node_network "https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/network_app.c"
click node_tcp "https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/tcp_server.c"
click node_callbacks "https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/network_callback.c"
click node_led "https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/led_task.c"
click node_interrupts "https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/stm32f7xx_it.c"
click node_msp "https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/stm32f7xx_hal_msp.c"
click node_clock "https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/system_stm32f7xx.c"
click node_hal "https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.c"
click node_device "https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Drivers/CMSIS/Device/ST/STM32F7xx/Include/stm32f7xx.h"
click node_sysview "https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Middlewares/SEGGER/SEGGER_SYSVIEW.c"
click node_rtt "https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Middlewares/SEGGER_RTT.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_startup,node_network,node_tcp,node_callbacks,node_led,node_client toneBlue
class node_interrupts,node_msp,node_clock,node_hal,node_device toneAmber
class node_sysview,node_rtt toneMint
```

## Components

### Firmware application

- [Startup and setup](https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/main.c): `Core/Src/main.c`
- [Network application](https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/network_app.c): `Core/Src/network_app.c`
- [TCP server](https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/tcp_server.c): `Core/Src/tcp_server.c`
- [Network callbacks](https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/network_callback.c): `Core/Src/network_callback.c`
- [LED task](https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/led_task.c): `Core/Src/led_task.c`

### Device platform

- [Interrupt handlers](https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/stm32f7xx_it.c): `Core/Src/stm32f7xx_it.c`
- [Peripheral support](https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/stm32f7xx_hal_msp.c): `Core/Src/stm32f7xx_hal_msp.c`
- [System clock](https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Core/Src/system_stm32f7xx.c): `Core/Src/system_stm32f7xx.c`
- [STM32 HAL](https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.c): `Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.c`
- [STM32 device definitions](https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Drivers/CMSIS/Device/ST/STM32F7xx/Include/stm32f7xx.h): `Drivers/CMSIS/Device/ST/STM32F7xx/Include/stm32f7xx.h`

### Debug tracing

- [SystemView events](https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Middlewares/SEGGER/SEGGER_SYSVIEW.c): `Middlewares/SEGGER/SEGGER_SYSVIEW.c`
- [RTT transport](https://github.com/gamzeferizli/stm32f746-freertos-ethernet/blob/main/Middlewares/SEGGER_RTT.c): `Middlewares/SEGGER_RTT.c`

### Other components

- **TCP client**

## Connections

- Startup and setup → STM32 HAL: initializes HAL (evidence: `Core/Src/main.c`)
- TCP client → TCP server: sends requests
- Network application → TCP server: dispatches to
- TCP server → Network callbacks: invokes callbacks
- Startup and setup → Network application: starts networking
- Startup and setup → LED task: starts task
- SystemView events → RTT transport: sends packets (evidence: `Middlewares/SEGGER/SEGGER_SYSVIEW.c`)
- Peripheral support → STM32 HAL: supports peripherals
- System clock → STM32 device definitions: uses device definitions (evidence: `Core/Src/system_stm32f7xx.c`)
