Repository navigation
v0.1.5
Added
.github/workflows/release.yml: pushing avX.Y.Ztag now checks that
the tag, the DoxyfilePROJECT_NUMBERandCHANGELOG.md's newest release
agree and that the commit is onmain, builds the release firmware with
the pinned toolchain, and creates the GitHub Release with that version's
changelog section as the notes and the.elf/.bin/.hex/.map, a
size report andSHA256SUMSattached. Releases were previously created
by hand, and v0.1.3 and v0.1.4 never got one. On a pull request touching
the release pipeline's files it runs the same steps without publishing,
so the first real run is not a real release.make check-version(tools/check_version.awk), also run inci.ymlon
every PR and push: fails when the Doxyfile'sPROJECT_NUMBERand the
newest released heading inCHANGELOG.mddiffer. The two are edited by
hand in different files at release time and nothing else compared them.tools/changelog_section.awk: extracts one version's changelog section
for the release notes; refuses an empty or missing section.
Changed
-
Documentation brought back in line with the code: the README, ARCHITECTURE
and VERSIONING peripheral/driver lists now name every register block
(MPU on the core side; EXTI, Flash, IWDG, PWR, SYSCFG, WWDG on the device
side) and every implemented driver (Flash and PWR were missing from the
0.2.0 definition); the README's one-line pitch no longer reads as if a
scheduler exists; the GPIO and UART driver summaries describe
gpioPortResetValuesand parity;docs/ARCHITECTURE.mdlists all four awk
tools. Thegcovrprerequisite now says to use Homebrew on macOS: the
pinned 8.6 needs Python 3.10, and the Command Line Tools ship 3.9, so the
documentedpip install gcovrfails there. -
CHANGELOG.mdnow ends with the Keep a Changelog comparison links, so each
version heading links to its diff. -
The toolchain and Doxygen install steps, previously copy-pasted across
ci.yml,codeql.ymlandpages.yml, now live in two composite actions
under.github/actions/(setup-arm-toolchain,setup-doxygen), so each
version and checksum is defined once. Cache keys now include the start of
the pinned checksum. -
Every job has a
timeout-minutesceiling (20 for CI and CodeQL, 15 and 10
for the Pages build and deploy) instead of GitHub's 6-hour default, so a
hung download fails fast instead of holding a required check pending.
Fixed
- The Makefile discovered assembly with
-name '*.s'and had only a%.s
rule, sortos/kernel/src/context_switch.S(uppercase, preprocessed) was
silently never assembled or linked. Left unfixed, the PendSV context
switch would have built cleanly, withPendSV_Handlerstill the weak
Default_Handlerloop. Both.sand.Sare now discovered,.Sgets
its own rule that runs the C preprocessor with the project's include
paths, and the emptycontext_switch.Splaceholder is now part of the
link. make debugbackgrounded OpenOCD and started GDB immediately, so GDB's
singletarget extended-remote :3333could run before OpenOCD (which
must open the ST-LINK and halt the target first) was listening and fail
with "Connection refused". It now waits for the port, and stops with a
clear message if OpenOCD exits (no board, ST-LINK busy) or does not
listen within ~10 s.- Stale comments:
make lint's said the drivers were still empty and
would find nothing; the lint-suppression note listedCR1.OVER8as
having no consumer, which stopped being true whenuartInit()started
clearing it;startup_stm32f446re.snamed itself.S. rccHsiDisable()andrccHseDisable()only refused whenCFGR.SWS
named the oscillator itself. RM0390 also forbids clearingHSION/HSEON
when the oscillator is used indirectly as the system clock, i.e.SWS
names the PLL andPLLCFGR.PLLSRCselects that oscillator. In that case
the hardware ignores the write while the driver reported
DRIVER_STATUS_OK. Both now share one guard
(rccOscillatorDisableGuard) and returnDRIVER_STATUS_ERR_BUSYfor the
indirect case too. An active PLL sourced from the other oscillator does
not block the disable.gpioDeinit()zeroed the pin's MODER/OSPEEDR/PUPDR fields and documented
that as the power-on-reset state, which is only true for most pins. GPIOA
and GPIOB come out of reset with the SWD/JTAG pins (PA13/14/15, PB3/4) in
alternate-function mode with pulls, so deinitialising one of them dropped
the debug link. It now restores the real reset value for the pin's
field. The per-port values live ingpio_reg.h(GPIOA_MODER_RESETetc.)
behind a newgpioPortResetValues(), which identifies the port by address
only so the lookup is host-testable.uartInit()corrupted data whenever parity was enabled.CR1.Mwas
always cleared, but RM0390 counts the parity bit inside the frame length
Mselects, so parity on withMclear is 7 data bits plus parity: the
hardware replaced bit 7 of every transmitted byte with the parity bit,
and a receiver would have discarded it.Mis now derived from the
parity setting (set exactly when parity is enabled), giving the 8 data
bits plus parity the API always advertised. Transmit/receive stay
uint8_t: the 9th bit is parity, generated and checked by hardware.uartInit()now clearsCR1.OVER8. The BRR it computes assumes 16x
oversampling, so a staleOVER8(set by earlier code or a debugger)
silently doubled the baud rate the same divisor produced.
Security
- The Arm GNU Toolchain and Doxygen archives are now verified against a
pinned SHA256 before extraction. They were previously fetched with
curl -sSL ... | tarand no integrity check, which undercut the
SHA-pinning policy applied to the GitHub Actions themselves: a changed or
tampered download would have been installed silently. A mismatch now
fails the job.curlalso uses-f, so an HTTP error fails the step
instead of handing an error page totar.