I am new to MCU programming. I'd like to test SPI loopback using HAL. The project was generated by CubeMX for STM32F411RE. The SPI_call() is called inside the main. I am unable to receive the characters in the terminal.
void SPI_call() { char msg[] = "smile"; char copy[6]; HAL_SPI_Receive_IT(&hspi1, (uint8_t *)copy, strlen(copy)); HAL_SPI_Transmit(&hspi1, (uint8_t *)msg, strlen(msg), 100); } static void MX_SPI1_Init(void) { /* USER CODE BEGIN SPI1_Init 0 *...