Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhedger <hedger@users.noreply.github.com>2022-07-04 19:53:04 +0300
committerGitHub <noreply@github.com>2022-07-04 19:53:04 +0300
commit6b6ea44802d2e12bff37f4c371a9f4e32537d4e5 (patch)
tree01985a40371eb45625cd25b82efb18281f580b53 /fbt_options.py
parent793501d62d6ac3ce4d5bca80b3988f06ce9fd6d6 (diff)
fbt: initial blackmagic support (#1362)
* fbt: added separate script for Windows env setup; moved flash targets from firmware.scons to SConstruct; added Blackmagic support with automatic probe port resolution; added apps.c rebuild on any manifest.fam changes; fixed simultaneous flash & debug ops * fbt: added networked BlackmagicResolver mode; added `get_blackmagic` target for IDE integration * fbt: cleanup * fbt: docs update; fixed blackmagic lookup on certain usb hubs * fbt: removed explicit python serial port import * fbt: cleanup * fbt: raising exception on multiple serial blackmagic probes
Diffstat (limited to 'fbt_options.py')
-rw-r--r--fbt_options.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/fbt_options.py b/fbt_options.py
index 3cad7e58..1c9f9c82 100644
--- a/fbt_options.py
+++ b/fbt_options.py
@@ -41,10 +41,24 @@ COPRO_STACK_BIN_DIR = posixpath.join(
# Supported toolchain versions
FBT_TOOLCHAIN_VERSIONS = (" 10.3.",)
-OPENOCD_OPTS = '-f interface/stlink.cfg -c "transport select hla_swd" -f debug/stm32wbx.cfg -c "stm32wbx.cpu configure -rtos auto" -c "init"'
+OPENOCD_OPTS = [
+ "-f",
+ "interface/stlink.cfg",
+ "-c",
+ "transport select hla_swd",
+ "-f",
+ "debug/stm32wbx.cfg",
+ "-c",
+ "stm32wbx.cpu configure -rtos auto",
+ "-c",
+ "init",
+]
SVD_FILE = "debug/STM32WB55_CM4.svd"
+# Look for blackmagic probe on serial ports
+BLACKMAGIC = "auto"
+
FIRMWARE_APPS = {
"default": [
"crypto_start",