diff --git a/.vscode/launch.json b/.vscode/launch.json index e18bfd57d36b1ede983267ec3c832da6aeae7ad8..2dd8ce1d3d5b92fb2ed46462cbfc04826147dff4 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -79,7 +79,7 @@ "autorun": [ "monitor reset init", "monitor arm semihosting enable", - "monitor tpiu config internal /tmp/itm.log uart off 16000000 2000000", + "monitor tpiu config internal /tmp/itm.log uart off 16000000", "monitor itm port 0 on", "load" ], diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 78bd10c802756e982ed8772d6ed5b2d6918567b2..5dabdd4f7f3c7114f4d7c34294868ac7736c27b8 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -4,31 +4,7 @@ "version": "2.0.0", "tasks": [ { - "taskName": "xargo build --release", - "type": "shell", - "command": "xargo build --release", - "group": { - "kind": "build", - "isDefault": true - }, - "problemMatcher": [ - "$rustc" - ] - }, - { - "taskName": "xargo build", - "type": "shell", - "command": "xargo build", - "group": { - "kind": "build", - "isDefault": true - }, - "problemMatcher": [ - "$rustc" - ] - }, - { - "taskName": "xargo build --example hello", + "label": "xargo build --example hello", "type": "shell", "command": "xargo build --example hello", "group": { @@ -40,7 +16,7 @@ ] }, { - "taskName": "xargo build --example crash", + "label": "xargo build --example crash", "type": "shell", "command": "xargo build --example crash", "group": { @@ -52,7 +28,7 @@ ] }, { - "taskName": "xargo build --example itm", + "label": "xargo build --example itm", "type": "shell", "command": "xargo build --example itm", "group": { @@ -64,7 +40,7 @@ ] }, { - "taskName": "xargo build --example override-exception-handler", + "label": "xargo build --example override-exception-handler", "type": "shell", "command": "xargo build --example override-exception-handler", "group": { @@ -76,7 +52,7 @@ ] }, { - "taskName": "xargo build --example panic", + "label": "xargo build --example panic", "type": "shell", "command": "xargo build --example panic", "group": { diff --git a/examples/hello.rs b/examples/hello.rs index a3f0eb4506e1f12e37abc632b4771c571a1761de..befce98e9bd39a01ace15aba6950a4830bb13372 100644 --- a/examples/hello.rs +++ b/examples/hello.rs @@ -17,6 +17,7 @@ use cortex_m_semihosting::hio; fn main() { let mut stdout = hio::hstdout().unwrap(); writeln!(stdout, "Hello, world!").unwrap(); + loop {} } // As we are not using interrupts, we just register a dummy catch all handler