vscode 配置stm32 cpp settings.json
{
"cmake.configureOnOpen": false,
"C_Cpp.default.cppStandard": "c++11",
"C_Cpp.files.exclude": {
"**/.vscode": true,
"**/.vs": true
},
"C_Cpp.default.defines": [
"_DEBUG",
"UNICODE",
"__CC_ARM",
"USE_FULL_LL_DRIVER",
"STM32L152xE",
"__ICCARM__",
"_Pragma(x)=",
"__interrupt=",
"__packed=__attribute__((__packed__))",
"__weak=__attribute__((weak))"
],
"C_Cpp.default.includePath": [
"D:\\gcc-arm-none-eabi-10.3-2021.10\\arm-none-eabi\\include",
"Core\\Inc",
"Drivers\\STM32L1xx_HAL_Driver\\Inc",
"Drivers\\CMSIS\\Device\\ST\\STM32L1xx\\Include",
"Drivers\\CMSIS\\Include"
],
"C_Cpp.default.intelliSenseMode": "gcc-arm",
"C_Cpp.default.cStandard": "c11",
"C_Cpp.autoAddFileAssociations": false,
"C_Cpp.default.compilerPath": "D:\\gcc-arm-none-eabi-10.3-2021.10\\bin\\arm-none-eabi-g++.exe"
}
"compilerPath": "D:/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-g++.exe -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -specs=nosys.specs -specs=nano.specs -u _printf_float -u _scanf_float",
openocd:
https://blog.csdn.net/weixin_42328389/article/details/128511370

浙公网安备 33010602011771号