Skip to content

Add STM32WBA65RI NUCLEO board to HIL test bench#5596

Merged
Dirbaio merged 2 commits intoembassy-rs:mainfrom
leftger:feat/wba65-hil-tests
Mar 12, 2026
Merged

Add STM32WBA65RI NUCLEO board to HIL test bench#5596
Dirbaio merged 2 commits intoembassy-rs:mainfrom
leftger:feat/wba65-hil-tests

Conversation

@leftger
Copy link
Contributor

@leftger leftger commented Mar 4, 2026

Summary

  • Add HIL test configuration for the NUCLEO-WBA65RI board
  • UART loopback via LPUART1, SPI loopback via SPI2, plus RNG, HASH, RTC, and ADC tests
  • RCC uses HSI at 16 MHz with sai1sel set to HSI (WBA65RI has SAI, unlike WBA52, and the default mux zeroes to PLL1_P)
  • Tests excluded from CI (ci.sh) until the board is physically on the HIL shelf

Wiring (Arduino header)

  • UART loopback: Wire D9 (PB11, LPUART1_TX) to D8 (PA10, LPUART1_RX)
  • SPI loopback: Wire D11 (PC3, SPI2_MOSI) to D12 (PA9, SPI2_MISO)

Hardware-validated tests

All wire-free tests pass on hardware: timer, rng, hash, rtc, adc.
UART and SPI loopback tests pass with wiring in place.

Note: The usart test fails at 2 Mbaud because LPUART1 at 16 MHz HSI can't achieve that speed. The driver should return BaudrateTooHigh but doesn't — this is a pre-existing LPUART driver issue (WBA52 uses LPUART1 too), not specific to this PR.

@leftger
Copy link
Contributor Author

leftger commented Mar 4, 2026

Screenshot 2026-03-04 at 4 37 35 PM Here's the pinout

@xoviat xoviat added the trusted label Mar 5, 2026
@leftger
Copy link
Contributor Author

leftger commented Mar 10, 2026

@Dirbaio let me know if you need anything else from my end.

leftger added 2 commits March 12, 2026 19:15
Add HIL test support for the NUCLEO-WBA65RI board with UART loopback
(LPUART1: PB11 TX, PA10 RX) and SPI loopback (SPI2: PB10 SCK, PC3
MOSI, PA9 MISO). Uses HSI at 16 MHz.

Wiring (Arduino header):
- UART loopback: D9 (PB11) <-> D8 (PA10)
- SPI loopback: D11 (PC3) <-> D12 (PA9)

Tests excluded from CI until board is on the HIL shelf.
Remove the line that excluded stm32wba65ri test binaries from
Teleprobe execution, so HIL tests run once the board is available
on the test farm.
@Dirbaio Dirbaio force-pushed the feat/wba65-hil-tests branch from c2bc2b3 to 506d678 Compare March 12, 2026 18:50
@Dirbaio Dirbaio enabled auto-merge March 12, 2026 18:50
@Dirbaio Dirbaio added this pull request to the merge queue Mar 12, 2026
Merged via the queue into embassy-rs:main with commit b720605 Mar 12, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants