Skip to content

Ragtime-LAB/fci_usb_protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

florid_usb_protocol

This repository holds the shared USB protocol definitions used by Usb2Arm.

Current scope:

  • bootloader upgrade protocol on top of RPL USB framing
  • packet definitions plus host/device shared upgrade image helpers
  • platform-independent transport alias for RPL::USBTransport

Main header:

#include <florid_usb_protocol/protocol.hpp>

Upgrade protocol notes:

  • request packets use RPL request/ack semantics
  • data-bearing responses are separate packets carrying the original req_id
  • WriteChunkRequest currently uses a fixed 1024-byte payload ceiling
  • data_size is the aligned flash-programming length for the current chunk
  • valid_size is the logical image byte count inside that chunk; trailing bytes are 0xFF padding when valid_size < data_size
  • FirmwareImage / ChunkPlan / UpgradePlan are transport-agnostic helpers for image CRC calculation, aligned chunking, and request packet building
  • USB send/receive, retries, session state machines, and bootloader flash logic still belong in product code rather than this shared protocol library

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors