Skip to content

Commit 1534ea1

Browse files
committed
boards: arm: add can1 to nucleo_h743/753.
* Enable and configure can1 for nucleo_h743/753. * Update documentation. Signed-off-by: Jeremy Wood <[email protected]>
1 parent f55c5be commit 1534ea1

File tree

6 files changed

+38
-0
lines changed

6 files changed

+38
-0
lines changed

boards/arm/nucleo_h743zi/doc/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ features:
125125
+-------------+------------+-------------------------------------+
126126
| USB | on-chip | usb_device |
127127
+-------------+------------+-------------------------------------+
128+
| CAN/CANFD | on-chip | canbus |
129+
+-------------+------------+-------------------------------------+
128130

129131
Other hardware features are not yet supported on this Zephyr port.
130132

@@ -148,6 +150,7 @@ and a ST morpho connector. Board is configured as follows:
148150
- ADC1_INP15 : PA3
149151
- ETH : PA1, PA2, PA7, PB13, PC1, PC4, PC5, PG11, PG13
150152
- SPI1 NSS/SCK/MISO/MOSI : PD14/PA5/PA6/PB5 (Arduino SPI)
153+
- CAN/CANFD : PD0, PD1
151154

152155
System Clock
153156
------------
@@ -168,6 +171,11 @@ Backup SRAM
168171
In order to test backup SRAM you may want to disconnect VBAT from VDD. You can
169172
do it by removing ``SB156`` jumper on the back side of the board.
170173

174+
CAN, CANFD
175+
----------
176+
177+
Requires an external CAN or CANFD transceiver.
178+
171179
Programming and Debugging
172180
*************************
173181

boards/arm/nucleo_h743zi/nucleo_h743zi.dts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
zephyr,flash = &flash0;
2121
zephyr,dtcm = &dtcm;
2222
zephyr,code-partition = &slot0_partition;
23+
zephyr,canbus = &can1;
2324
};
2425

2526
leds {
@@ -130,6 +131,14 @@ zephyr_udc0: &usbotg_fs {
130131
status = "okay";
131132
};
132133

134+
&can1 {
135+
pinctrl-0 = <&fdcan1_rx_pd0 &fdcan1_tx_pd1>;
136+
pinctrl-names = "default";
137+
bus-speed = <125000>;
138+
bus-speed-data = <1000000>;
139+
status = "okay";
140+
};
141+
133142
/*
134143
* WARNING:
135144
* Possible pin conflicts:

boards/arm/nucleo_h743zi/nucleo_h743zi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ supported:
2222
- backup_sram
2323
- watchdog
2424
- usb_device
25+
- can
26+
- canfd

boards/arm/nucleo_h753zi/doc/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ features:
123123
+-----------+------------+-------------------------------------+
124124
| USB | on-chip | usb_device |
125125
+-----------+------------+-------------------------------------+
126+
| CAN/CANFD | on-chip | canbus |
127+
+-----------+------------+-------------------------------------+
126128

127129
Other hardware features are not yet supported on this Zephyr port.
128130

@@ -146,6 +148,7 @@ and a ST morpho connector. Board is configured as follows:
146148
- ADC1_INP15 : PA3
147149
- ETH : PA1, PA2, PA7, PB13, PC1, PC4, PC5, PG11, PG13
148150
- SPI1 NSS/SCK/MISO/MOSI : PD14PA5/PA6/PB5 (Arduino SPI)
151+
- CAN/CANFD : PD0, PD1
149152

150153
System Clock
151154
------------
@@ -160,6 +163,11 @@ Serial Port
160163
Nucleo H753ZI board has 4 UARTs and 4 USARTs. The Zephyr console output is
161164
assigned to UART3. Default settings are 115200 8N1.
162165

166+
CAN, CANFD
167+
----------
168+
169+
Requires an external CAN or CANFD transceiver.
170+
163171
Programming and Debugging
164172
*************************
165173

boards/arm/nucleo_h753zi/nucleo_h753zi.dts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
zephyr,flash = &flash0;
2121
zephyr,dtcm = &dtcm;
2222
zephyr,code-partition = &slot0_partition;
23+
zephyr,canbus = &can1;
2324
};
2425

2526
leds {
@@ -130,6 +131,14 @@ zephyr_udc0: &usbotg_fs {
130131
status = "okay";
131132
};
132133

134+
&can1 {
135+
pinctrl-0 = <&fdcan1_rx_pd0 &fdcan1_tx_pd1>;
136+
pinctrl-names = "default";
137+
bus-speed = <125000>;
138+
bus-speed-data = <1000000>;
139+
status = "okay";
140+
};
141+
133142
/*
134143
* WARNING:
135144
* Possible pin conflicts:

boards/arm/nucleo_h753zi/nucleo_h753zi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ supported:
2020
- netif:eth
2121
- spi
2222
- usb_device
23+
- can
24+
- canfd

0 commit comments

Comments
 (0)