Hello, I'm trying to use Cortex Debug in VS Code, but i have the following problem, it's only can be fixed by adding -lc -spec=nosys.specs in Makefile. But it's not a solution for me, because in that case "memset" function works incorrect.

Have you any idea what it could be? Thank you.