You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 98155a1
Browse filesBrowse the repository at this point in the historyBrowse files
S1: the core opens a board, reads its model, validates and generates (#9)
* S1: the core opens a board, reads its model, validates and generates
The core's first workspace is a board of an EmbLinkRTOS checkout, until the
project manifest exists (spec section 8: S1 to S3 work on the boards in the
RTOS tree and their generated model).
- project.open, close, status: a board directory, boards/<vendor>/<board>/, inside
a checkout. Opening reads files and runs nothing. A checkout whose emb-hwgen or
hw.json is outside the formats the core reads (emb-hwgen 0.x, hw.json schema 0)
is refused with unsupported_rtos.
- board.list, describe, pins, clocks, memory: the generator's resolved model, read
from hw.json; nothing is computed, in the core or the GUI.
- project.validate, generate.run, generate.diff: run the checkout's own emb-hwgen,
with the core's Python, and turn its lines (HW-002) into diagnostics with the
file, the line and the path in the YAML. diff writes nothing.
- project.trust: running the generator runs the checkout's code, so it waits until
the checkout is trusted (spec section 9). Trust is kept per path in the person's
own settings, never in a checkout.
- Every method has a command too: emblink-studio-core board list RTOS, project
validate BOARD, generate diff BOARD, and the rest.
- PyYAML becomes the core's dependency: the generator reads YAML with it.
Schemas for every new method are in protocol/. Tests: a fake emb-hwgen with the
real interface and output, the protocol end to end, and S1's acceptance against
the real nucleo_f446re and pico2_w, with errors made in a copy of the NUCLEO's
description found at their lines; CI checks out the RTOS at a pinned commit for it.
Signed-off-by: teo1747 <148846371+teo1747@users.noreply.github.com>
* core tests: Windows paths; show the generator's output when it fails
Signed-off-by: teo1747 <148846371+teo1747@users.noreply.github.com>
* core tests: format
Signed-off-by: teo1747 <148846371+teo1747@users.noreply.github.com>
* core acceptance: the clock error on Python 3.12+ only, until the RTOS's generator is fixed
Signed-off-by: teo1747 <148846371+teo1747@users.noreply.github.com>
---------
Signed-off-by: teo1747 <148846371+teo1747@users.noreply.github.com>
0 commit comments