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

bare8

parent 1daf87a6
No related branches found
No related tags found
No related merge requests found
...@@ -613,7 +613,8 @@ ...@@ -613,7 +613,8 @@
"type": "cortex-debug", "type": "cortex-debug",
"request": "launch", "request": "launch",
"servertype": "openocd", "servertype": "openocd",
"name": "c bare8 16Mhz", "name": "bare8 (debug)",
"preLaunchTask": "cargo build --example bare8 --features stm32f4",
"executable": "./target/thumbv7em-none-eabihf/debug/examples/bare8", "executable": "./target/thumbv7em-none-eabihf/debug/examples/bare8",
"configFiles": [ "configFiles": [
"interface/stlink.cfg", "interface/stlink.cfg",
...@@ -622,16 +623,44 @@ ...@@ -622,16 +623,44 @@
"swoConfig": { "swoConfig": {
"enabled": true, "enabled": true,
"cpuFrequency": 16000000, "cpuFrequency": 16000000,
"swoFrequency": 2000000, // you may try 1000000 if not working "swoFrequency": 2000000,
"source": "probe", "source": "probe",
"decoders": [ "decoders": [
{ {
"type": "console", "type": "console",
"label": "Name", "label": "ITM",
"port": 0 "port": 0
} }
] ]
}, },
"svdFile": "STM32F413.svd",
"cwd": "${workspaceRoot}"
},
{
"type": "cortex-debug",
"request": "launch",
"servertype": "openocd",
"name": "bare9 (debug)",
"preLaunchTask": "cargo build --example bare9 --features stm32f4",
"executable": "./target/thumbv7em-none-eabihf/debug/examples/bare9",
"configFiles": [
"interface/stlink.cfg",
"target/stm32f4x.cfg"
],
"swoConfig": {
"enabled": true,
"cpuFrequency": 16000000,
"swoFrequency": 2000000,
"source": "probe",
"decoders": [
{
"type": "console",
"label": "ITM",
"port": 0
}
]
},
"svdFile": "STM32F413.svd",
"cwd": "${workspaceRoot}" "cwd": "${workspaceRoot}"
}, },
] ]
......
...@@ -219,5 +219,41 @@ ...@@ -219,5 +219,41 @@
"isDefault": true "isDefault": true
} }
}, },
{
"type": "shell",
"label": "cargo build --example bare8 --features stm32f4",
"command": "cargo build --example bare8 --features stm32f4",
"problemMatcher": [
"$rustc"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"type": "shell",
"label": "cargo build --example bare8 --features stm32f4",
"command": "cargo build --example bare8 --features stm32f4",
"problemMatcher": [
"$rustc"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"type": "shell",
"label": "cargo build --example bare9 --features stm32f4",
"command": "cargo build --example bare9 --features stm32f4",
"problemMatcher": [
"$rustc"
],
"group": {
"kind": "build",
"isDefault": true
}
},
] ]
} }
\ No newline at end of file
...@@ -18,6 +18,7 @@ panic-semihosting = "0.5.1" ...@@ -18,6 +18,7 @@ panic-semihosting = "0.5.1"
panic-itm = "0.4.0" panic-itm = "0.4.0"
bare-metal = "0.2.4" bare-metal = "0.2.4"
nb = "0.1.1" nb = "0.1.1"
cortex-m-rtfm = "0.4.0"
[dependencies.cortex-m] [dependencies.cortex-m]
version = "0.5.8" version = "0.5.8"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment