Closed donsez closed 1 month ago
Note: the Nucleo32 boards
nucleo-f303k8
andnucleo-f042k6
have also a CAN bus interface.
Hi! I looked at STM32L432KC datasheet and presented config (PA11/12 and AF9) seams reasonable.
I currently don't have nucleo-l432kc but if you would like, I could prepare PR with your changes. Or I could help you with submitting PR.
Note Bene: I've tried to add FEATURES_PROVIDED += periph_can
to the Makefile.features
of the Nucleo32 boards nucleo-f303k8
and nucleo-f042k6
but the build of tests/sys/conn_can
failed.
Hi! I try compile this code and errors are associated with various names of CMSIS defines in the candev_conf
struct from cpu/stm32/include/can_param.h
. For example for f303 .can
should be CAN
not CAN1
, .rcc_mask
should be RCC_APB1ENR_CANEN
not RCC_APB1ENR_CAN1EN
etc.. . To fix this some additional defines should be added - but this could lead to very hard to read/maintence code.
Description
The Nucleo L432KC board is a Nucleo 32 board supported by RIOT OS.
This board supports CAN interface. However, CAN periph is not enabled into
Makefile.features
and the definition of the CAN pins is not correct for the STM32L432KC :PA11/PA12
instead ofPB8/PB9
intocpu/stm32/include/can_params.h
Steps to reproduce the issue
The following patch is enough for using the CAN bus with Nucleo L432KC
Expected results
Actual results
Versions
Misc
This LoRa gateway board for cubesat uses CAN bus for communication with other boards into the INISAT cubesat.