A hard fault with STM32 and FatFs is common when STM32 CubeMX or FreeRTOS are not set up correctly. Here are some solutions that work!
Tag:
stm32ide
Debug printf for STM32 can be a useful tool to print out system logs without using UART when SWO output is used. Here is a tutorial for SWO.