Yes, that is what we are trying to do. Please use the program below and try break at the fisrt scanf line:
http://wiki.pinksoc.org/doku.php/a_simple_c_program To run the program without debug at the moment one needs to type CR (Enter key) + LF (^J) after entering each number. By the way this is the first introduction to the community of our tutorial website for openrisc which I used at the workshop at Univ. of Lisbon. Whoever wishes to contribute to this wiki please let me know. Regards, Jose PS: It needs updateing with the latest fusesoc stuff but it should be ok for the rest. On Thu, May 29, 2014 at 11:14 AM, Stefan Kristiansson < [email protected]> wrote: > On Thu, May 29, 2014 at 11:53 AM, Jose Teixeira de Sousa > <[email protected]> wrote: > > hhhmmmm, the program was previously loaded by openOcd .... with or1200 it > > seems to work but not with mor1kx. > > > > The only thing we do is to define OR1200 or MOR1Kx in oprsoc-defines and > > recompile the FPGA. > > > > Inigo, could you try load the program with gdb, and only after set > > breakpoints? > > > > Please let us know if it works this way. If it does we are faced with the > > question of why or1200 works with the program pre-loaded by openOcd and > > morkx does not. If not something must still be wrong. > > > > I don't understand what you are trying to do here. Can you try to explain? > I interpreted this as: > 1) load program with openocd > 2) start gdb > 3) set breakpoint > 4) run program > > Is that what you do? > > This works in my setup, it breaks at the breakpoint. > > Stefan > -- Jose T. de Sousa, PhD Office: +351 213 100 213 R. Alves Redol 9 1000-029 Lisboa Portugal
_______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
