diff --git a/stmhal/main.c b/stmhal/main.c
index bcc429df2f16371e9e239f203ba19b6fd8e56ff2..c6d482f3ce5543971710209f2052d4b18e9db95e 100644
--- a/stmhal/main.c
+++ b/stmhal/main.c
@@ -27,15 +27,10 @@
 #include <stdio.h>
 #include <string.h>
 
-#include "py/nlr.h"
-#include "py/lexer.h"
-#include "py/parse.h"
-#include "py/obj.h"
 #include "py/runtime.h"
 #include "py/stackctrl.h"
 #include "py/gc.h"
 #include "py/mphal.h"
-
 #include "lib/utils/pyexec.h"
 #include "lib/oofatfs/ff.h"
 #include "extmod/vfs.h"