I have a serious problem on A blackfin 527
I copy data from a buffer to another using memcpy. If I don't use :
adi_int_EnterCriticalRegion((void *) NULL);
// memcpy stuff
adi_int_ExitCriticalRegion((void *) NULL);
The copied data is corrupted.
In fact in my software there is a very high frequency interrupt that is used to monitor a 320X240 LCD touch screen by sending pixels on the bus using a MDMA.
I verified the code of the memcpy in asm, it seems to be a simple copy routine.
Notice that I have the same problem if i use sprintf.
Does any of you have an an idea why does this happen?