At the date :2005-06-10 06:37:51 I sendt out a message with the subject: A lot of trouble when trying to debug c code on MicroBlaze.
I am really stucked there and I have not fixed the problems yet nor got any help, so in relation to that problem I will ask some more questions.
A short description on my problem first: If I use XMD - Software debugger or debugging by SDK the debugger seams to go out of scope when I am about to enter a function, but this happends quite randomly. It is not all the time at a particular function. An other problem I have is with the UartLite low level driver.
Q1. If I use the function XUartLite_RecvByte in the function main it seams to work, but if I use it in a subfunction it does not work. I know it is easy to "look blind" at c-code some times so I cant comment on that, other that I have tried many times in various ways. Have anyone experienced that kind of problem before? How did you solve it?
Q2. After reseiving the right commandbyte I have a forloop with
1024 iterations where I send a pulse on one GPIO and read 16 bit data from GPIO. (The data is taken from a fifo outside the MicroBlaze but inside the chip.) When that is done I try to send 2048 bytes of data on the UartLite, but not a single byte is sendt. Again, It is easy to "look blind" on c-code but here is no kind of while loops, only for loops. This means that if I put a breakpoint after the functions the debugger should sooner or later stop at the breakpoint but it does not. It goes out of scope. Have anyone had simmilar problems before? What did you do to fix it?Q3. The debugger seams unstable. If I go through the (most of the) code once and later tries to run to a breakpoint through code that is finnish debugged, the debugger goes out of scope. If I step through safe earlier debugged code it might get out of scope at a function. The functions generally contains GPIO only and no loops. Is the GPIOs or debugger unstable? does anyone have had problems with that?
I use opb_gpio version 3.01.b I use version 7.1 XPS.
Raymond