I’m using an RCM6700 and I need to share serB and writeUserBlock.
My IDE is Dynamic C 10.72D.
I’ve implemented semaphores with SPIgetSemaphore and SPIfreeSemaphore and everything seems to run correctly, but when I try to run a stress test that sends and receives data on serB and then write user Block every 5 seconds after a random number of cycles (between 3 and 15) a runtime error pops up: “A system mode violation interrupt occurred…” at different addresses.
I’ve simplified the test opening serial port (with semaphores) and not sending nor receiving data: same result (Runtime error after some cycles)
If I run the test without opening the serial ports it runs without problems.
Can anyone give me some suggestion to find the problem? (I can provide code snippet if it is useful)
Thank you
Massimo