



How can I debug C/C++ program on de0-nano board?
by darkzihard on Mar 11, 2015 |
darkzihard
Posts: 15 Joined: May 26, 2014 Last seen: Mar 29, 2020 |
||
Hi all!
How can I debug C/C++ program on de0-nano board? I am new but studying OpenRISC and OrpSoC. I am trying to run and debug simple C/C++ program on de0-nano board. I have downloaded OrpSoC ver orconf2013 on de0-nano board. Compile of test program by GCC ver 4.5.1 was ok. To debug my program I connected JTAG and started debug proxy and gdb to load program. But, whenever I try to connect de0-nano board by or32-elf-gdb, internal-error: get_frame_id happens. (When I connect de0-nano board by or1k-elf-gdb, internal error does not happens) Also, whenever I set a breakpoint in the program it does not stop at breakpoint. Please tell me how can I debug orpsoc. I am using or32-elf-gdb: GNU gdb (OpenRISC 32-bit toolchain for or32-elf (built 20110410)) 7.2-or32-1.0rc3 and or1k-elf-gdb : GNU gdb (GDB) 7.6.50.20130930-cvs Thanks in advance. Daeyeon Jo |



