pulp-platform / pulpino

An open-source microcontroller system based on RISC-V
http://www.pulp-platform.org
Other
903 stars 298 forks source link

FPGA Debug #172

Closed bnkla closed 6 years ago

bnkla commented 6 years ago

Hi I am running the pulpino on the ZedBoard and I wonder, if there is any possibility to debug the core? I successfully simulated my changes in the design with ModelSim and executed a sample program, however the program is not running when executing on the FPGA board. Best wishes

quangdaovu commented 6 years ago

Hi,

I think you can debug software-side using this: https://github.com/pulp-platform/debug_bridge

bnkla commented 6 years ago

hm I think the debug interface isn't working any more (see #148)?

quangdaovu commented 6 years ago

It still works. Provided debug_bridge wowrks if you're working on Zedboard, you'll need to modify things if it's pure FPGA (other board without PS).

bnkla commented 6 years ago

I created the executable debug_bridge with make pulpino=1, uploaded it to the ZedBoard and tried to execute it with ./debug_bridge, but I get this:

FPGA SPI device opened!
Unknown platform, trying auto-detect
Detected PULP
No debug interface available! Exiting now
quangdaovu commented 6 years ago

I don't work with Zedboard, so I can't help with this. I have my PULPino running on Arty board, and it doesn't have PS so I manage to debug software by develop another version of debug_bridge. If you have any JTAG cable (mine is Olimex ARM-USB-OCD-H), you can give it a try with this:

https://github.com/quangdaovu/pulpino_jtag_bridge

Just uploaded it yesterday and I don't have time to fill out the README section. You will need libftdi1 (https://www.intra2net.com/en/developer/libftdi/download.php), build libftdi, put libftdi somewhere and change the location on Makefile, run make and it will be the same as debug_bridge.