diff --git a/.vscode/launch.json b/.vscode/launch.json index 726924350d50a4d6aa45f59f3e880aee4ce25ee9..0972c47d2036be817032cb53beb614f529ebc9ba 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -665,6 +665,33 @@ "svdFile": "STM32F413.svd", "cwd": "${workspaceRoot}" }, + { + "type": "cortex-debug", + "request": "launch", + "servertype": "openocd", + "name": "bare8 (release)", + "preLaunchTask": "cargo build --example bare8 --release", + "executable": "./target/thumbv7em-none-eabihf/release/examples/bare8", + "configFiles": [ + "interface/stlink-v2-1.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}" + }, { "type": "cortex-debug", "request": "launch", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index db1e20156d78c951c233e3b80949689fa3b148f3..224b6c8c3ce2bd3367ebb46be04dba79aa1b850c 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -291,6 +291,18 @@ "isDefault": true } }, + { + "type": "shell", + "label": "cargo build --example bare8 --release", + "command": "cargo build --example bare8 --release --features \"hal rtfm\"", + "problemMatcher": [ + "$rustc" + ], + "group": { + "kind": "build", + "isDefault": true + } + }, { "type": "shell", "label": "cargo build --example bare9", diff --git a/Cargo.toml b/Cargo.toml index fd6339189fdbec1ac2ce312603acba61d8d76a2f..fe101b3eadaa6e494512d16bd17f704f4db4da5e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,8 @@ nb = "0.1.1" heapless = "0.4.1" [dependencies.cortex-m-rtfm] -version = "0.4.0" +version = "0.4.2" +features = ["timer-queue"] optional = true [dependencies.cortex-m]