Skip to content

Commit 1efe511

Browse files
committed
Updated HAL configuration (markdown)
1 parent 0432689 commit 1efe511

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

_custom/HAL-configuration.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,23 @@ void setup() {
169169
pinMode(LED_BUILTIN, OUTPUT);
170170
}
171171
```
172+
173+
# HAL FDCAN for STM32G0xx series
174+
175+
> [!NOTE]
176+
> Required core version higher or equal to 2.8.0.
177+
178+
STM23G0xx series shared an irq with the `HardwareTimer` but the default irq handler did not managed the `FDCAN` one as the core does not support it.
179+
180+
Since https://github.com/stm32duino/Arduino_Core_STM32/pull/2301 the handler properly forward to the correct handler.
181+
182+
Anyway, application have to declare the `phfdcan1` and `phfdcan2` handles.
183+
184+
Example:
185+
```C
186+
FDCAN_HandleTypeDef myhfdcan1;
187+
FDCAN_HandleTypeDef *phfdcan1 = &myhfdcan1;
188+
#if defined(FDCAN2_BASE)
189+
FDCAN_HandleTypeDef *phfdcan2 = NULL;
190+
#endif
191+
```

0 commit comments

Comments
 (0)