Undefined reference to `osThreadCreate'

Your folder structure is still all wrong. And the startup file cannot just be in the root folder, it should be in src/ (not "Src"). The "Inc" folder must be include. Try to do as in GitHub - maxgerhardt/pio-stm32h7-stm32cube-freertos.