Add core files and use same toolchain as stmhal