From b747bfc4ffc349cfec092bf1d9ba695c2cc68685 Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Tue, 26 May 2026 14:26:35 +0000 Subject: [PATCH 1/2] app: boards: add board overlay for the WeAct Studio USB2CANFDV2 Add a board overlay for the WeAct Studio USB2CANFDV2 USB to CAN adapter. Signed-off-by: Henrik Brix Andersen --- app/boards/usb2canfdv2_stm32g431xx.overlay | 31 ++++++++++++++++++++++ app/sample.yaml | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 app/boards/usb2canfdv2_stm32g431xx.overlay diff --git a/app/boards/usb2canfdv2_stm32g431xx.overlay b/app/boards/usb2canfdv2_stm32g431xx.overlay new file mode 100644 index 0000000..eb562ff --- /dev/null +++ b/app/boards/usb2canfdv2_stm32g431xx.overlay @@ -0,0 +1,31 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2026 Henrik Brix Andersen + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include "../app.overlay" + +/ { + cannectivity: cannectivity { + compatible = "cannectivity"; + timestamp-counter = <&counter2>; + + channel0 { + compatible = "cannectivity-channel"; + can-controller = <&fdcan1>; + state-led = <&led_ready>; + activity-leds = <&led_rxd &led_txd>; + }; + }; +}; + +&timers2 { + status = "okay"; + st,prescaler = <159>; + + counter2: counter2 { + compatible = "st,stm32-counter"; + status = "okay"; + }; +}; diff --git a/app/sample.yaml b/app/sample.yaml index f380592..6317350 100644 --- a/app/sample.yaml +++ b/app/sample.yaml @@ -28,6 +28,7 @@ tests: - lpcxpresso55s16 - nucleo_h723zg - usb2canfdv1 + - usb2canfdv2 extra_args: - FILE_SUFFIX=debug app.cannectivity: @@ -46,6 +47,7 @@ tests: - nucleo_h723zg - ucan - usb2canfdv1 + - usb2canfdv2 build_only: true app.cannectivity.sof: depends_on: From 2a2c5d5ff8f840fc718e22fb409199fd3a9c950c Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Tue, 26 May 2026 14:30:08 +0000 Subject: [PATCH 2/2] wip --- west.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/west.yml b/west.yml index ccdb2ae..71aa8e2 100644 --- a/west.yml +++ b/west.yml @@ -9,7 +9,7 @@ manifest: projects: - name: zephyr remote: zephyrproject-rtos - revision: main + revision: pull/109791/head clone-depth: 1 import: name-allowlist: