William, it's good to hear about your progress. I think yo shouldn't talk GDB protocol, for that there is OpenOCD wich is a GDB server that translates command to JTAG protocol of various processors, including LM32. So I think you job is to implement a JTAG that listens in the physical port of the Altera's FPGA and routes the commands to LM32. You can experiment with Altera's "Virtual JTAG", for example here is a project including VHDL code: https://groups.google.com/forum/?hl=pl#!topic/alt.sources/WKzYsx6lvQ0
So I think the chain shoud be as follows: GDB->OpenOCD->JTAG procol->Hardware JTAG->Virtual JTAG->LM32 In front of that you can put Eclipse graphical debugger that talks GDB protocol and works quite good. I have experience with the first parts of the chain so if any doubt please ask. All things are already implemented separately so I think it's a matter of gluing te components together... also, you won't need RTEMS or anything, bare metal should work. And yes, al parts including Lattice GDB are "regular", all software involved is open source. Cheers, Victor. PS: Are you going to post the code/docs of your implementation? your project is a very nice one that surely it's largely expected by the community. On Tue, Jun 21, 2011 at 4:23 PM, FPGAMiner <[email protected]>wrote: > "It's a regular GDB you can get from GNU mirrors. Same with GCC and > binutils." > I had a suspicion that was the case :P Thank you for clarifying :) > > > "Doing that is also an option (which I have not tried). But the debugger > system we are using is based on a stand-alone ROM integrated in the > Milkymist SoC design, which is automatically executed by the hardware > when a break is received on the serial port." > Okay, so it's a purely software solution? > > ~William > > > On Tue, Jun 21, 2011 at 12:53 AM, Sebastien Bourdeauducq < > [email protected]> wrote: > >> On Tue, 2011-06-21 at 00:23 -0700, FPGAMiner wrote: >> > I'm curious if anyone knows where to get the source for the LM32 >> > toolchain? Specifically, I need GDB's source (lm32-elf-gdb). >> >> It's a regular GDB you can get from GNU mirrors. Same with GCC and >> binutils. >> >> >> >> _______________________________________________ >> http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org >> IRC: #milkymist@Freenode >> Twitter: www.twitter.com/milkymistvj >> Ideas? http://milkymist.uservoice.com >> > > > _______________________________________________ > http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org > IRC: #milkymist@Freenode > Twitter: www.twitter.com/milkymistvj > Ideas? http://milkymist.uservoice.com >
_______________________________________________ http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org IRC: #milkymist@Freenode Twitter: www.twitter.com/milkymistvj Ideas? http://milkymist.uservoice.com
