NorthStar-Endurance-TestBench/north-star_emotas-stack/codrv_ml/stm32_mcan
2025-08-29 17:17:01 +02:00
..
codrv_FreeRTOS_macros.h Added pressure controller and removed unnecessary files 2025-08-29 17:17:01 +02:00
codrv_FreeRTOS.c Added pressure controller and removed unnecessary files 2025-08-29 17:17:01 +02:00
codrv_FreeRTOS.h Added pressure controller and removed unnecessary files 2025-08-29 17:17:01 +02:00
codrv_mcan.c Added pressure controller and removed unnecessary files 2025-08-29 17:17:01 +02:00
codrv_mcan.h Added pressure controller and removed unnecessary files 2025-08-29 17:17:01 +02:00
codrv_threadx.c Added pressure controller and removed unnecessary files 2025-08-29 17:17:01 +02:00
codrv_threadx.h Added pressure controller and removed unnecessary files 2025-08-29 17:17:01 +02:00
cpu_stm32.h Added pressure controller and removed unnecessary files 2025-08-29 17:17:01 +02:00
cpu_stm32g4xx_NUCLEO_HAL.c Added pressure controller and removed unnecessary files 2025-08-29 17:17:01 +02:00
Readme.txt Added pressure controller and removed unnecessary files 2025-08-29 17:17:01 +02:00

STM32H7 hardware depend part
==========================

Please set the device dependend define in the device designer.

CODRV_MCAN_CFG_VER_1
CODRV_MCAN_STM32_H7

CODRV_MCAN_CFG_VER_2
CODRV_MCAN_STM32_L5
CODRV_MCAN_STM32_G4

CODRV_MCAN_CFG_VER_3
CODRV_MCAN_STM32_MP1


codrv_mcan - CAN driver
codrv_canbittiming - additional bittimings
codrv_error - error handling

There are different examples for hardware initialization.
Compile and adapt only one of it!

cpu_stm32h7xx*          - hardware initialization
cpu_stm32h7xx_atollic8  - STM32H743, Atollic8, ST HAL, CAN1


Use of additional bittimings:
=============================
- set CODRV_BIT_TABLE_EXTERN  

depend of the Peripherie clock
- set CODRV_CANCLOCK_80MHZ
(please check the src included tables)

Debug functionality
===================
can_printf.c	- send printf information over CAN
printf.js   - script for CDE to see the printf information