I call the function memcpy several times in a row.
after few calls the processor crashes. the length off the buffers I copy is fixed.
I can see,in the disassembly window , that only before the first call , the compiler assign the value off the buffer length(bytes to be copied) in one of the data registers,for example R5 , then come the command line "R2 = R5 rot by 0" , this line appears every time before calling memcpy.
the problem that after few calls R5 changes its value and without being touched in memcpy . then the program crashes.
I must say that I'm working on a custom board with multiple processors which run over the same code synchronize .
this problem doesn't happens in all the processors .
what can be the problem ?