target: atheros_ar9344: add simple uart0 test 94/4194/2
authorOleksij Rempel <linux@rempel-privat.de>
Sun, 6 Aug 2017 07:50:05 +0000 (09:50 +0200)
committerSpencer Oliver <spen@spen-soft.co.uk>
Tue, 3 Oct 2017 10:24:46 +0000 (11:24 +0100)
in some cases we need something to test if uart is actually
properly connected.

Change-Id: I5a16b053164b34bb30ae8370753be12887a85c51
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Reviewed-on: http://openocd.zylin.com/4194
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
tcl/target/atheros_ar9344.cfg

index f273fb05d87a81bf537337f2dbf31c9ed11bea20..b698f25034b7a63ded43721a7a8a13f77318d83c 100644 (file)
@@ -14,3 +14,26 @@ jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_CPUTAPID
 
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME mips_m4k -endian big -chain-position $_TARGETNAME
 
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME mips_m4k -endian big -chain-position $_TARGETNAME
+
+proc test_ar9344_uart0_tx {} {
+       echo "configuring uart0.."
+       mww 0xb802000c 0x87
+       mww 0xb8020000 0x15
+       mww 0xb8020004 0
+       mww 0xb802000c 7
+       mww 0xb8020004 0
+
+       echo "send message: hallo world"
+       mww 0xb8020000 0x68
+       mww 0xb8020000 0x65
+       mww 0xb8020000 0x6c
+       mww 0xb8020000 0x6c
+       mww 0xb8020000 0x6f
+       mww 0xb8020000 0x20
+       mww 0xb8020000 0x77
+       mww 0xb8020000 0x6f
+       mww 0xb8020000 0x72
+       mww 0xb8020000 0x6c
+       mww 0xb8020000 0x64
+       mww 0xb8020000 0x0a
+}

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)