[riot-notifications] [RIOT-OS/RIOT] stdio_semihosting: Extend with RISC-V support (#14987)

Koen Zandberg notifications at github.com
Tue Jan 26 14:22:57 CET 2021


Rebased and fixed. This should now work on the hifive1b after enabling semihosting on the jlink with `monitor arm semihosting enable`
```
koen at morgen ~/dev/RIOT-review $ GDB=gdb  make -C tests/sys_stdio_semihosting/ BOARD=hifive1b term
make: Entering directory '/home/koen/dev/RIOT-review/tests/sys_stdio_semihosting'
/home/koen/dev/RIOT-review/dist/tools/jlink/jlink.sh debug /home/koen/dev/RIOT-review/tests/sys_stdio_semihosting/bin/hifive1b/tests_sys_stdio_semihosting.elf 
### Starting Debugging ###
SEGGER J-Link GDB Server V6.80c Command Line Version

JLinkARM.dll V6.80c (DLL compiled Jun 19 2020 17:23:30)

-----GDB Server start settings-----
GDBInit file:                  none
GDB Server Listening port:     3333
SWO raw output listening port: 2332
Terminal I/O port:             4444
Accept remote connection:      yes
Generate logfile:              off
Verify download:               off
Init regs on start:            off
Silent mode:                   on
Single run mode:               off
Target connection timeout:     0 ms
------J-Link related settings------
J-Link Host interface:         USB
J-Link script:                 none
J-Link settings file:          none
------Target related settings------
Target device:                 FE310
Target interface:              JTAG
Target interface speed:        2000kHz
Target endian:                 little

Reading symbols from /home/koen/dev/RIOT-review/tests/sys_stdio_semihosting/bin/hifive1b/tests_sys_stdio_semihosting.elf...
Remote debugging using :3333
Could not connect to J-Link.
Please check power, connection and settings.0x20010eca in _semihosting_raw (cmd=cmd at entry=5, args=args at entry=0x80000544 <main_stack+916>)
    at /home/koen/dev/RIOT-review/sys/stdio_semihosting/stdio_semihosting.c:71
71          __asm__(
(gdb) monitor arm semihosting enable
semihosting is enabled

(gdb) cont
Continuing.

> help
keep_alive() was not invoked in the 1000 ms timelimit. GDB alive packet not sent! (1096 ms). Workaround: increase "set remotetimeout" in GDB
help
Command              Description
---------------------------------------
reboot               Reboot the node
version              Prints current RIOT_VERSION
pm                   interact with layered PM subsystem
ps                   Prints information about running threads.
> ps
keep_alive() was not invoked in the 1000 ms timelimit. GDB alive packet not sent! (4273 ms). Workaround: increase "set remotetimeout" in GDB
ps
        pid | name                 | state    Q | pri | stack  ( used) ( free) | base addr  | current     
          1 | idle                 | pending  Q |  15 |    256 (  192) (   64) | 0x800000b0 | 0x800000f0 
          2 | main                 | running  Q |   7 |   1280 (  796) (  484) | 0x800001b0 | 0x800005f0 
            | SUM                  |            |     |   1536 (  988) (  548)
>
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14987#issuecomment-767537519
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210126/6e75696f/attachment-0001.htm>


More information about the notifications mailing list