sending signal (UART) while running MotorControl
Hi,
I'm currently working on sending signals through FDCAN or UART of B-G431B-ESC1 while driving a motor.
I have written a debug code which sends UART data when a button is pressed.
However, the function is called once and never called again, nor the motor won't start.
"stm32g4xx_mc_it"
uint8_t mc_it_debug[64];
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* Configure the system clock */
SystemClock_Config();
/* USER CODE BEGIN SysInit */
/* USER CODE END SysInit */
/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_DMA_Init();
MX_ADC1_Init();
MX_ADC2_Init();
MX_COMP1_Init();
MX_COMP2_Init();
MX_COMP4_Init();
MX_CORDIC_Init();
MX_DAC3_Init();
MX_OPAMP1_Init();
MX_OPAMP2_Init();
MX_OPAMP3_Init();
MX_TIM1_Init();
MX_MotorControl_Init();
MX_FDCAN1_Init();
MX_USART2_UART_Init();
/* Initialize interrupts */
MX_NVIC_Init();
I am assuming it is a priority issue, which is set as

Any advice will be helpful.
