Commit 9aaee91
committed
arch/arm/src/stm32h7/stm32_fdcan_sock: fix clock, ILS register and extended ID filter
Fix three issues in the STM32H7 FDCAN SocketCAN driver:
1. Clock configuration: Allow board.h to override STM32_FDCANCLK.
Previously the driver hardcoded STM32_HSE_FREQUENCY, ignoring
any board-specific clock configuration.
2. ILS register bug: Fix putreg32 call that was writing FDCAN_ILS_TCL
constant instead of the computed regval, causing interrupt routing
issues.
3. Extended ID filter size: Increase n_extid from 64 to 128. Despite
the reference manual (RM0433) suggesting 64 max, testing shows
that 128 is required for reliable extended ID frame reception.
With 64, some extended ID frames were silently dropped.
Signed-off-by: Vinicius May <vmay.sweden@gmail.com>1 parent 5024a67 commit 9aaee91
1 file changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
146 | 148 | | |
| 149 | + | |
147 | 150 | | |
148 | 151 | | |
149 | 152 | | |
| |||
2062 | 2065 | | |
2063 | 2066 | | |
2064 | 2067 | | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
2065 | 2072 | | |
2066 | 2073 | | |
2067 | 2074 | | |
| |||
2183 | 2190 | | |
2184 | 2191 | | |
2185 | 2192 | | |
2186 | | - | |
| 2193 | + | |
2187 | 2194 | | |
2188 | 2195 | | |
2189 | 2196 | | |
| |||
2247 | 2254 | | |
2248 | 2255 | | |
2249 | 2256 | | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
2250 | 2261 | | |
2251 | 2262 | | |
2252 | | - | |
| 2263 | + | |
2253 | 2264 | | |
2254 | 2265 | | |
2255 | 2266 | | |
| |||
2284 | 2295 | | |
2285 | 2296 | | |
2286 | 2297 | | |
| 2298 | + | |
2287 | 2299 | | |
| 2300 | + | |
2288 | 2301 | | |
2289 | 2302 | | |
2290 | 2303 | | |
| |||
0 commit comments