File tree Expand file tree Collapse file tree 3 files changed +39
-2
lines changed
boards/shields/dfrobot_can_bus_v2_0/doc Expand file tree Collapse file tree 3 files changed +39
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,8 @@ Zephyr application. For example:
122
122
:tool: all
123
123
:board: nrf52_pca10040
124
124
:shield: dfrobot_can_bus_v2_0
125
- :goals: build
125
+ :conf: prj.mcp2515.conf
126
+ :goals: build flash
126
127
127
128
.. _DFRobot Website :
128
129
https://www.dfrobot.com/product-1444.html
Original file line number Diff line number Diff line change @@ -17,9 +17,35 @@ Building and Running
17
17
In loopback mode, the board receives its own messages. This could be used for
18
18
standalone testing.
19
19
20
- The sample can be built and executed on boards supporting CAN.
21
20
The LED output pin is defined in the board's devicetree.
22
21
22
+ The sample can be built and executed for boards with a SoC that have an
23
+ integrated CAN controller or for boards with a SoC that has been augmented
24
+ with a stand alone CAN controller.
25
+
26
+ Integrated CAN controller
27
+ =========================
28
+
29
+ For the NXP TWR-KE18F board:
30
+
31
+ .. zephyr-app-commands ::
32
+ :zephyr-app: samples/drivers/CAN
33
+ :board: twr_ke18f
34
+ :goals: build flash
35
+
36
+ Stand alone CAN controller
37
+ ==========================
38
+
39
+ For the nRF52_PCA10040 board combined with the DFRobot CAN bus V2.0 shield that
40
+ provides the MCP2515 CAN controller:
41
+
42
+ .. zephyr-app-commands ::
43
+ :zephyr-app: samples/drivers/CAN
44
+ :board: nrf52_pca10040
45
+ :shield: dfrobot_can_bus_v2_0
46
+ :conf: prj.mcp2515.conf
47
+ :goals: build flash
48
+
23
49
Sample output
24
50
=============
25
51
Original file line number Diff line number Diff line change
1
+ # Alternate conf file required for building the CAN sample for the
2
+ # MCP2515 stand alone CAN controller
3
+
4
+ CONFIG_CAN=y
5
+ CONFIG_CAN_INIT_PRIORITY=80
6
+ CONFIG_CAN_MCP2515_MAX_FILTER=5
7
+
8
+ CONFIG_SHELL=y
9
+ CONFIG_CAN_SHELL=y
10
+ CONFIG_DEVICE_SHELL=y
You can’t perform that action at this time.
0 commit comments