Well, it's always helpful if you include the URL of the MOOC so that people are sure what you're referring to - because there are a lot of MOOCs on YouTube.
I guess you mean MOOC - STM32CubeMX and STM32Cube HAL basics?
For this MOOC (and similar ones) you don't need any hardware other than a few wires, the PC and the USB cable. SPI and UART are short-circuited with a so-called loopback, the STM32 receives its own transmissions, so to speak.
Good luck and enjoy the MOOC!
Regards
/Peter
In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.