Avatar
  • Home
  • Works
  • Tags
  • About
  • 中文

编译和连接的时候要同时指定 -mthumb 选项

18 Aug 2013

STM32 程序中调用 strncmp 函数时始终出现 crash。

找了很久发现是由于编译选项中添加了 -mthumb,而连接时遗漏了这个选项。

  • C
  • STM32
  • Linker

Permalink : https://zhaoxh.cn/en/post/2013/link-mthumb-option/


  • ← Turn the Monitor Screen off in Windows
  • 无线平台的开发路线 →

Copyright © 2023 | 京ICP备17003179号-1