2 Commits

2 changed files with 18 additions and 4 deletions
+15 -1
View File
@@ -16,6 +16,13 @@
"postDebugTask": "Stop OpenOCD (Ubuntu)",
"overrideGDBServerStartedRegex": "Listening on port",
},
{
"name": "Ubuntu Flash Only (No GDB)",
"type": "node-terminal",
"request": "launch",
"cwd": "${workspaceFolder}",
"command": "${workspaceFolder}/openocd/linux/2025.10/bin/openocd -s openocd/linux/2025.10/scripts -f openocd/linux/2025.10/scripts/target/pec930.cfg -c \"program ./build/Debug/pec930_motor.elf verify reset exit\""
},
{
"name": "Windows RISC-V Debug (OpenOCD)",
"type": "cortex-debug",
@@ -30,7 +37,14 @@
"preLaunchTask": "Start OpenOCD (Windows)",
"postDebugTask": "Stop OpenOCD (Windows)",
"overrideGDBServerStartedRegex": "Listening on port",
}
},
{
"name": "Windows Flash Only (No GDB)",
"type": "node-terminal",
"request": "launch",
"cwd": "${workspaceFolder}",
"command": "${workspaceFolder}\\openocd\\win\\2025.10\\bin\\openocd.exe -s openocd\\win\\2025.10\\scripts -f openocd\\win\\2025.10\\scripts\\target\\pec930.cfg -c \"program .\\build\\Debug\\pec930_motor.elf verify reset exit\""
},
]
}
+3 -3
View File
@@ -107,9 +107,9 @@ target_link_options(${EXECUTABLE} PRIVATE
-Wl,--no-warn-rwx-segments
)
target_link_libraries(${EXECUTABLE} PRIVATE
"${PEC930_SDK_DIR}/Drivers/PEC930/libSysDev_PEC930.a"
)
# target_link_libraries(${EXECUTABLE} PRIVATE
# "${PEC930_SDK_DIR}/Drivers/PEC930/libSysDev_PEC930.a"
# )
# Optional: Print executable size as part of the post build process
add_custom_command(TARGET ${EXECUTABLE}