Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit a52f3dc

Browse files
committedOct 20, 2023
fix: disable semihosting by default, attach debug config
1 parent c8577cf commit a52f3dc

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed
 

‎.vscode/launch.json

+13-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,19 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"name": "Cortex Debug",
8+
"name": "Cortex Debug (Attach)",
9+
"cwd": "${workspaceFolder}",
10+
"executable": "./build/blus_mini_firmware.elf",
11+
"svdFile": "STM32F401.svd",
12+
"request": "attach",
13+
"type": "cortex-debug",
14+
"runToEntryPoint": "main",
15+
"servertype": "external",
16+
"preLaunchTask": "Launch OpenOCD",
17+
"gdbTarget": "${env:WSL2_HOST_IP}:3333",
18+
},
19+
{
20+
"name": "Cortex Debug (Launch)",
921
"cwd": "${workspaceFolder}",
1022
"executable": "./build/blus_mini_firmware.elf",
1123
"svdFile": "STM32F401.svd",

‎source/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ int main(void) {
7373
chSysInit();
7474

7575
// Enable semihosting interface.
76-
initialise_monitor_handles();
76+
// initialise_monitor_handles();
7777

7878
// Initialize the main thread mailbox that receives audio messages (volume, mute).
7979
chMBObjectInit(&g_mailbox, g_mailbox_buffer, ARRAY_LENGTH(g_mailbox_buffer));

0 commit comments

Comments
 (0)
This repository has been archived.