{"id":48571586,"url":"https://github.com/mkopa/f411-freertos-usb","last_synced_at":"2026-04-08T14:33:50.172Z","repository":{"id":303959468,"uuid":"1017307371","full_name":"mkopa/f411-freertos-usb","owner":"mkopa","description":"A demonstration project for the STM32F411CEU6 microcontroller, built with FreeRTOS and using USB CDC (Virtual COM Port).","archived":false,"fork":false,"pushed_at":"2025-07-10T10:40:19.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-10T18:05:46.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkopa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-10T10:34:17.000Z","updated_at":"2025-07-10T10:40:22.000Z","dependencies_parsed_at":"2025-07-10T18:27:58.611Z","dependency_job_id":null,"html_url":"https://github.com/mkopa/f411-freertos-usb","commit_stats":null,"previous_names":["mkopa/f411-freertos-usb"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mkopa/f411-freertos-usb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkopa%2Ff411-freertos-usb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkopa%2Ff411-freertos-usb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkopa%2Ff411-freertos-usb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkopa%2Ff411-freertos-usb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkopa","download_url":"https://codeload.github.com/mkopa/f411-freertos-usb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkopa%2Ff411-freertos-usb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31559930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-08T14:33:50.020Z","updated_at":"2026-04-08T14:33:50.141Z","avatar_url":"https://github.com/mkopa.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# f411-freertos-usb\n\nA demonstration project for the **STM32F411CEU6** microcontroller, built with **FreeRTOS** and using **USB CDC (Virtual COM Port)**. The project is managed using **Meson + Ninja** build system and can be used across **Linux**, **macOS**, and **Windows** (with appropriate tools installed).\n\n## Features\n\n* USB support in **CDC (Communication Device Class)** mode — the device appears as a virtual serial port (e.g. `/dev/ttyACM0`).\n* Receive and echo back data over USB (terminal-like functionality).\n* Integration with **FreeRTOS** — USB communication runs in a dedicated task.\n\n## Requirements\n\n* STM32F411CEU6 board with USB D+ and D- connected to PA12/PA11\n* ARM Embedded Toolchain: `arm-none-eabi-gcc`, `arm-none-eabi-objcopy`, `arm-none-eabi-size`\n* Meson (≥ 1.2), Ninja (≥ 1.10), Python 3\n* OpenOCD (for flashing)\n\n### Linux (Debian/Ubuntu)\n\n```bash\nsudo apt-get install openocd clang-format\n```\n\nYou also need to install the ARM toolchain (if not installed):\n\n```bash\nsudo apt-get install gcc-arm-none-eabi binutils-arm-none-eabi\n```\n\n### macOS (using Homebrew)\n\n```bash\nbrew install openocd clang-format arm-none-eabi-gcc meson ninja\n```\n\n\u003e On macOS, ensure `PATH` includes `/opt/homebrew/bin` or equivalent for your architecture.\n\n## Building the project\n\n1. Configure the Meson build environment:\n\n   ```bash\n   meson setup build --cross-file cross_file.txt\n   ```\n\n2. Compile the project:\n\n   ```bash\n   meson compile -C build\n   ```\n\n3. (Optional) Format application source files:\n\n   ```bash\n   meson compile -C build format-app\n   ```\n\n4. Flash the device using OpenOCD:\n\n   ```bash\n   ninja -C build flash\n   ```\n\n## Project structure\n\n```\n├── App/                # User application logic (FreeRTOS tasks, USB echo)\n├── Core/               # HAL/STM32CubeMX core files (minimally modified)\n├── Drivers/            # STM32 HAL and CMSIS drivers\n├── Middlewares/        # FreeRTOS and STM32 USB Device Library\n├── USB_DEVICE/         # USB stack configuration\n├── meson.build         # Meson build script\n├── cross_file.txt      # Toolchain definition (to be customized)\n└── README.md           # This file\n```\n\n## Notes\n\n* The build process generates `.hex` and `.bin` firmware files.\n* CDC device appears as `/dev/ttyACM*` (Linux), `/dev/cu.usbmodem*` (macOS), or `COMx` (Windows).\n* Main application task is implemented in `App/Src/app.c`.\n\n---\n\n📬 If you have questions or need help integrating other peripherals (UART, SPI, sensors), feel free to ask!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkopa%2Ff411-freertos-usb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkopa%2Ff411-freertos-usb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkopa%2Ff411-freertos-usb/lists"}