GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — USB Ethernet plan: static RAM is already at budget · jrl290/RTNode-HeltecV4@48f4250

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • USB_ETHERNET_PLAN.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎USB_ETHERNET_PLAN.md‎

Copy file name to clipboardExpand all lines: USB_ETHERNET_PLAN.md
+8-5Lines changed: 8 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -241,15 +241,18 @@ from the proof of concept's build of the library subset:
241241
| | Cost | Note |
242242
|---|---|---|
243243
| Flash | about 37 KB | V4 app slots are 6.25 MB |
244-
| Static internal RAM | about 21 KB (16 KB zeroed, 5 KB initialised) | taken even with Ethernet off; measure against the 25 % static budget |
244+
| Static internal RAM | about 21 KB as the library ships (16 KB zeroed, 5 KB initialised) | over budget as is; allocated at start only when Ethernet is on (below) |
245245
| Task stacks | about 6 KB internal, only with Ethernet on | hub task 4 KB, receive task 2 KB |
246246
| Frames | lwIP buffers per frame, as for WiFi | bounded by lwIP's pools |
247247
| CPU | core 0, only while traffic flows | about 4.5 Mbit/s at most |
248248

249-
Check against the budgets (min free internal heap ≥ 48 KB, largest block
250-
≥ 24 KB, loop p99 ≤ 5 ms) with Ethernet off and on. If the 21 KB taken with
251-
Ethernet off costs too much, allocate the library's larger buffers at start,
252-
only when Ethernet is on.
249+
Static RAM is already at its budget: the V4 bench build of main uses 25.2 %
250+
(82,412 of 327,680 bytes) against PERFORMANCE_STRATEGY's 25 %. So the
251+
library's static buffers can't simply be added. Its larger buffers (the
252+
frame buffers, the hub and class tables) are allocated at start, only when
253+
Ethernet is on, which leaves the static cost with Ethernet off near zero.
254+
Then check the other budgets (min free internal heap ≥ 48 KB, largest block
255+
≥ 24 KB, loop p99 ≤ 5 ms) with Ethernet off and on.
253256

254257
## How it fits the design principles
255258

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.