Commit graph

112 commits

Author SHA1 Message Date
c9fef2495c firmware: Update for reconfigured protobuf definitions. 2025-04-26 17:22:35 -04:00
6aa4229e2e firmware: Update for current schematic. 2025-04-26 17:22:11 -04:00
cfabd1e10d prototest: Validate 'echo' responses. 2025-04-26 10:31:23 -04:00
452fb1ba93 prototest: Add debug-mode keybinding. 2025-04-26 10:20:33 -04:00
e9dc668d13 More protobuf
* Restructure protobuf definitions

* Add request and response handlers in prototest

* Add 'echo response' to prototest
2025-04-26 10:06:01 -04:00
e645af777a Queues and type checking
* Use asyncio Queues for passing around protobuf messages

* Annotate types and check with mypy
2025-04-26 08:40:58 -04:00
b47c699ae6 Improve crc_engine module. 2025-04-23 12:43:25 -04:00
4f4239efc0 Remove unused imports. 2025-04-23 10:50:18 -04:00
bd5cede4f6 First working version of prototest. 2025-04-22 16:30:02 -04:00
897542a9a4 Switch protobuf definitions to a single envelope message. 2025-04-22 16:29:31 -04:00
18469fed58 Correct CRC-16 computation. 2025-04-22 16:29:03 -04:00
2c04506a01 Update to reconfigured protobuf definitions. 2025-04-22 16:28:53 -04:00
7bd20fd7d4 Add underlying pin names to AF pins. 2025-04-22 16:28:23 -04:00
9179da2f6a Add async serial to prototest. 2025-04-21 18:33:19 -04:00
cf78434e70 Add prompt-toolkit to prototest. 2025-04-21 17:57:17 -04:00
18c68a6cde Crate updates. 2025-04-21 09:26:47 -04:00
dc1263cc4a Update Pin Usage and Power Budget. 2025-04-19 11:55:31 -04:00
7877c97885 Use open-drain outputs from USARTs to save power. 2025-04-19 10:01:38 -04:00
1a449d3bd1 Upgrade to Embassy 'main', and patched version of embedded-resources. 2025-04-19 09:52:41 -04:00
a98fd690b8 Complete pin usage table. 2025-04-19 07:45:43 -04:00
26fcc648f5 Rebuild 'pin usage' table. 2025-04-19 06:54:26 -04:00
69e48c937b Complete power budget. 2025-04-18 18:53:35 -04:00
6dbf3feb83 Initial power budget. 2025-04-18 18:31:10 -04:00
9df3729287 Enable most Ruff checks. 2025-04-15 11:47:05 -04:00
479d97563d Various improvements to prototest
* Makefile for running protoc and ruff

* Ruff configuration

* protoc output files
2025-04-15 11:28:20 -04:00
26801eb9b5 Begin building prototest tool. 2025-04-15 09:50:48 -04:00
2d281fd554 Use ring-buffered UART receive interfaces. 2025-04-14 14:32:56 -04:00
a056fcda56 Remove assign-resources crate; update micropb crate to 0.1.1. 2025-04-14 10:42:08 -04:00
07fe75ce95 Replace hardcoded value with named constant. 2025-04-14 06:31:27 -04:00
d494948de8 Eliminate unnecessary 'mut'. 2025-04-14 06:01:00 -04:00
9005bb42d1 Include CRC in protobuf messages. 2025-04-13 20:07:49 -04:00
d5866650a8 Working CRC engine. 2025-04-13 18:08:19 -04:00
2b77bb7ea1 Initial experiment with CRC engine. 2025-04-13 16:09:27 -04:00
e53bfbaade Improve host tx_task buffer handling. 2025-04-13 12:22:45 -04:00
9064b4f2ec Send test messages as protobuf. 2025-04-13 08:12:39 -04:00
263523a126 Initial protobuf support using micropb. 2025-04-12 17:26:01 -04:00
43287478bb Move firmware into subdirectory. 2025-04-12 12:25:59 -04:00
931e64602e Restructure task code. 2025-04-12 12:08:19 -04:00
34039b52c4 Minor cleanups. 2025-04-12 08:56:21 -04:00
4e3f193b62 Switch from assign-resources to embedded-resources. 2025-04-11 14:39:29 -04:00
1c0a401503 * Configure unused pins to "input with pull-up".
* Restructure code, moving resource configuration into the task modules.

* Enable Prefetch and Instruction Cache in flash peripheral.
2025-04-11 12:44:03 -04:00
d7c769ceed Disable unused peripherals. 2025-04-09 13:03:44 -04:00
f597940bf0 Add remaining hardware resources. 2025-04-09 08:25:37 -04:00
22383c2762 Document GPIO usage to match schematic. 2025-04-09 06:44:12 -04:00
979f672747 cargo fmt fixes. 2025-04-08 09:02:21 -04:00
003c2b787f Add RCC configuration for 64MHz core. 2025-04-08 09:02:07 -04:00
6a08a3c026 Correct IWDG timeout to 4 seconds... not .4 seconds. 2025-04-08 08:59:22 -04:00
64154e7352 * Add board-nucleo64 and status-led feature flags.
* Move tasks/blinker to tasks/supervisor.

* Add supervisor task for IWDG.

* Use Ticker instead of Timer for repeating tasks.

* Add trace feature flag to default flags.
2025-04-07 20:14:10 -04:00
23f9cba919 Improve panic handling configuration. 2025-04-07 17:53:05 -04:00
5d854c15f1 Improve Cargo.toml formatting. 2025-04-07 17:31:07 -04:00