Skip to content
Snippets Groups Projects
Commit eea9e889 authored by Per's avatar Per
Browse files

build tasks

parent 30141c1b
No related branches found
No related tags found
No related merge requests found
...@@ -47,71 +47,5 @@ ...@@ -47,71 +47,5 @@
], ],
"cwd": "${workspaceRoot}" "cwd": "${workspaceRoot}"
} }
// {
// "name": "(gdb) Launch",
// "type": "cppdbg",
// "request": "launch",
// "miDebuggerPath": "/usr/bin/arm-none-eabi-gdb",
// //"MIMode": "gdb",
// "targetArchitecture": "arm",
// "program": "${workspaceRoot}/target/thumbv7em-none-eabihf/release/bluepill",
// //"args": [],
// //"stopAtEntry": false,
// //"environment": [],
// "setupCommands": [
// //"description": "Enable pretty-printing for gdb",
// // {
// // "text": "-enable-pretty-printing"
// // },
// {
// "text": "file ${workspaceRoot}/target/thumbv7em-none-eabihf/release/bluepill"
// },
// {
// "text": "set remotetimeout 30"
// },
// {
// "text": "target remote localhost:3333"
// },
// {
// "text": "monitor halt"
// },
// {
// "text": "monitor reset init"
// },
// {
// "text": "load"
// },
// {
// "text": "info target"
// }
// //"ignoreFailures": true
// ],
// "externalConsole": false,
// "cwd": "${workspaceRoot}"
// }
// {
// "name": "Rust",
// "type": "gdb",
// "request": "attach",
// "cwd": "${workspaceRoot}",
// "gdbpath": "/usr/bin/arm-none-eabi-gdb",
// //"target": ":3333",
// "executable": "./target/thumbv7em-none-eabihf/release/bluepill",
// "autorun": [
// "monitor reset halt",
// //"set target-async off",
// "load ./target/thumbv7em-none-eabihf/release/bluepill",
// "monitor reset"
// ]
// }
// {
// "name": "Rust Launch",
// "type": "gdb",
// "request": "launch",
// "target": "./target/thumbv7em-none-eabihf/release/bluepill",
// "executable": "./target/thumbv7em-none-eabihf/release/bluepill",
// "cwd": "${workspaceRoot}",
// "gdbpath": "/usr/bin/arm-none-eabi-gdb"
// }
] ]
} }
\ No newline at end of file
...@@ -6,7 +6,25 @@ ...@@ -6,7 +6,25 @@
{ {
"taskName": "xargo build --release", "taskName": "xargo build --release",
"type": "shell", "type": "shell",
"command": "xargo build --release" "command": "xargo build --release",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$rustc"
]
},
{
"taskName": "xargo build",
"type": "shell",
"command": "xargo build",
"group": {
"kind": "build",
},
"problemMatcher": [
"$rustc"
]
} }
] ]
} }
\ No newline at end of file
...@@ -238,9 +238,9 @@ fn main() { ...@@ -238,9 +238,9 @@ fn main() {
(*DWT.get()).enable_cycle_counter(); (*DWT.get()).enable_cycle_counter();
(*DWT.get()).cyccnt.write(0); (*DWT.get()).cyccnt.write(0);
} }
asm::bkpt(); //asm::bkpt();
decode(&ABC, unsafe { &mut PLAIN }, &mut seed); decode(&ABC, unsafe { &mut PLAIN }, &mut seed);
asm::bkpt(); //asm::bkpt();
writeln!(stdout, "string {}", from_utf8(unsafe { &PLAIN }).unwrap()) writeln!(stdout, "string {}", from_utf8(unsafe { &PLAIN }).unwrap())
.unwrap(); .unwrap();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment