Loading 3D model… large boards can take a moment.
This PCB integrates all rear-side vehicle electronics, handling communication, power outputs, and sensor inputs in a compact form factor.
[!IMPORTANT] For the CAN library to work correctly, the auto-generated HAL driver file needs to be patched.
Make sure to restore any changes made by the generator to the
firmware/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_fdcan.cfile or the receiving won't work!
Below are the changes that need to be made to the stm32g4xx_hal_fdcan.c file:
2231c2231
< assert_param(IS_FDCAN_RX_FIFO(RxLocation));
---
> //assert_param(IS_FDCAN_RX_FIFO(RxLocation));
2235c2235
< if(RxLocation == FDCAN_RX_FIFO0) /* Rx element is assigned to the Rx FIFO 0 */
---
> if(RxLocation == 0) /* Rx element is assigned to the Rx FIFO 0 */
2343c2343
< if(RxLocation == FDCAN_RX_FIFO0) /* Rx element is assigned to the Rx FIFO 0 */
---
> if(RxLocation == 0) /* Rx element is assigned to the Rx FIFO 0 */
This project is licensed under the GPLv3 License. See the LICENSE file for details.
No comments yet. Be the first to ask about this board.