FDCAN Timings and settings correctly configured
This commit is contained in:
parent
7b976812ac
commit
bfbecba2a6
22
.mxproject
22
.mxproject
File diff suppressed because one or more lines are too long
@ -3,7 +3,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define N_SLAVES 3
|
||||
#define N_SLAVES 1
|
||||
#define N_CELLS_SERIES 15
|
||||
#define N_CELLS_PARALLEL 4
|
||||
#define N_TEMP_SENSORS 32
|
||||
|
@ -107,7 +107,7 @@
|
||||
* (when HSE is used as system clock source, directly or through the PLL).
|
||||
*/
|
||||
#if !defined (HSE_VALUE)
|
||||
#define HSE_VALUE (24000000UL) /*!< Value of the External oscillator in Hz : FPGA case fixed to 60MHZ */
|
||||
#define HSE_VALUE (16000000UL) /*!< Value of the External oscillator in Hz : FPGA case fixed to 60MHZ */
|
||||
#endif /* HSE_VALUE */
|
||||
|
||||
#if !defined (HSE_STARTUP_TIMEOUT)
|
||||
|
@ -55,6 +55,7 @@ void SVC_Handler(void);
|
||||
void DebugMon_Handler(void);
|
||||
void PendSV_Handler(void);
|
||||
void SysTick_Handler(void);
|
||||
void FDCAN1_IT0_IRQHandler(void);
|
||||
/* USER CODE BEGIN EFP */
|
||||
|
||||
/* USER CODE END EFP */
|
||||
|
@ -178,14 +178,13 @@ void SystemClock_Config(void)
|
||||
/** Initializes the RCC Oscillators according to the specified parameters
|
||||
* in the RCC_OscInitTypeDef structure.
|
||||
*/
|
||||
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_CSI|RCC_OSCILLATORTYPE_HSI;
|
||||
RCC_OscInitStruct.HSIState = RCC_HSI_DIV1;
|
||||
RCC_OscInitStruct.HSICalibrationValue = 64;
|
||||
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_CSI|RCC_OSCILLATORTYPE_HSE;
|
||||
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
|
||||
RCC_OscInitStruct.CSIState = RCC_CSI_ON;
|
||||
RCC_OscInitStruct.CSICalibrationValue = 16;
|
||||
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
|
||||
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
|
||||
RCC_OscInitStruct.PLL.PLLM = 4;
|
||||
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
|
||||
RCC_OscInitStruct.PLL.PLLM = 1;
|
||||
RCC_OscInitStruct.PLL.PLLN = 8;
|
||||
RCC_OscInitStruct.PLL.PLLP = 2;
|
||||
RCC_OscInitStruct.PLL.PLLQ = 3;
|
||||
@ -203,7 +202,7 @@ void SystemClock_Config(void)
|
||||
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
|
||||
|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2
|
||||
|RCC_CLOCKTYPE_D3PCLK1|RCC_CLOCKTYPE_D1PCLK1;
|
||||
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_HSI;
|
||||
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
|
||||
RCC_ClkInitStruct.SYSCLKDivider = RCC_SYSCLK_DIV1;
|
||||
RCC_ClkInitStruct.AHBCLKDivider = RCC_HCLK_DIV1;
|
||||
RCC_ClkInitStruct.APB3CLKDivider = RCC_APB3_DIV1;
|
||||
@ -238,18 +237,18 @@ static void MX_FDCAN1_Init(void)
|
||||
hfdcan1.Init.AutoRetransmission = DISABLE;
|
||||
hfdcan1.Init.TransmitPause = DISABLE;
|
||||
hfdcan1.Init.ProtocolException = DISABLE;
|
||||
hfdcan1.Init.NominalPrescaler = 16;
|
||||
hfdcan1.Init.NominalPrescaler = 2;
|
||||
hfdcan1.Init.NominalSyncJumpWidth = 1;
|
||||
hfdcan1.Init.NominalTimeSeg1 = 2;
|
||||
hfdcan1.Init.NominalTimeSeg2 = 2;
|
||||
hfdcan1.Init.NominalTimeSeg1 = 31;
|
||||
hfdcan1.Init.NominalTimeSeg2 = 8;
|
||||
hfdcan1.Init.DataPrescaler = 1;
|
||||
hfdcan1.Init.DataSyncJumpWidth = 1;
|
||||
hfdcan1.Init.DataTimeSeg1 = 1;
|
||||
hfdcan1.Init.DataTimeSeg2 = 1;
|
||||
hfdcan1.Init.MessageRAMOffset = 0;
|
||||
hfdcan1.Init.StdFiltersNbr = 20;
|
||||
hfdcan1.Init.StdFiltersNbr = 32;
|
||||
hfdcan1.Init.ExtFiltersNbr = 0;
|
||||
hfdcan1.Init.RxFifo0ElmtsNbr = 0;
|
||||
hfdcan1.Init.RxFifo0ElmtsNbr = 16;
|
||||
hfdcan1.Init.RxFifo0ElmtSize = FDCAN_DATA_BYTES_8;
|
||||
hfdcan1.Init.RxFifo1ElmtsNbr = 0;
|
||||
hfdcan1.Init.RxFifo1ElmtSize = FDCAN_DATA_BYTES_8;
|
||||
@ -257,7 +256,7 @@ static void MX_FDCAN1_Init(void)
|
||||
hfdcan1.Init.RxBufferSize = FDCAN_DATA_BYTES_8;
|
||||
hfdcan1.Init.TxEventsNbr = 0;
|
||||
hfdcan1.Init.TxBuffersNbr = 0;
|
||||
hfdcan1.Init.TxFifoQueueElmtsNbr = 0;
|
||||
hfdcan1.Init.TxFifoQueueElmtsNbr = 1;
|
||||
hfdcan1.Init.TxFifoQueueMode = FDCAN_TX_FIFO_OPERATION;
|
||||
hfdcan1.Init.TxElmtSize = FDCAN_DATA_BYTES_8;
|
||||
if (HAL_FDCAN_Init(&hfdcan1) != HAL_OK)
|
||||
|
@ -95,7 +95,15 @@ void HAL_FDCAN_MspInit(FDCAN_HandleTypeDef* hfdcan)
|
||||
/** Initializes the peripherals clock
|
||||
*/
|
||||
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_FDCAN;
|
||||
PeriphClkInitStruct.FdcanClockSelection = RCC_FDCANCLKSOURCE_PLL;
|
||||
PeriphClkInitStruct.PLL2.PLL2M = 16;
|
||||
PeriphClkInitStruct.PLL2.PLL2N = 160;
|
||||
PeriphClkInitStruct.PLL2.PLL2P = 2;
|
||||
PeriphClkInitStruct.PLL2.PLL2Q = 4;
|
||||
PeriphClkInitStruct.PLL2.PLL2R = 2;
|
||||
PeriphClkInitStruct.PLL2.PLL2RGE = RCC_PLL2VCIRANGE_0;
|
||||
PeriphClkInitStruct.PLL2.PLL2VCOSEL = RCC_PLL2VCOWIDE;
|
||||
PeriphClkInitStruct.PLL2.PLL2FRACN = 0;
|
||||
PeriphClkInitStruct.FdcanClockSelection = RCC_FDCANCLKSOURCE_PLL2;
|
||||
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
|
||||
{
|
||||
Error_Handler();
|
||||
@ -116,6 +124,9 @@ void HAL_FDCAN_MspInit(FDCAN_HandleTypeDef* hfdcan)
|
||||
GPIO_InitStruct.Alternate = GPIO_AF9_FDCAN1;
|
||||
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
|
||||
|
||||
/* FDCAN1 interrupt Init */
|
||||
HAL_NVIC_SetPriority(FDCAN1_IT0_IRQn, 0, 0);
|
||||
HAL_NVIC_EnableIRQ(FDCAN1_IT0_IRQn);
|
||||
/* USER CODE BEGIN FDCAN1_MspInit 1 */
|
||||
|
||||
/* USER CODE END FDCAN1_MspInit 1 */
|
||||
@ -145,6 +156,8 @@ void HAL_FDCAN_MspDeInit(FDCAN_HandleTypeDef* hfdcan)
|
||||
*/
|
||||
HAL_GPIO_DeInit(GPIOA, GPIO_PIN_11|GPIO_PIN_12);
|
||||
|
||||
/* FDCAN1 interrupt DeInit */
|
||||
HAL_NVIC_DisableIRQ(FDCAN1_IT0_IRQn);
|
||||
/* USER CODE BEGIN FDCAN1_MspDeInit 1 */
|
||||
|
||||
/* USER CODE END FDCAN1_MspDeInit 1 */
|
||||
|
@ -55,7 +55,7 @@
|
||||
/* USER CODE END 0 */
|
||||
|
||||
/* External variables --------------------------------------------------------*/
|
||||
|
||||
extern FDCAN_HandleTypeDef hfdcan1;
|
||||
/* USER CODE BEGIN EV */
|
||||
|
||||
/* USER CODE END EV */
|
||||
@ -198,6 +198,20 @@ void SysTick_Handler(void)
|
||||
/* please refer to the startup file (startup_stm32h7xx.s). */
|
||||
/******************************************************************************/
|
||||
|
||||
/**
|
||||
* @brief This function handles FDCAN1 interrupt 0.
|
||||
*/
|
||||
void FDCAN1_IT0_IRQHandler(void)
|
||||
{
|
||||
/* USER CODE BEGIN FDCAN1_IT0_IRQn 0 */
|
||||
|
||||
/* USER CODE END FDCAN1_IT0_IRQn 0 */
|
||||
HAL_FDCAN_IRQHandler(&hfdcan1);
|
||||
/* USER CODE BEGIN FDCAN1_IT0_IRQn 1 */
|
||||
|
||||
/* USER CODE END FDCAN1_IT0_IRQn 1 */
|
||||
}
|
||||
|
||||
/* USER CODE BEGIN 1 */
|
||||
|
||||
/* USER CODE END 1 */
|
||||
|
0
Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7a3xx.h
Executable file → Normal file
0
Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7a3xx.h
Executable file → Normal file
0
Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h
Executable file → Normal file
0
Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h
Executable file → Normal file
0
Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h
Executable file → Normal file
0
Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h
Executable file → Normal file
0
Drivers/CMSIS/Device/ST/STM32H7xx/LICENSE.txt
Executable file → Normal file
0
Drivers/CMSIS/Device/ST/STM32H7xx/LICENSE.txt
Executable file → Normal file
0
Drivers/CMSIS/Include/cmsis_armclang_ltm.h
Executable file → Normal file
0
Drivers/CMSIS/Include/cmsis_armclang_ltm.h
Executable file → Normal file
0
Drivers/CMSIS/Include/core_armv81mml.h
Executable file → Normal file
0
Drivers/CMSIS/Include/core_armv81mml.h
Executable file → Normal file
0
Drivers/CMSIS/Include/core_cm35p.h
Executable file → Normal file
0
Drivers/CMSIS/Include/core_cm35p.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cortex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma_ex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_exti.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_flash_ex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_gpio_ex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_hsem.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_i2c_ex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_mdma.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_pwr_ex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_tim_ex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_uart_ex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_bus.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_bus.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_cortex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_cortex.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_crs.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_crs.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_dma.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_dma.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_dmamux.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_dmamux.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_exti.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_exti.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_gpio.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_gpio.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_hsem.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_hsem.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_i2c.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_i2c.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_lpuart.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_lpuart.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_pwr.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_pwr.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_rcc.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_rcc.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_system.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_system.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_tim.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_tim.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_usart.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_usart.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_utils.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_utils.h
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/LICENSE.txt
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/LICENSE.txt
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c
Executable file → Normal file
0
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c
Executable file → Normal file
4
Makefile
4
Makefile
@ -1,5 +1,5 @@
|
||||
##########################################################################################################################
|
||||
# File automatically-generated by tool: [projectgenerator] version: [4.2.0-B44] date: [Mon May 06 18:18:37 CEST 2024]
|
||||
# File automatically-generated by tool: [projectgenerator] version: [4.3.0-B58] date: [Mon May 20 19:05:10 EEST 2024]
|
||||
##########################################################################################################################
|
||||
|
||||
# ------------------------------------------------
|
||||
@ -39,6 +39,8 @@ C_SOURCES = \
|
||||
Core/Src/main.c \
|
||||
Core/Src/stm32h7xx_it.c \
|
||||
Core/Src/stm32h7xx_hal_msp.c \
|
||||
Core/Src/sysmem.c \
|
||||
Core/Src/syscalls.c \
|
||||
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c \
|
||||
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c \
|
||||
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c \
|
||||
|
@ -2,11 +2,16 @@
|
||||
CAD.formats=[]
|
||||
CAD.pinconfig=Dual
|
||||
CAD.provider=
|
||||
FDCAN1.CalculateBaudRateNominal=533333
|
||||
FDCAN1.CalculateTimeBitNominal=1875
|
||||
FDCAN1.CalculateTimeQuantumNominal=375.0
|
||||
FDCAN1.IPParameters=CalculateTimeQuantumNominal,CalculateTimeBitNominal,CalculateBaudRateNominal,StdFiltersNbr
|
||||
FDCAN1.StdFiltersNbr=20
|
||||
FDCAN1.CalculateBaudRateNominal=500000
|
||||
FDCAN1.CalculateTimeBitNominal=2000
|
||||
FDCAN1.CalculateTimeQuantumNominal=50.0
|
||||
FDCAN1.IPParameters=CalculateTimeQuantumNominal,CalculateTimeBitNominal,CalculateBaudRateNominal,StdFiltersNbr,NominalPrescaler,NominalTimeSeg1,NominalTimeSeg2,RxFifo0ElmtsNbr,TxFifoQueueElmtsNbr
|
||||
FDCAN1.NominalPrescaler=2
|
||||
FDCAN1.NominalTimeSeg1=31
|
||||
FDCAN1.NominalTimeSeg2=8
|
||||
FDCAN1.RxFifo0ElmtsNbr=16
|
||||
FDCAN1.StdFiltersNbr=32
|
||||
FDCAN1.TxFifoQueueElmtsNbr=1
|
||||
File.Version=6
|
||||
GPIO.groupedBy=Group By Peripherals
|
||||
I2C1.IPParameters=Timing
|
||||
@ -65,6 +70,7 @@ MxCube.Version=6.10.0
|
||||
MxDb.Version=DB.6.0.100
|
||||
NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
|
||||
NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
|
||||
NVIC.FDCAN1_IT0_IRQn=true\:0\:0\:false\:false\:true\:true\:true\:true
|
||||
NVIC.ForceEnableDMAVector=true
|
||||
NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
|
||||
NVIC.MemoryManagement_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
|
||||
@ -209,7 +215,7 @@ ProjectManager.UAScriptAfterPath=
|
||||
ProjectManager.UAScriptBeforePath=
|
||||
ProjectManager.UnderRoot=false
|
||||
ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_FDCAN1_Init-FDCAN1-false-HAL-true,4-MX_I2C1_Init-I2C1-false-HAL-true,5-MX_USART1_UART_Init-USART1-false-HAL-true,6-MX_TIM15_Init-TIM15-false-HAL-true,0-MX_CORTEX_M7_Init-CORTEX_M7-false-HAL-true
|
||||
RCC.ADCFreq_Value=129000000
|
||||
RCC.ADCFreq_Value=80000000
|
||||
RCC.AHB12Freq_Value=64000000
|
||||
RCC.AHB4Freq_Value=64000000
|
||||
RCC.APB1Freq_Value=64000000
|
||||
@ -228,36 +234,41 @@ RCC.DFSDM2ACLkFreq_Value=64000000
|
||||
RCC.DFSDM2Freq_Value=64000000
|
||||
RCC.DFSDMACLkFreq_Value=42666666.666666664
|
||||
RCC.DFSDMFreq_Value=64000000
|
||||
RCC.DIVM1=4
|
||||
RCC.DIVM1=1
|
||||
RCC.DIVM2=16
|
||||
RCC.DIVN1=8
|
||||
RCC.DIVN2=160
|
||||
RCC.DIVP1Freq_Value=64000000
|
||||
RCC.DIVP2Freq_Value=129000000
|
||||
RCC.DIVP3Freq_Value=129000000
|
||||
RCC.DIVP2Freq_Value=80000000
|
||||
RCC.DIVP3Freq_Value=32250000
|
||||
RCC.DIVQ1=3
|
||||
RCC.DIVQ1Freq_Value=42666666.666666664
|
||||
RCC.DIVQ2Freq_Value=129000000
|
||||
RCC.DIVQ3Freq_Value=129000000
|
||||
RCC.DIVQ2=4
|
||||
RCC.DIVQ2Freq_Value=40000000
|
||||
RCC.DIVQ3Freq_Value=32250000
|
||||
RCC.DIVR1Freq_Value=64000000
|
||||
RCC.DIVR2Freq_Value=129000000
|
||||
RCC.DIVR3Freq_Value=129000000
|
||||
RCC.FDCANFreq_Value=42666666.666666664
|
||||
RCC.DIVR2Freq_Value=80000000
|
||||
RCC.DIVR3Freq_Value=32250000
|
||||
RCC.FDCANCLockSelection=RCC_FDCANCLKSOURCE_PLL2
|
||||
RCC.FDCANFreq_Value=40000000
|
||||
RCC.FMCFreq_Value=64000000
|
||||
RCC.FamilyName=M
|
||||
RCC.HCLK3ClockFreq_Value=64000000
|
||||
RCC.HCLKFreq_Value=64000000
|
||||
RCC.HSE_VALUE=24000000
|
||||
RCC.HSE_VALUE=16000000
|
||||
RCC.I2C123CLockSelection=RCC_I2C123CLKSOURCE_CSI
|
||||
RCC.I2C123Freq_Value=4000000
|
||||
RCC.I2C4Freq_Value=64000000
|
||||
RCC.IPParameters=ADCFreq_Value,AHB12Freq_Value,AHB4Freq_Value,APB1Freq_Value,APB2Freq_Value,APB3Freq_Value,APB4Freq_Value,AXIClockFreq_Value,CDCPREFreq_Value,CECFreq_Value,CKPERFreq_Value,CortexFreq_Value,CpuClockFreq_Value,DAC1Freq_Value,DAC2Freq_Value,DFSDM2ACLkFreq_Value,DFSDM2Freq_Value,DFSDMACLkFreq_Value,DFSDMFreq_Value,DIVM1,DIVN1,DIVP1Freq_Value,DIVP2Freq_Value,DIVP3Freq_Value,DIVQ1,DIVQ1Freq_Value,DIVQ2Freq_Value,DIVQ3Freq_Value,DIVR1Freq_Value,DIVR2Freq_Value,DIVR3Freq_Value,FDCANFreq_Value,FMCFreq_Value,FamilyName,HCLK3ClockFreq_Value,HCLKFreq_Value,HSE_VALUE,I2C123CLockSelection,I2C123Freq_Value,I2C4Freq_Value,LPTIM1Freq_Value,LPTIM2Freq_Value,LPTIM345Freq_Value,LPUART1Freq_Value,LTDCFreq_Value,MCO1PinFreq_Value,MCO2PinFreq_Value,PLLFRACN,QSPIFreq_Value,RNGFreq_Value,RTCFreq_Value,SAI1Freq_Value,SAI2AFreq_Value,SAI2BFreq_Value,SDMMCFreq_Value,SPDIFRXFreq_Value,SPI123Freq_Value,SPI45Freq_Value,SPI6Freq_Value,SWPMI1Freq_Value,SYSCLKFreq_VALUE,Tim1OutputFreq_Value,Tim2OutputFreq_Value,TraceFreq_Value,USART16Freq_Value,USART234578Freq_Value,USBFreq_Value,VCO1OutputFreq_Value,VCO2OutputFreq_Value,VCO3OutputFreq_Value,VCOInput1Freq_Value,VCOInput2Freq_Value,VCOInput3Freq_Value
|
||||
RCC.IPParameters=ADCFreq_Value,AHB12Freq_Value,AHB4Freq_Value,APB1Freq_Value,APB2Freq_Value,APB3Freq_Value,APB4Freq_Value,AXIClockFreq_Value,CDCPREFreq_Value,CECFreq_Value,CKPERFreq_Value,CortexFreq_Value,CpuClockFreq_Value,DAC1Freq_Value,DAC2Freq_Value,DFSDM2ACLkFreq_Value,DFSDM2Freq_Value,DFSDMACLkFreq_Value,DFSDMFreq_Value,DIVM1,DIVM2,DIVN1,DIVN2,DIVP1Freq_Value,DIVP2Freq_Value,DIVP3Freq_Value,DIVQ1,DIVQ1Freq_Value,DIVQ2,DIVQ2Freq_Value,DIVQ3Freq_Value,DIVR1Freq_Value,DIVR2Freq_Value,DIVR3Freq_Value,FDCANCLockSelection,FDCANFreq_Value,FMCFreq_Value,FamilyName,HCLK3ClockFreq_Value,HCLKFreq_Value,HSE_VALUE,I2C123CLockSelection,I2C123Freq_Value,I2C4Freq_Value,LPTIM1Freq_Value,LPTIM2Freq_Value,LPTIM345Freq_Value,LPUART1Freq_Value,LTDCFreq_Value,MCO1PinFreq_Value,MCO2PinFreq_Value,PLLFRACN,PLLSourceVirtual,QSPIFreq_Value,RNGFreq_Value,RTCFreq_Value,SAI1Freq_Value,SAI2AFreq_Value,SAI2BFreq_Value,SDMMCFreq_Value,SPDIFRXFreq_Value,SPI123Freq_Value,SPI45Freq_Value,SPI6Freq_Value,SWPMI1Freq_Value,SYSCLKFreq_VALUE,SYSCLKSource,Tim1OutputFreq_Value,Tim2OutputFreq_Value,TraceFreq_Value,USART16Freq_Value,USART234578Freq_Value,USBFreq_Value,VCO1OutputFreq_Value,VCO2OutputFreq_Value,VCO3OutputFreq_Value,VCOInput1Freq_Value,VCOInput2Freq_Value,VCOInput3Freq_Value
|
||||
RCC.LPTIM1Freq_Value=64000000
|
||||
RCC.LPTIM2Freq_Value=64000000
|
||||
RCC.LPTIM345Freq_Value=64000000
|
||||
RCC.LPUART1Freq_Value=64000000
|
||||
RCC.LTDCFreq_Value=129000000
|
||||
RCC.LTDCFreq_Value=32250000
|
||||
RCC.MCO1PinFreq_Value=64000000
|
||||
RCC.MCO2PinFreq_Value=64000000
|
||||
RCC.PLLFRACN=0
|
||||
RCC.PLLSourceVirtual=RCC_PLLSOURCE_HSE
|
||||
RCC.QSPIFreq_Value=64000000
|
||||
RCC.RNGFreq_Value=48000000
|
||||
RCC.RTCFreq_Value=32000
|
||||
@ -271,18 +282,19 @@ RCC.SPI45Freq_Value=64000000
|
||||
RCC.SPI6Freq_Value=64000000
|
||||
RCC.SWPMI1Freq_Value=64000000
|
||||
RCC.SYSCLKFreq_VALUE=64000000
|
||||
RCC.SYSCLKSource=RCC_SYSCLKSOURCE_PLLCLK
|
||||
RCC.Tim1OutputFreq_Value=64000000
|
||||
RCC.Tim2OutputFreq_Value=64000000
|
||||
RCC.TraceFreq_Value=64000000
|
||||
RCC.USART16Freq_Value=64000000
|
||||
RCC.USART234578Freq_Value=64000000
|
||||
RCC.USBFreq_Value=42666666.666666664
|
||||
RCC.USBFreq_Value=21333333.333333332
|
||||
RCC.VCO1OutputFreq_Value=128000000
|
||||
RCC.VCO2OutputFreq_Value=258000000
|
||||
RCC.VCO3OutputFreq_Value=258000000
|
||||
RCC.VCO2OutputFreq_Value=160000000
|
||||
RCC.VCO3OutputFreq_Value=64500000
|
||||
RCC.VCOInput1Freq_Value=16000000
|
||||
RCC.VCOInput2Freq_Value=2000000
|
||||
RCC.VCOInput3Freq_Value=2000000
|
||||
RCC.VCOInput2Freq_Value=1000000
|
||||
RCC.VCOInput3Freq_Value=500000
|
||||
SH.S_TIM15_CH1.0=TIM15_CH1,PWM_Input_1
|
||||
SH.S_TIM15_CH1.ConfNb=1
|
||||
TIM15.IPParameters=Prescaler
|
||||
|
Loading…
x
Reference in New Issue
Block a user