Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add can support to nucleo-l432kc board (issue #20837) #20845

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

donsez
Copy link

@donsez donsez commented Aug 29, 2024

Contribution description

This PR adds CAN support to the nucleo-l432kcboard (see issue #20837) .

Testing procedure

The testing procedure requires one Nucleo L432KC board, one Nucleo board having CAN interface (F446RE for instance) and 2 CAN drivers (such as ST L9616).

cd tests/sys/conn_can
make BOARD=nucleo-l432kc flash term

Nucleo 1 (receiver)

init 0
set_mode 0 0
test_can recv 1 0 10000000 100 500

Nucleo 2 (sender)

init 0
set_mode 0 0
test_can send 0 100 01 02

Issues/PRs references

fixes #20837.

@github-actions github-actions bot added Platform: ARM Platform: This PR/issue effects ARM-based platforms Area: boards Area: Board ports Area: cpu Area: CPU/MCU ports labels Aug 29, 2024
@benpicco
Copy link
Contributor

Thank you for the contribution!
Can you please prefix the commit message with the subsystem, so in this case

boards/nucleo-l432kc: add configuration CAN peripheral

and please remove boards/nucleo-l432kc/Makefile.features.uncrustify

@benpicco
Copy link
Contributor

Please squash your commits - you can do so by running

git rebase -i HEAD~2

Signed-off-by: Didier DONSEZ <didier.donsez@gmail.com>
@donsez donsez force-pushed the pr/add_can_to_board_nucleo-l432kc branch from e6cd228 to 56c14ee Compare August 30, 2024 10:10
@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Sep 2, 2024
@riot-ci
Copy link

riot-ci commented Sep 2, 2024

Murdock results

✔️ PASSED

56c14ee boards/nucleo-l432kc: add configuration CAN peripheral

Success Failures Total Runtime
10196 0 10197 17m:14s

Artifacts

@@ -54,9 +54,16 @@ static const can_conf_t candev_conf[] = {
.rx_pin = GPIO_PIN(PORT_A, 11),
.tx_pin = GPIO_PIN(PORT_A, 12),
#elif defined(CPU_FAM_STM32L4) || defined(CPU_FAM_STM32F4)

#if defined(BOARD_NUCLEO_L432KC)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, then this is not board specific

Suggested change
#if defined(BOARD_NUCLEO_L432KC)
#if defined(CPU_MODEL_STM32L432KC)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: boards Area: Board ports Area: cpu Area: CPU/MCU ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: ARM Platform: This PR/issue effects ARM-based platforms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add CAN support to Nucleo L432KC (Nucleo 32)
3 participants