Skip to content

STM32L4 CAN sample project does not compile #8931

@markusr

Description

@markusr

I am trying to get CANbus sample to run. However, I cannot compile the sample program. I am working with NUCLEO-L432KC board.

zephyr/samples/drivers/CAN$ mkdir build && cd build
$ cmake -GNinja -DBOARD=nucleo_l432kc ..
--> runs fine

Then I want to compile ninja which fails:

/home/markus/Entwicklung/tmp/zephyr-zephyr-v1.12.0/drivers/can/stm32_can.c:795:24: error: ‘CONFIG_CAN_1_BASE_ADDRESS’ undeclared here (not in a function)
  .can = (CAN_TypeDef *)CONFIG_CAN_1_BASE_ADDRESS,

See full log here

Metadata

Metadata

Labels

area: CANbugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions