tcl/target: add SMP mode to rp2040.cfg 42/7242/6
authorTomas Vanek <vanekt@fbl.cz>
Sun, 2 Oct 2022 12:46:11 +0000 (14:46 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 15 Jan 2023 14:55:45 +0000 (14:55 +0000)
Add the variable selected configuration for SMP debug with rtos hwthread.

Use SMP by default.

Change-Id: I1c37d91688a3ab58d65c15686737892965711adc
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/7242
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
tcl/target/rp2040.cfg

index ee455420b6b1b6027853dff2b4c0413e24195f3f..0593e03bad273a9f1cd6229e855d03c53b5e4ed1 100644 (file)
@@ -26,12 +26,12 @@ if { [info exists CPUTAPID] } {
        set _CPUTAPID 0x01002927
 }
 
-# Set to '0' or '1' for single core configuration,
-# anything else for isolated debugging of both cores
+# Set to '0' or '1' for single core configuration, 'SMP' for -rtos hwthread
+# handling of both cores, anything else for isolated debugging of both cores
 if { [info exists USE_CORE] } {
        set _USE_CORE $USE_CORE
 } else {
-       set _USE_CORE { 0 1 }
+       set _USE_CORE SMP
 }
 set _BOTH_CORES [expr { $_USE_CORE != 0 && $_USE_CORE != 1 }]
 
@@ -54,6 +54,12 @@ if { $_USE_CORE != 0 } {
        $_TARGETNAME_1 cortex_m reset_config sysresetreq
 }
 
+if {[string compare $_USE_CORE SMP] == 0} {
+       $_TARGETNAME_0 configure  -rtos hwthread
+       $_TARGETNAME_1 configure  -rtos hwthread
+       target smp $_TARGETNAME_0 $_TARGETNAME_1
+}
+
 if { $_USE_CORE == 1 } {
        set _FLASH_TARGET $_TARGETNAME_1
 } else {

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)