From 04062acb1b9947a6536ac9c09bfadaa9daefd3f7 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 25 Nov 2024 16:10:54 +0100 Subject: [PATCH] update probe-rs files --- .gitignore | 2 ++ Embed.toml.sample | 12 ++++++++++++ jlink-gdb.sh | 2 +- scripts/VA108xx_Series.yaml | 10 ++++++++-- 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 Embed.toml.sample diff --git a/.gitignore b/.gitignore index 2cdfcc7..f984c6d 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,5 @@ Cargo.lock # JetBrains IDEs /.idea *.iml + +/Embed.toml diff --git a/Embed.toml.sample b/Embed.toml.sample new file mode 100644 index 0000000..3fc1518 --- /dev/null +++ b/Embed.toml.sample @@ -0,0 +1,12 @@ +[default.probe] +protocol = "Jtag" + +[default.general] +chip = "VA108xx_RAM" + +[default.rtt] +enabled = true + +[default.gdb] +# Whether or not a GDB server should be opened after flashing. +enabled = false diff --git a/jlink-gdb.sh b/jlink-gdb.sh index bf82be7..44b38f4 100755 --- a/jlink-gdb.sh +++ b/jlink-gdb.sh @@ -1,3 +1,3 @@ #!/bin/bash -JLinkGDBServer -select USB -device Cortex-M0 -endian little -if JTAG-speed auto \ +JLinkGDBServer -select USB -device Cortex-M0 -endian little -if JTAG -speed auto \ -LocalhostOnly diff --git a/scripts/VA108xx_Series.yaml b/scripts/VA108xx_Series.yaml index c83f4ef..42b7393 100644 --- a/scripts/VA108xx_Series.yaml +++ b/scripts/VA108xx_Series.yaml @@ -9,6 +9,7 @@ variants: core_access_options: !Arm ap: 0 psel: 0x0 + jtag_tap: 1 memory_map: - !Ram name: DRAM @@ -22,9 +23,11 @@ variants: range: start: 0x0 end: 0x20000 - is_boot_memory: true cores: - main + access: + write: false + boot: true flash_algorithms: - va108xx_fm25v20a_fram_128kb_prog - va108xx_m95m01_128kb_prog @@ -37,6 +40,7 @@ variants: core_access_options: !Arm ap: 0 psel: 0x0 + jtag_tap: 1 memory_map: - !Ram name: DRAM @@ -50,9 +54,11 @@ variants: range: start: 0x0 end: 0x20000 - is_boot_memory: true cores: - main + access: + write: false + boot: true flash_algorithms: - name: va108xx_fm25v20a_fram_128kb_prog description: VA108_FM25V20A_FRAM_128KB