I tried doing line by line debugging to find out that Error code is being set by:HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)To be specific, this line of the code:else
{...