How prusa3d/prusa-firmware-buddy works
Buddy is embedded firmware for Prusa 32-bit ARM printers. Its broad product workflow is printer operation through firmware, with XL systems additionally coordinating attached “puppy” controllers and optionally flashing their firmware at startup. The tree also shows GUI storage-management, LED control, and an HTTP server. The sampled sources establish only a few concrete calls between these areas; other links are omitted rather than inferred. The firmware entry point and several major subsystems are unsampled, so their internal runtime wiring is not represented.
Main entry points: led_manager.cpp LED manager · PuppyModbus.hpp Puppy Modbus · main.cpp Buddy firmware · screen_menu_internal_storage.cpp Storage menu
Components 18
Printer firmware
- Buddy firmware
src/buddy/main.cpp - Printer GUI
src/gui/ScreenHandler.cpp - HTTP server
lib/WUI/nhttp/server.cpp - DSP library
lib/CMSIS-DSP/Include/dsp/controller_functions.h
Peripheral control
- LED manager
src/leds/led_manager.cpp - Status LEDs
include/leds/status_leds_handler.hpp - Side LEDs
include/leds/side_strip_handler.hpp - AC LEDs
src/leds/ac_controller_leds_handler.cpp
Storage
- Storage menu
src/gui/screen/screen_menu_internal_storage.cpp - Internal filesystem
include/buddy/filesystem_littlefs_posix.hpp - EEPROM driver
src/persistent_stores/storage_drivers/eeprom_storage.cpp
Puppy controllers
- Puppy firmware
src/puppy/modularbed/main.cpp - Puppy task
include/puppies/puppy_task.hpp - Puppy Modbus
include/puppies/PuppyModbus.hpp - AC controller
src/puppies/ac_controller.cpp
Other components
- Printer user
- Puppy device
- HTTP client
Connections 10
- Printer user → Printer GUI: uses
- Storage menu → Internal filesystem: checks and formats
src/gui/screen/screen_menu_internal_storage.cpp - LED manager → Status LEDs: updates
src/leds/led_manager.cpp - LED manager → Side LEDs: updates
src/leds/led_manager.cpp - LED manager → AC LEDs: updates
src/leds/led_manager.cpp - Puppy task → Puppy Modbus: refreshes through
- AC controller → Puppy Modbus: refreshes through
- Puppy firmware → Puppy device: runs on
- Buddy firmware → Puppy device: may flash at startup
- HTTP client → HTTP server: requests