New project under bootloader/ with the same structure as color_switcher: Dockerfile, docker-compose, modular CMake, and APP_BOOT + SYS_ECU stub components. Reuses common/ submodules for MCU_UART, MCU_USB, HAL_COM, STD_TYPES. TODO.md lists all open design decisions (interface, protocol, flash layout, entry trigger, integrity checks, flash strategy) and the implementation tasks that depend on them.
27 lines
551 B
Markdown
27 lines
551 B
Markdown
# Bootloader
|
|
|
|
A custom bootloader for the Raspberry Pi Pico (RP2040). Receives firmware updates over a communication interface, writes to flash, and jumps to the main application.
|
|
|
|
## Status
|
|
|
|
**Scaffolded — not yet implemented.** See `TODO.md` for the design decisions and implementation tasks.
|
|
|
|
## Prerequisites
|
|
|
|
- [Docker](https://docs.docker.com/get-docker/) and Docker Compose
|
|
|
|
## Building
|
|
|
|
```bash
|
|
cd bootloader/
|
|
docker compose run --rm pico-build bash /scripts/build.sh
|
|
```
|
|
|
|
## Flashing
|
|
|
|
From the repo root:
|
|
|
|
```bash
|
|
./flash.sh bootloader
|
|
```
|