Hard-fault coming during svc to start first task

Those three lines do belong in FreeRTOSConfig.h, not in port.c, but that’s probably not going to fix your issue. I would make sure the scheduler is actually starting successfully as Richard describes above. Also look at the “common” issues addressed in this post.