链接时加入 -specs=rdimon.specs -specs=nosys.specs
“-lm -lc -lgcc”这几个有没有都无所谓,顺序更加无所谓!
参考
https://www.openstm32.org/forumthread1291#threadId3842