Programming ELF and raw binary with OpenOCD and GDB on RISC-V target.

Поділитися
Вставка
  • Опубліковано 23 гру 2024

КОМЕНТАРІ • 6

  • @coolwinder
    @coolwinder 6 місяців тому

    This topic is very much needed to be explained, eg. like this! Thanks!

  • @coolwinder
    @coolwinder 6 місяців тому

    What are the previous videos that this one continues upon?

    • @LearnRISCV
      @LearnRISCV  6 місяців тому +2

      For now, the videos are in chronological order - with updates made in the repo.

  • @bennguyen1313
    @bennguyen1313 6 місяців тому

    I'm interested in using openOCD to read from a Risc-V on an FPGA (Microchip's PolarFire).
    I configured SoftConsole(Eclipse) to download the elf using a Flash Pro JTAG dongle. However, not sure I understand what's happening under the hood. I understand OpenOCD is a local server that accepts commands from the IDE.. yet, how does it talk to the Flash Pro Adapter? I see another local server (fpserver") is running, which I assume listens for commands from OpenOCD, yet how does OpenOCD know how to use this server? I don't see any (API) documentation for fpserver!

    • @LearnRISCV
      @LearnRISCV  6 місяців тому +1

      fpserver is unknown to me. But I can answer this "yet how does OpenOCD know how to use this server?" - OpenOCD is the server & by default it listens to port 4444 for telnet and 3333 for gdb client connection. Its the client that has to connect to OpenOCD server at the corresponding port. OpenOCD server would just accept the request to establish the connection. If fpserver is a gdb client then it has to connect to OpenOCD through port 3333.