pic64gx / pic64gx-hart-software-services

Other
1 stars 2 forks source link

README: Programming instructions unclear #2

Open xypron opened 2 days ago

xypron commented 2 days ago

I am running Ubuntu 24.10 amd64.

gdb won't connect to the machine. I have to use gdb-multiarch.

The command halt and reset are not understood. I would have expected to execute these via telnet :4444.

$ gdb-multiarch
GNU gdb (Ubuntu 15.1-1ubuntu2) 15.1
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) target remote :3333
Remote debugging using :3333
warning: No executable has been specified and target does not support
determining executable automatically.  Try using the "file" command.
0x000000000a010638 in ?? ()
(gdb) monitor
(gdb) halt
Undefined command: "halt".  Try "help".
(gdb) reset
Undefined command: "reset".  Try "help".
(gdb) load /home/user/workspace/pic64gx-hart-software-services/build/hss-envm-wrapper.elf
Loading section .text, size 0x13ba0 lma 0x20220100
Loading section .gnu_build_id, size 0x24 lma 0x20233ca0
Loading section .data, size 0x390 lma 0x20233d00
Start address 0x0000000020220100, load size 81748
Transfer rate: 25 KB/sec, 9083 bytes/write.
(gdb) 
xypron commented 2 days ago

This is essentially a formatting issue. Due to a missing empty line Github is rendering this output

In a separate terminal, connect to the board from gdb target remote :3333 monitor reset halt load
/path/to/hss-envm-wrapper.elf