- 1.CMakeLists.txt对应的CMake应用程序:构建工程,形成hex文件=>STM32CUBEMX自动生成
- 外部添加的dap文件:修改CMakeLists_template.txt
- 在文件中的include_directories和add_definitions中添加dap库配置:
add_definitions(-DARM_MATH_CM3-DARM_MATH_MATRIX_CHECK-DARM_MATH_ROUNDING) #添加外部文件的头文件路径 include_directories("DSP/Include") #添加外部头文件对应的.c的路径 link_directories(DSP/Lib/GCC) #添加外部链接库 link_libraries(libarm_cortexM3l_math.a)```
- 在文件中的include_directories和add_definitions中添加dap库配置:
- 外部添加的dap文件:修改CMakeLists_template.txt
- 2.OpenOCD下载并运行:将hex文件下载到单片机上并运行:
- 3.嵌入式GDB服务器:对单片机进行调试:
-
Notifications
You must be signed in to change notification settings - Fork 0
License
l0190/CLion_STM32
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published