Hello,
I had the Lattice Implementation of LPC algorithm on my computer. My implementation on computer runs completely fine but when I move it to DSK6455 with some minor changes, it doesn't work. The scenario is like this:
while(read(buffer))
{
A;
for(i=0; i<10; i++)
{
B;
C;
}
D;
}
where A, B, C, D are blocks of code. I set "software breakpoint" at a code line in block C. The program can reach that line at the first time (i=0). But if I press F5 to continue debugging, it couldn't reach that line again. I did couple tries and observed that:
-If I halt the program, the cursor runs to
;; ======== HWI_Obj HWI_RESET ========
;; defines function for the RESET ISR
;;
;; HWI_Obj HWI_RESET (function, monitor, addr, dataType, operation, client, iUseDispatcher, iArg, IntrMask, iCCBitMask, iLoadTrack)
................
................
[cursor here] HWI_Obj 1, HWI_RESET, 0, _function, _monitor, _addr, _dataType, _operation, _client, _iUseDispatcher, _iArg, _IntrMask, _iCCBitMask, _iLoadTrack
- If I comment A and B, the program can reach D.
I don't think there is any problem with my code since it runs completely fine on my laptop. I actually use dsk_app example developed for C6455 and add needed functions to it. I doubt there are some issues with the memory. But it still doesn't make sense for me since the maximum memory for variables in my program is around 20KB.
If you need to see my code, let me know, I can upload it here.
Thank you for your help.
Pete.